Skip to content

Commit 7894310

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, based on highest targetPods of last 180 s (rolling)
1 parent 0ffc5fc commit 7894310

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.rhcicd/clowdapp-engine.yaml

+17-2
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,24 @@ objects:
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)