NGINX uses worker_processes to handle connections. What happens if this value is set too low on a multi-core server?
Think about how CPU cores and worker processes relate.
Setting worker_processes too low means fewer processes handle requests, so CPU cores remain underused, slowing down traffic handling.
After enabling the stub_status module, you run curl http://localhost/nginx_status. What output shows active connections?
Active connections: 5 server accepts handled requests 100 100 200 Reading: 1 Writing: 2 Waiting: 2
Look for the line that directly states active connections.
The line starting with 'Active connections:' shows the current number of active connections handled by NGINX.
To handle high traffic, you want to increase the limit of open files NGINX can use. Which snippet correctly sets this in the nginx.conf?
Look for the directive that controls file descriptor limits.
worker_rlimit_nofile sets the maximum number of open files for worker processes, which is essential for handling many connections.
NGINX logs show 'too many open files' errors during peak traffic. What is the most likely cause?
Think about system limits on open files.
NGINX needs enough file descriptors to handle connections. If limits are too low, it cannot open new files/sockets, causing errors.
Arrange these steps in the correct order to tune NGINX for high traffic:
Think about setting base limits before increasing connections and applying changes last.
First set worker_processes, then increase worker_connections, adjust file limits, and finally reload NGINX to apply.