0
0
Nginxdevops~5 mins

Round-robin (default) in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the round-robin method in nginx load balancing?
Round-robin is the default load balancing method in nginx. It distributes incoming requests evenly across all backend servers in a repeating order, like taking turns.
Click to reveal answer
beginner
How does nginx decide which server to send a request to when using round-robin?
Nginx sends each new request to the next server in the list, cycling back to the first server after reaching the last one.
Click to reveal answer
intermediate
Show a simple nginx configuration snippet using round-robin load balancing.
upstream backend { server backend1.example.com; server backend2.example.com; } server { location / { proxy_pass http://backend; } }
Click to reveal answer
beginner
Why is round-robin load balancing useful?
It spreads the workload evenly across servers, preventing any single server from getting too busy and improving overall performance.
Click to reveal answer
intermediate
What happens if one backend server is slow or down in a round-robin setup?
Nginx will still send requests to that server unless health checks or failover are configured. This can cause delays or errors for users.
Click to reveal answer
What is the default load balancing method in nginx?
ARound-robin
BLeast connections
CIP hash
DRandom
In round-robin load balancing, how does nginx choose the next server?
ARandomly picks any server
BChooses the server with least load
CAlways picks the first server
DCycles through servers in order
Which nginx directive defines the group of backend servers for load balancing?
Aupstream {}
Bproxy_pass {}
Clocation {}
Dserver {}
What is a limitation of round-robin without health checks?
AIt never balances load
BIt only uses one server
CIt can send requests to down servers
DIt requires manual server selection
How can you improve round-robin load balancing to avoid sending requests to unhealthy servers?
AUse IP hash method
BConfigure health checks and failover
CDisable load balancing
DUse random load balancing
Explain how round-robin load balancing works in nginx and why it is useful.
Think about taking turns to share work fairly.
You got /4 concepts.
    Describe a simple nginx configuration to set up round-robin load balancing with two backend servers.
    Focus on how to list servers and connect them to the proxy.
    You got /4 concepts.