Question 1 of 6
worker_connections 4096; applies to what scope?
It is a per-worker event-loop budget.
Each worker's event loop tracks up to worker_connections sockets — client plus upstream legs both count. Multiply by worker_processes for the machine ceiling, and keep the worker fd ceiling (worker_rlimit_nofile, Lesson 9.1) comfortably above it.
Review this lesson