Web / NGINX Interview questions
What is the master-worker process model in NGINX?
NGINX runs as one master process and one or more worker processes. The master process reads and validates the configuration, binds to the configured ports as root, and then spawns worker processes that do the actual request handling.
Workers run as an unprivileged user and never touch configuration files directly - they inherit listening sockets from the master. Because each worker is a separate OS process, a crash in one worker doesn't take down the others or the master.
The master also supervises the workers: it restarts any that die unexpectedly and coordinates graceful binary upgrades and configuration reloads without dropping active connections.
More Related questions...