Skip to content

Commit

Permalink
Update KEDA doc with tip on pausing auto-scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
sqtran committed Jun 11, 2024
1 parent 2663d7f commit d5e8237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _posts/2024-03-15-Custom-Metrics_Autoscaler.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,6 @@ If the auto-scaler doesn't appear to be working, check the Horizontal Pod Autosc

If unsure about query syntax, run the PromQL query in the Metrics Tab. Any ad-hoc query can be entered there, to verify the syntax or metric name is correct.

Make sure the filter is set `{job="your_deployment"}` to avoid metric name collision when aggregating results. This is important when multiple applications are producing the same metric in the same namespace.
Make sure the filter is set `{job="your_deployment"}` to avoid metric name collision when aggregating results. This is important when multiple applications are producing the same metric in the same namespace.

Pause the ScaledObject if you want to test the application's behavior without auto-scaling. There are two annotations to set on the ScaledObject to either pause all autoscaling, or to statically set the number of replicas to a specific number. They are and `autoscaling.keda.sh/paused: "true"`, and `autoscaling.keda.sh/paused-replicas: "n"`, respectively, where n is the number of replicas to hard-code to.

0 comments on commit d5e8237

Please sign in to comment.