From 9a5658281ff3ed6deb3bc1df7e19ac72f2f32c00 Mon Sep 17 00:00:00 2001
From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org>
Date: Mon, 13 Mar 2023 14:46:29 +0100
Subject: [PATCH] Activate high priority consumption from the elastic infra for
 cvs

Refs. swh/infra/sysadm-environment#4802
---
 swh/values/production.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/swh/values/production.yaml b/swh/values/production.yaml
index aadefb0fe..0f762ec5a 100644
--- a/swh/values/production.yaml
+++ b/swh/values/production.yaml
@@ -77,6 +77,18 @@ loaders:
       autoScaling:
         maxReplicaCount: 2
       sentrySwhPackage: swh.loader.cvs
+    highpriority:
+      requestedMemory: 256Mi
+      requestedCpu: 200m
+      queues:
+        - save_code_now:swh.loader.cvs.tasks.LoadCvsRepository
+      ackLate: true
+      autoScaling:
+        queueThreshold: 1
+        maxReplicaCount: 3
+      # HACK: As there is only 1 cvs queue consumed, send cvs issues to sentry
+      # See https://gitlab.softwareheritage.org/swh/meta/-/issues/4949
+      sentrySwhPackage: swh.loader.cvs
 
 memcached:
   enabled: true
-- 
GitLab