Deploy and configure load balancers to distribute traffic across multiple backend servers, ensuring high availability, fault tolerance, and optimal resource utilization across your infrastructure.
When to Use
Multi-server traffic distribution
High availability and failover
Session persistence and sticky sessions
Health checking and auto-recovery
SSL/TLS termination
Cross-region load balancing
API rate limiting at load balancer
DDoS mitigation
Quick Start
Minimal working example:
# /etc/haproxy/haproxy.cfg
global
log stdout local0
log stdout local1 notice
maxconn 4096
daemon
# Security
tune.ssl.default-dh-param 2048
ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256
ssl-default-bind-options ssl-min-ver TLSv1.2
defaults
log global
mode http
option httplog
option denylogin
option forwardfor
option http-server-close
# Timeouts
timeout connect 5000
timeout client 50000
timeout server 50000
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
Guide
Contents
HAProxy Configuration
HAProxy Configuration
AWS Application Load Balancer (CloudFormation)
AWS Application Load Balancer (CloudFormation)
Load Balancer Health Check Script
Load Balancer Health Check Script
Load Balancer Monitoring
Load Balancer Monitoring
Best Practices
✅ DO
Implement health checks
Use connection pooling
Enable session persistence when needed
Monitor load balancer metrics
Implement rate limiting
Use multiple availability zones
Enable SSL/TLS termination
Implement graceful connection draining
❌ DON'T
Allow single point of failure
Skip health check configuration
Mix HTTP and HTTPS without redirect
Ignore backend server limits
Over-provision without monitoring
Cache sensitive responses
Use default security groups
Neglect backup load balancers
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-load-balancer-setup3description: Load Balancer Setup4---56# Load Balancer Setup78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Deploy and configure load balancers to distribute traffic across multiple backend servers, ensuring high availability, fault tolerance, and optimal resource utilization across your infrastructure.1920## When to Use2122- Multi-server traffic distribution23- High availability and failover24- Session persistence and sticky sessions25- Health checking and auto-recovery26- SSL/TLS termination27- Cross-region load balancing28- API rate limiting at load balancer29- DDoS mitigation3031## Quick Start3233Minimal working example:3435```conf36# /etc/haproxy/haproxy.cfg37global38 log stdout local039 log stdout local1 notice40 maxconn 409641 daemon4243 # Security44 tune.ssl.default-dh-param 204845 ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA25646 ssl-default-bind-options ssl-min-ver TLSv1.24748defaults49 log global50 mode http51 option httplog52 option denylogin53 option forwardfor54 option http-server-close5556 # Timeouts57 timeout connect 500058 timeout client 5000059 timeout server 500006061// ... (see reference guides for full implementation)62```6364## Reference Guides6566Detailed implementations in the `references/` directory:6768| Guide | Contents |69|---|---|70| [HAProxy Configuration](references/haproxy-configuration.md) | HAProxy Configuration |71| [AWS Application Load Balancer (CloudFormation)](references/aws-application-load-balancer-cloudformation.md) | AWS Application Load Balancer (CloudFormation) |72| [Load Balancer Health Check Script](references/load-balancer-health-check-script.md) | Load Balancer Health Check Script |73| [Load Balancer Monitoring](references/load-balancer-monitoring.md) | Load Balancer Monitoring |7475## Best Practices7677### ✅ DO7879- Implement health checks80- Use connection pooling81- Enable session persistence when needed82- Monitor load balancer metrics83- Implement rate limiting84- Use multiple availability zones85- Enable SSL/TLS termination86- Implement graceful connection draining8788### ❌ DON'T8990- Allow single point of failure91- Skip health check configuration92- Mix HTTP and HTTPS without redirect93- Ignore backend server limits94- Over-provision without monitoring95- Cache sensitive responses96- Use default security groups97- Neglect backup load balancers9899---100> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.101<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-load-balancer-setup in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Load Balancer Setup It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.