Skip to content

Commit

Permalink
switch to ScaledObject
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Sep 17, 2024
1 parent 1710755 commit c837d90
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions .rhcicd/clowdapp-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,30 +184,38 @@ objects:
value: ${PROCESSOR_CONNECTORS_MAX_SERVER_ERRORS}
- name: PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR
value: ${PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR}
autoScaler:
minReplicaCount: ${{MIN_REPLICAS}}
maxReplicaCount: 6
triggers:
- metadata:
serverAddress: http://prometheus-app-sre.openshift-customer-monitoring.svc.cluster.local:9090
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
- apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: notifications-engine
labels:
app: notifications-engine
spec:
scaleTargetRef:
name: notifications-engine
minReplicaCount: ${{MIN_REPLICAS}}
maxReplicaCount: 6
triggers:
- metadata:
serverAddress: http://prometheus-app-sre.openshift-customer-monitoring.svc.cluster.local:9090
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: CLOUDWATCH_ENABLED
description: Enable Cloudwatch (or not)
Expand Down

0 comments on commit c837d90

Please sign in to comment.