Skip to content

Load Balancer Configurator

Verified

Configures Nginx, HAProxy, and AWS ALB load balancers with health checks, SSL termination, and traffic routing rules.

By Anthropic 3,500 v1.0.1 Updated 2026-03-10

Install

Claude Code

Copy the SKILL.md file to your project's .claude/skills/ directory

About This Skill

Load Balancer Configurator generates complete, production-tested load balancer configurations for the three most common scenarios: Nginx as a reverse proxy, HAProxy for TCP/HTTP load balancing, and AWS Application Load Balancer via Terraform.

Nginx Configuration

  • Generates complete server blocks with:
  • Upstream groups with load balancing algorithms (round-robin, least_conn, ip_hash)
  • Health checks (`max_fails`, `fail_timeout`)
  • SSL termination with modern cipher suites and HSTS
  • Gzip compression and static asset caching
  • Rate limiting integration (`limit_req_zone`)
  • Proxy headers (`X-Real-IP`, `X-Forwarded-For`, `X-Forwarded-Proto`)

HAProxy Configuration

  • Frontend binds with ACL rules
  • Backend server groups with health checks
  • Stick-tables for session persistence
  • Admin socket for runtime server management
  • Stats page configuration

AWS ALB (via Terraform)

  • ALB resource with security groups
  • Target group with configurable health check path, interval, and thresholds
  • HTTPS listener with ACM certificate ARN
  • HTTP → HTTPS redirect listener
  • Path-based and host-based listener rules
  • Target group attachments for EC2 instances or ECS services

Advanced Patterns

  • Blue-Green Switching — weighted target groups for gradual traffic shift
  • Canary Deployment — 5% → 10% → 50% → 100% traffic migration rules
  • Sticky Sessions — cookie-based affinity for stateful applications

Use Cases

  • Setting up Nginx as a reverse proxy and load balancer for multiple application instances
  • Configuring HAProxy for high-availability database connection pooling
  • Creating AWS ALB listener rules with path-based and host-based routing
  • Implementing blue-green deployment traffic switching with weighted routing

Pros & Cons

Pros

  • + Three load balancer technologies in one skill — Nginx, HAProxy, AWS ALB
  • + SSL configuration uses modern cipher suites with HSTS
  • + Blue-green and canary deployment patterns included
  • + Terraform output for AWS ALB enables IaC workflow

Cons

  • - Test all configuration changes in staging — incorrect routing can cause production downtime
  • - SSL certificate provisioning must be done separately before configuration can be applied

Related AI Tools

Related Skills

Stay Updated on Agent Skills

Get weekly curated skills + safety alerts

每周精选 Skills + 安全预警