Learn Labs
Load Balancing

Self-test

Check your understanding

Self-test8 questions

—/8
  1. Why did least_conn keep sending requests to a busy backend before upstreams had a zone?

  2. What does consistent hashing buy you over plain hash when servers change?

  3. Why is ip_hash a poor way to make sessions sticky?

  4. How did clients experience a stopped backend versus a hung one, and why the difference?

  5. Why did Nginx return 504 for a POST to a hung backend instead of retrying it?

  6. A 7-second request returned 504 after 10 s. Explain each part of that number.

  7. Why did app-2 receive no traffic after moving to a new IP, and what fixed it?

  8. Design question

    A route sometimes takes 20 s legitimately and its backend can hang. Choose its timeouts and retry policy.