Skip to content

Commit 0f481f9

Browse files
committed
adjust engine autoscaler configuration
- query ingress queuedMsgSum from Prometheus - calculate targetPods = currentPods * (queuedMsgSum/targetMsgSum), where target is 25 - max +2 pods per 30 s - max -2 pods per 60 s, from highest targetPods of last 180 s (rolling)
1 parent 0ffc5fc commit 0f481f9

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Diff for: .rhcicd/clowdapp-engine.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,28 @@ objects:
247247
- name: PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR
248248
value: ${PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR}
249249
autoScaler:
250-
minReplicaCount: 3
250+
minReplicaCount: ${{MIN_REPLICAS}}
251251
maxReplicaCount: 6
252252
triggers:
253253
- metadata:
254-
query: sum(kafka_consumergroup_group_lag{topic=~".*platform.notifications.ingress", group="integrations"})
255-
threshold: "1000"
254+
query: kafka_consumergroup_group_topic_sum_lag{topic=~".*platform.notifications.ingress"}
255+
threshold: "25"
256256
type: prometheus
257+
metricType: Value
258+
advanced:
259+
horizontalPodAutoscalerConfig:
260+
behavior:
261+
scaleDown:
262+
stabilizationWindowSeconds: 180
263+
policies:
264+
- type: Pods
265+
value: 2
266+
periodSeconds: 60
267+
scaleUp:
268+
policies:
269+
- type: Pods
270+
value: 2
271+
periodSeconds: 30
257272
parameters:
258273
- name: BACKOFFICE_CLIENT_ENV
259274
description: Back-office client environment

0 commit comments

Comments
 (0)