Install
Start Load Balancing
Add Monitoring
- Grafana: http://localhost:3000 (admin/admin)
- Prometheus: http://localhost:9090
Use a Config File
Createconfig.yaml:
Test It
Available Algorithms
| Algorithm | Use Case |
|---|---|
round-robin | Simple equal distribution |
least-connections | Route to least busy backend |
ip-hash | Session affinity by client IP |
weighted | Priority-based with weights |
random | Random selection |
power-of-two | Pick 2 random, use least loaded |
fastest-response | Route to fastest responder |
Next Steps
- Configuration - All config options
- Monitoring - Set up dashboards
- Algorithms - Choose the right algorithm