niiknow / vestacp

Dockerized Vesta Control Panel aka vestacp
MIT License
148 stars 89 forks source link

ECS & EFS #74

Open franckadil opened 5 years ago

franckadil commented 5 years ago

Hello guys,

Thank you for your amazing work, I am learning docker and trying to figure out how to scale your container on an ECS environment using EFS to persist data. Anyone willing to collaborate on this ?

Cheers, Franck

noogen commented 5 years ago

Horizontal scaling with docker is easy but VestaCP is not. It is easier to scale Vesta Vertically.

I was asked before about the purpose of this docker for VestaCP. This is because the purpose of docker is to run thing as a Microservice. VestaCP is too massive (too many moving parts) to simply scale on EFS. Ultimately, my response was to simplify my installation and maintenance of Vesta.

To put it in another way, what are you trying to scale? Server-side web (apache, nginx ?), db(mysql, mongo?), Server-side language (php, node, python), storage, etc...? It is easier to run each service (microservice) as individual docker image for scaling. If you say EFS, you're only considering the file system (storage, server-side web and language). What about database? Will you be using AWS RDS?

Vertical scaling require FULL Stack consideration. It is easier to scale by running each container as docker microservices instead of handling everything in a massive docker container.

franckadil commented 5 years ago

Hi @noogen sorry for my delayed answer just stumbled upon the notification. I need to run some tests and share with you my architecture diagram. Is it possible in your setup to create a volume for the Database storage ? or is it already done ?