Skip to content

Commit

Permalink
adjust engine autoscaler configuration
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
jessicarod7 committed Jul 24, 2024
1 parent 0ffc5fc commit 0f481f9
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .rhcicd/clowdapp-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,28 @@ objects:
- name: PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR
value: ${PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR}
autoScaler:
minReplicaCount: 3
minReplicaCount: ${{MIN_REPLICAS}}
maxReplicaCount: 6
triggers:
- metadata:
query: sum(kafka_consumergroup_group_lag{topic=~".*platform.notifications.ingress", group="integrations"})
threshold: "1000"
query: kafka_consumergroup_group_topic_sum_lag{topic=~".*platform.notifications.ingress"}
threshold: "25"
type: prometheus
metricType: Value
advanced:
horizontalPodAutoscalerConfig:
behavior:
scaleDown:
stabilizationWindowSeconds: 180
policies:
- type: Pods
value: 2
periodSeconds: 60
scaleUp:
policies:
- type: Pods
value: 2
periodSeconds: 30
parameters:
- name: BACKOFFICE_CLIENT_ENV
description: Back-office client environment
Expand Down

0 comments on commit 0f481f9

Please sign in to comment.