Skip to content

Commit

Permalink
switch to ScaledObject
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Oct 15, 2024
1 parent 52798c5 commit c7722e7
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 @@ -194,30 +194,38 @@ objects:
value: ${PROCESSOR_CONNECTORS_MIN_DELAY_SINCE_FIRST_SERVER_ERROR}
- name: NOTIFICATIONS_USE_OCM_REFACTORED_TEMPLATES
value: ${NOTIFICATIONS_USE_OCM_REFACTORED_TEMPLATES}
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 c7722e7

Please sign in to comment.