Skip to content

Commit

Permalink
Allow config of a non-0 initial scale for scaled-to-0 streams apps
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding committed Nov 29, 2024
1 parent a014cef commit e1838fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/streams-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Alternatively, a YAML file that specifies the values for the parameters can be p
| `autoscaling.lagThreshold` | Average target value to trigger scaling actions. | |
| `autoscaling.pollingInterval` | https://keda.sh/docs/2.10/concepts/scaling-deployments/#pollinginterval | `30` |
| `autoscaling.cooldownPeriod` | https://keda.sh/docs/2.10/concepts/scaling-deployments/#cooldownperiod | `300` |
<!-- initialCooldownPeriod -->
| `autoscaling.offsetResetPolicy` | The offset reset policy for the consumer if the the consumer group is not yet subscribed to a partition. | `earliest` |
| `autoscaling.minReplicas` | https://keda.sh/docs/2.10/concepts/scaling-deployments/#minreplicacount | `0` |
| `autoscaling.maxReplicas` | https://keda.sh/docs/2.10/concepts/scaling-deployments/#maxreplicacount | `1` |
Expand Down
1 change: 1 addition & 0 deletions charts/streams-app/templates/scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
name: {{ template "streams-app.fullname" . }}
pollingInterval: {{ .Values.autoscaling.pollingInterval }}
cooldownPeriod: {{ .Values.autoscaling.cooldownPeriod }}
initialCooldownPeriod: {{ .Values.autoscaling.initialCooldownPeriod }}
minReplicaCount: {{ .Values.autoscaling.minReplicas }}
maxReplicaCount: {{ .Values.autoscaling.maxReplicas }}
{{- if hasKey .Values.autoscaling "idleReplicas" }}
Expand Down
1 change: 1 addition & 0 deletions charts/streams-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ autoscaling:
# lagThreshold: "1000"
pollingInterval: 30
cooldownPeriod: 300
initialCooldownPeriod: 0
offsetResetPolicy: earliest
minReplicas: 0
maxReplicas: 1
Expand Down

0 comments on commit e1838fa

Please sign in to comment.