Docker Community Forums

Share and learn in the Docker community.

Scaling a dynamic website


(Vanderkerkoff) #1

Hello everyone

I need some guidance on how to accomplish something.

I’ve got multiple nodes hooked up to docker cloud from aws. We’ve got a fair few systems using services and stacks through docker-cloud and AWS, everything going ok so far.

What I’d like to do now, is have a dynamic web site running on 2 or more nodes,using scaling to load balance the traffic.

I need to take into account that the site uses a database.

What I’d like to be able to accomplish with this once complete, is the ability to scale down to 1 node, then when only one node is running, I can perform maintenance on the other node.

I’d also like to be able to use the same principle/mechanism to deploy updates to the web site code without causing any down.

I’m not really sure what I should be looking at here, I’m guessing it may be docker swarm, but that seems like it may be overkill for what I’m talking about here. Maybe it isn’t and that is what I do need to look at, but if anyone has had any experience of what I’m talking about here, or has any opinions either way, I’d be really grateful for any feedback.