Load Balancer Configurator
VerifiedConfigures Nginx, HAProxy, and AWS ALB load balancers with health checks, SSL termination, and traffic routing rules.
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
Claude Code
Paid
Anthropic's agentic CLI for autonomous terminal-native coding workflows
- Terminal-native autonomous coding agent
- Full file system and shell access for multi-step tasks
- Deep codebase understanding via repository indexing
Cursor
Freemium
AI-native code editor with deep multi-model integration and agentic coding
- AI-native Cmd+K inline editing and generation
- Composer Agent for autonomous multi-file changes
- Full codebase indexing and context awareness
GitHub Copilot
Freemium
AI pair programmer that suggests code in real time across your IDE
- Real-time code completions across 30+ languages
- Copilot Chat for natural language code Q&A
- Pull request description and summary generation
Related Skills
Nginx Configurator
CautionGenerates optimized Nginx configurations for reverse proxy, load balancing, SSL termination, caching, and security hardening.
Ansible Playbook Builder
VerifiedGenerates idiomatic Ansible playbooks and roles for server configuration, application deployment, and infrastructure automation.
Monitoring Setup
CautionConfigures observability stacks including Prometheus, Grafana, Alertmanager, and OpenTelemetry with dashboards, alerts, and SLO definitions.
Stay Updated on Agent Skills
Get weekly curated skills + safety alerts
每周精选 Skills + 安全预警