Support HPA creation with multiple metrics
Describe the feature
Since k8s 1.23, HPA supports scaling on multiple metrics. Can this support be added to knative autoscaler-hpa as well ? https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#scaling-on-multiple-metrics
Slack thread for context: https://cloud-native.slack.com/archives/C04LGHDR9K7/p1679561219442129
I feel like this is a valid thing to have. We plan do to something similar here for internal components.
/triage accepted
Is there any action item now ? I'd love to contribute this feature. @ReToCode
@anencore94 can you elaborate on your use case a bit more?
@anencore94 can you elaborate on your use case a bit more?
Hi, @dprotaso . Same as the description in the slack thread. I'd like to create and operating my knative service's autoscaling with hpa object (which was created by knative-controller), with two or more different metrics. As far as I know, I could specify only single metric for hpa when operating knative servcie by annotations like autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev", autoscaling.knative.dev/metric: "memory"
with two or more different metrics.
Which metrics are you wanting to scale on?
with two or more different metrics.
Which metrics are you wanting to scale on?
I'd like to scale on cpu and memory both. For example, if cpu > 70 % or memory > 70 %.