We have a docker container which can service only one request from user at a time. So, we want to scale up and down whenever there is a request from user.
But in the docker swarm I can see only setting number of containers for a service as static by just providing the number. We need like whenever there is a new request from user a container should scale up if existing container is interacting with other user/session and destroy once the session is complete or scale down.
Can anyone, please suggest how to do that.