Skip to content

Commit 3f485a0

Browse files
ahmetbknative-prow-robot
authored andcommitted
Use cpu metric for CPU-based autoscaling sample (#1918)
Using `autoscaling.knative.dev/metric: concurrency` made no sense to me so I'm doing a quick PR. An example of this can be found at https://medium.com/@mchmarny_google/https-medium-com-p-knative-autoscaling-love-story-e32a27b7855 but let's not try to send people to external links to find how to do this.
1 parent 7ed1973 commit 3f485a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/serving/configuring-the-autoscaler.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ spec:
180180
template:
181181
metadata:
182182
annotations:
183-
autoscaling.knative.dev/metric: concurrency
183+
autoscaling.knative.dev/metric: cpu
184+
autoscaling.knative.dev/target: 70
184185
autoscaling.knative.dev/class: hpa.autoscaling.knative.dev
185186
```
186187

188+
187189
## Additional resources
188190

189191
- [Go autoscaling sample](https://knative.dev/docs/serving/samples/autoscale-go/index.html)

0 commit comments

Comments
 (0)