Autoscale using replicas
Autoscaling Harness Delegate using replicas for Helm chart deployments is a useful feature that can help ensure your deployments are executed efficiently, without downtime or resource overload.
To access the default Helm chart for the values.yaml
file, go to Harness Delegate Helm chart.
You can also update the Harness Delegate YAML file in addition to the Helm chart.
To auto scale the delegate, do the following:
In your
values.yaml
file, go toautoscaling
parameters.autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80Set
enabled
totrue
.Specify the minimum and maximum number of replicas you want to use in the
minReplicas
andmaxReplicas
parameters.To fine-tune your autoscaling, you can set the
targetCPUUtilizationPercentage
to add a new replica if CPU utilization exceeds this percentage.(Optional) Set the
targetMemoryUtilizationPercentage
to add a new replica if memory utilization exceeds this percentage.Save the file, and restart your pods.
When you create a deployment, Harness automatically spins up new replicas of your delegate as needed to ensure the deployment is completed.