Jonathan
Jonathan

Reputation: 11375

Scaling: Docker containers vs Vms

I'm trying to understand the benefits of scaling an app via docker.

As I understand it; if I have a dockerized app running in a single docker container or pod in kubernetes; to scale it i.e. in the case of increased load I would create multiple instances of the same container and load balance requests to each container; thing is if all these containers are on the same vm aren't they all drawing from the same system resources?

What is scaling via docker then? Is it real? If all the container instances of your app are all drawing on the resources of the host machine?

Upvotes: 4

Views: 414

Answers (1)

Drew
Drew

Reputation: 751

You are correct that scaling up and running more instances of a container on a single host will cause them to compete for resources. You'd want a kubernetes cluster with more than one 'minion'/host nodes. Having more than one container on a single host can be good, if load balanced properly, and a single container crashes, the other will still be up, without any delay or downtime while the replacement container is created.

Upvotes: 4

Related Questions