diff --git a/.rhcicd/clowdapp-engine.yaml b/.rhcicd/clowdapp-engine.yaml index 7b12ac5839..9161f80340 100644 --- a/.rhcicd/clowdapp-engine.yaml +++ b/.rhcicd/clowdapp-engine.yaml @@ -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