3 ms·
> First question, what is a typical use case for wanting multiple instances of a specific process? distribute the load. For example I can run several "redis wo
by tarekmoz 13y ago
> First question, what is a typical use case for wanting multiple instances of a specific process?
distribute the load. For example I can run several "redis workers" that gets jobs to do in a redis queue.
> Second question, if I am running multiple managed processes, how can they all bind to the same managed socket?
if you bind a socket and then forks 10 child processes, they can all accept connections on that socket and let the operating system do the load-balancing.
This is exactly how the Apache pre-fork model works.
- acron0 13y agoAwesome, thanks for answering my questions.