Answer the question
In order to leave comments, you need to log in
How to autoscale docker?
There is an application that runs in a docker container.
Now it is required for a certain event to increase the number of containers.
That is, the container image is the same, but only the launch argument can change.
Scaling should not occur due to a heavy load, but by an event or by a script that allows you to add 1 more container.
Read about
docker-compose up -d --scale app=5
Answer the question
In order to leave comments, you need to log in
If you need to "orchestrate" with docker, then docker swarm is better suited for this . The same docker, but spread over several hosts.
And it scales without reloading:
docker service scale helloworld=5
That is, the image of the container is the same, but only the argument for launching can change .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question