docker-swarm-autoscaler icon indicating copy to clipboard operation
docker-swarm-autoscaler copied to clipboard

not scaling up

Open thiagocpv opened this issue 1 year ago • 3 comments

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

thiagocpv avatar Mar 02 '23 04:03 thiagocpv

You'll need cadvisor and prometheus to provide the cpu stats to the autoscaler. Have you deployed those?

jcwimer avatar Mar 17 '23 18:03 jcwimer

You'll need cadvisor and prometheus to provide the cpu stats to the autoscaler. Have you deployed those?

Yes, sure! Following the entire process.

thiagocpv avatar Mar 17 '23 18:03 thiagocpv

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.

cande1gut avatar Jul 17 '23 22:07 cande1gut