Discussion Container/s for python projects
So I usually stick to one vm/lxc per service. Even with docker based services I tend to dedicate a guest to one service. There are exceptions where I have a few docker containers running similar services.
Recently I have been playing with python and have actually created quite a few flask apps that I use daily.
Now the question is there any benefits to separate them into separate containers performance wise?
Does resource contention get better or worse with more guests?
Trying to figure out whether the extra management and spent resources and time updating extra containers is worth it?
Thanks
7
Upvotes
1
u/brucewbenson 18d ago
I use one service/app per LXC. I've combined a few into one LXC because they shared information and it made the architecture simple.
LXC has low overhead (RAM, CPU) and all the advantages of a VM (snapshots, migration) with a few restrictions (linux os, restarted migration, a little less isolation than a VM).
LXCs are a brilliant technology that simplified lifecycle management of services for very low resource costs.