HPA setup and configuration
It is possible to use cpu-utilization-based HPA
for API server (aka waldur-mastermind-api) and
Celery executor (aka waldur-mastermind-worker and waldur-mastermind-beat) pods.
Setup
If you use minikube, you need to enable metrics-server using next command:
minikube addons enable metrics-server
Configuration
In values.yaml file you can configure HPA for:
-
API server (
hpa.apiprefix):1.1
enabled- flag for enabling HPA. Possible values:truefor enabling andfalsefor disabling.1.2
resources- custom resources for server.requests.cpuparam is mandatory for proper HPA work.1.3
cpuUtilizationBorder- border percentage of average CPU utilization per pod for deployment. -
Celery (
hpa.celeryprefix):2.1
enabled- flag for enabling HPA, the same possible values as for API server.2.2
workerResources- custom resources for celery worker.requests.cpuparam is mandatory for proper HPA work.2.3
beatResources- custom resources for celery beat.requests.cpuparam is mandatory for proper HPA work.2.4
cpuUtilizationBorder- border percentage of average CPU utilization per pod for deployment.