From 8d31176800b4d9a9988fdc007e99f7b03c745397 Mon Sep 17 00:00:00 2001 From: Jonathan Eid Date: Mon, 26 Oct 2026 11:58:09 -0400 Subject: [PATCH 1/3] Schedule parallel catchup infra pods ahead of the workers Co-Authored-By: Claude Opus 5.5 --- .../parallel_catchup_helm/templates/job_monitor.yaml | 1 + .../parallel_catchup_helm/templates/job_preload_redis.yaml | 1 + .../parallel_catchup_helm/templates/redis_queue.yaml | 1 + src/MissionParallelCatchup/parallel_catchup_helm/values.yaml | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml index f949f0bf..e000a787 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml @@ -59,6 +59,7 @@ spec: prometheus.io/port: "8080" prometheus.io/path: "/prometheus" spec: + priorityClassName: {{ .Values.infraPriorityClassName }} containers: - name: job-monitor image: {{ .Values.monitor.image }} diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml index 14de3a7b..b175e6fe 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml @@ -5,6 +5,7 @@ metadata: spec: template: spec: + priorityClassName: {{ .Values.infraPriorityClassName }} containers: - name: preload image: redis:7 diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml index aaba65fb..75879ff2 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml @@ -25,6 +25,7 @@ spec: labels: app: {{ .Values.redis.hostname }} spec: + priorityClassName: {{ .Values.infraPriorityClassName }} containers: - name: redis image: redis:7 diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml index b8d50642..d5d0df64 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml @@ -60,3 +60,7 @@ range_generator: service_account: annotations: [] + +# Must exist on the cluster (stellar/kube cluster-config). Puts redis, preload +# and the job monitor ahead of the workers in the scheduling queue. +infraPriorityClassName: catchup-infra From fa7e94c8ca0638ec34fc10e87df1117161955c38 Mon Sep 17 00:00:00 2001 From: Jonathan Eid Date: Mon, 26 Oct 2026 12:03:43 -0400 Subject: [PATCH 2/3] Drop values comment Co-Authored-By: Claude Opus 5.5 --- src/MissionParallelCatchup/parallel_catchup_helm/values.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml index d5d0df64..6e909f5e 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/values.yaml @@ -61,6 +61,4 @@ range_generator: service_account: annotations: [] -# Must exist on the cluster (stellar/kube cluster-config). Puts redis, preload -# and the job monitor ahead of the workers in the scheduling queue. infraPriorityClassName: catchup-infra From f28d872f42e3d63147ec0073e9be86d49dd7f170 Mon Sep 17 00:00:00 2001 From: Jonathan Eid Date: Mon, 26 Oct 2026 12:09:10 -0400 Subject: [PATCH 3/3] Omit priorityClassName when unset Co-Authored-By: Claude Opus 5.5 --- .../parallel_catchup_helm/templates/job_monitor.yaml | 4 +++- .../parallel_catchup_helm/templates/job_preload_redis.yaml | 4 +++- .../parallel_catchup_helm/templates/redis_queue.yaml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml index e000a787..2e1adede 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_monitor.yaml @@ -59,7 +59,9 @@ spec: prometheus.io/port: "8080" prometheus.io/path: "/prometheus" spec: - priorityClassName: {{ .Values.infraPriorityClassName }} + {{- with .Values.infraPriorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: job-monitor image: {{ .Values.monitor.image }} diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml index b175e6fe..3a78b889 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/job_preload_redis.yaml @@ -5,7 +5,9 @@ metadata: spec: template: spec: - priorityClassName: {{ .Values.infraPriorityClassName }} + {{- with .Values.infraPriorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: preload image: redis:7 diff --git a/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml b/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml index 75879ff2..51def555 100644 --- a/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml +++ b/src/MissionParallelCatchup/parallel_catchup_helm/templates/redis_queue.yaml @@ -25,7 +25,9 @@ spec: labels: app: {{ .Values.redis.hostname }} spec: - priorityClassName: {{ .Values.infraPriorityClassName }} + {{- with .Values.infraPriorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: redis image: redis:7