lb-patterns

Configure load balancers with NGINX, HAProxy, AWS ALB, and Traefik patterns.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/HermeticOrmus/LibreDevOps-Claude-Code --skill lb-patterns-hermeticormus
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lb-patterns
Source: https://github.com/HermeticOrmus/LibreDevOps-Claude-Code/tree/main/plugins/load-balancing/skills/lb-patterns
Command: npx skills add https://github.com/HermeticOrmus/LibreDevOps-Claude-Code --skill lb-patterns-hermeticormus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing production load balancer configuration from scratch is error-prone: health checks, TLS settings, rate limiting, and canary traffic splits each have subtle failure modes that only surface under load. This Skill provides working configuration patterns for the most common load balancing platforms so you start from a correct baseline. ## Core Features & Use Cases - NGINX production config: Full nginx.conf with upstream keepalive, rate limit zones, TLS hardening, security headers, and a 90/10 canary split via split_clients. - AWS ALB with Terraform: Application Load Balancer with HTTPS listener, weighted target groups for canary deployments, health checks, access logging, and HTTP-to-HTTPS redirect. - HAProxy and Traefik: HAProxy config with active health checks, stick-table rate limiting, and WebSocket backends, plus Traefik IngressRoute with middleware chains on Kubernetes. - Use Case: You need to roll out a new API version to 10% of traffic. Copy the ALB weighted target group pattern or the NGINX split_clients block, adjust the weights, and deploy. ## Quick Start Ask Claude to generate a production NGINX load balancer config with rate limiting and a 10 percent canary upstream for your API service.

Frequently Asked Questions about lb-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a canary deployment with a load balancer?▼

Use weighted traffic splitting: NGINX split_clients with 90/10 percentages, AWS ALB weighted target groups, or Traefik service weights. Route the small percentage to the canary upstream and adjust weights as confidence grows.

How to configure rate limiting in NGINX?▼

Define a limit_req_zone keyed on $binary_remote_addr with a rate like 10r/s, then apply limit_req in a location block with a burst allowance. Return status 429 via limit_req_status when clients exceed the limit.

NGINX vs HAProxy vs AWS ALB for load balancing?▼

NGINX suits general reverse proxy and static content, HAProxy offers detailed active health checks and stick-table rate limiting, and AWS ALB integrates natively with ECS and ACM. The Skill provides production configs for all three plus Traefik.

Does AWS ALB support weighted target groups for canary releases?▼

Yes, ALB listeners support forward actions with multiple target groups each assigned a weight. The Terraform pattern shows a 90/10 split between stable and canary target groups with independent health checks.

Why do load balancer health checks mark healthy servers as down?▼

Common causes are wrong health check path, mismatched expected status codes, or timeouts shorter than app response time. The patterns use explicit checks like GET /health expecting 200 with configurable interval, rise, and fall thresholds.

How do I handle WebSocket connections through HAProxy?▼

Use a dedicated backend with balance source for client-IP stickiness and long timeout tunnel values, such as 3600s. Route Upgrade header requests to that backend with an acl matching hdr(Upgrade) -i websocket.