How to properly configure averageUtilization of hpa in k8s

30 views Asked by At

This is the configuration information about resources and HPA of my helm application, as follows:

resources:
  limits:
    cpu: 2
    memory: 4096Mi
  requests:
    cpu: 0.5
    memory: 1024Mi

autoscalig:
  enabled: true
  minReplicas: 4
  maxReplicas: 8
  targetCPUUtilizationPercentage: 320
  targetMemoryUtilizationPercentage: 320

Can anyone tell me how the value of targetCPUUtilizationPercentage or targetMemoryUtilizationPercentage is calculated?

0

There are 0 answers