docker-swarm-autoscaler
docker-swarm-autoscaler copied to clipboard
not scaling up
Hello!
After the deploy and adjustment in auto-scale.sh to CPU_PERCENTAGE_UPPER_LIMIT=09 CPU_PERCENTAGE_LOWER_LIMIT=01
and start load test, the cpu was goes to 400% but the scale up do not start. Also I have the deploy label with:
- "swarm.autoscaler=true"
- "swarm.autoscaler.maximum=4"
- "swarm.autoscaler.minimum=1"
I am using RHEL 9.1 with SELINUX enabled.
I have the impression that the performance stats aren't collected.
Thanks.
Thiago
You'll need cadvisor and prometheus to provide the cpu stats to the autoscaler. Have you deployed those?
You'll need cadvisor and prometheus to provide the cpu stats to the autoscaler. Have you deployed those?
Yes, sure! Following the entire process.
I had the same problem.
Based on cAdvisor's required mounted volumes, I changed cAdvisor's image tag in the swarm-autoscaler-stack.yml file to "latest" and commented the lines:
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
After this, everything worked smoothly.