Closed cheimu closed 3 years ago
/area autoscale
So my question is how could I support both hpa, and kpa at same time?
@cheimu No, you can't,so far for now. For rps
is controlled by autoscaller in Knative(CR:KPA
), while cpu
is controlled by autoscaller in k8s (CR:HPA
,which will be created by autoscaller in Knative). They can’t work togather at the same time.(For example, HPA wants 3 replicas, but B wants 4 replicas. )
So, Unless you write your own autoscaller and your own annotations which is diferrent from annotations in Knative.
@zhaojizhuang Thank you
/area autoscale
Ask your question here:
When creating a service, I know I have to add
autoscaling.knative.dev/class
andautoscaling.knative.dev/metric
inService.Spec.ConfigurationSpec.Template.ObjectMeta.Annotations
. However, since annotation field is amap[string]string
and same key can only have one value. So my question is how could I support both hpa, and kpa at same time? I mean I would like to have bothrps
andcpu
as my autoscaling metrics without using writing my own scaling controller.Thank you in advance :)