3 ms·
I would argue, service, not process :-)
by fatherlinnux 11y ago
I would argue, service, not process :-)
- cbsmith 11y agoYou could certainly make that argument, but I've struggled to think of cases where processes aren't the right point of container separation.
- fatherlinnux 11y agoNginx, Apache Prefork, Apache MPM, and PHP FPM all have multiple processes, and I would NEVER try to split up subprocesses of any of these into multiple containers. It's quite simple if something communicates through shared memory, it should probably be in the same container. If it doesn't then that's NOT a reason to keep it in the the same container, but I don't see how it justifies the work of splitting it up....
- cbsmith 11y agoYeah, worker processes are the only thing I can think of. Even then, It is often more flexible to just run one process containers and have more of them. Then you can allocate containers more flexibly. Absolutely for anything that uses shared memory for IPC, but then you basically have threads pretending to be processes. ;-)