Load Balancing
Self-test
Check your understanding
Self-test8 questions
—/8
Why did least_conn keep sending requests to a busy backend before upstreams had a zone?
What does consistent hashing buy you over plain hash when servers change?
Why is ip_hash a poor way to make sessions sticky?
How did clients experience a stopped backend versus a hung one, and why the difference?
Why did Nginx return 504 for a POST to a hung backend instead of retrying it?
A 7-second request returned 504 after 10 s. Explain each part of that number.
Why did app-2 receive no traffic after moving to a new IP, and what fixed it?
- Design question
A route sometimes takes 20 s legitimately and its backend can hang. Choose its timeouts and retry policy.