load-balancing
Installation
SKILL.md
Load Balancing
Distribute traffic across instances. No single point of failure.
1. Load Balancing Algorithms
| Algorithm | How | When |
|---|---|---|
| Round Robin | Requests cycle through servers | Uniform servers, stateless |
| Least Connections | Route to server with fewest connections | Long-lived connections |
| IP Hash | Client IP → same server | Session persistence (avoid if possible) |
| Weighted Round Robin | Distribute by server capacity | Mixed server sizes |
| Random | Random server selection | Simple, similar to round robin |
| Health-check based | Skip unhealthy servers | Always |