Hacker News new | ask | show | jobs
by mpakes 5545 days ago
Nginx uses a configurable, fixed number of worker processes, handling many connections per worker process. This allows Nginx to maximize throughput on any variety of multi-processor and/or multi-core configurations.

If one worker dies, any of the connections it's handling will close, but connections associated with the other worker processes stay alive. I'm not 100% sure, but I believe the master process will restart a worker if it dies.

All that said, I've never seen Nginx crash (except when playing around with an experimental third-party module - but never in production). For any production server, you should be using some form of monitoring daemon that will alert in case of a failure and automatically restart the web server process.

1 comments

Cool thanks for the information.
why is your handle green?
I have no idea.
Usernames under 5 days old are green; part of PG's experiments on Hacker News to prevent dilution of the community.

See http://news.ycombinator.com/item?id=2434333 and http://news.ycombinator.com/noobstories