Hands-on task
This task is step 17 of the course “nginx basics”
Load balancing two backends
Two instances of the app are already running: 127.0.0.1:5001 and 127.0.0.1:5002. Configure nginx on port 80 to balance between them — repeated requests to http://localhost/ should reach both backends.
Reference:nginx
What you'll practise:
- nginx
- upstream
- proxy_pass
- load balancing
- round-robin