Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Load Balancer Setup

  • 368 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

load-balancer-setup is an agent skill that configures HAProxy and AWS ELB/ALB/NLB load balancers with health probes, TLS termination, and session persistence for developers deploying highly available multi-instance servi

About

Covers practical load balancer setup for cloud and self-hosted stacks: listener rules, backend pools, health checks, SSL offload, and routing patterns that keep APIs available under rolling deploys and instance loss.

  • Health probe config
  • TLS termination
  • Target group routing
  • Failover patterns
  • Session affinity options

Load Balancer Setup by the numbers

  • 368 all-time installs (skills.sh)
  • +7 installs in the week ending Jun 23, 2026 (Skillselion tracking)
  • Ranked #397 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill load-balancer-setup

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs368
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you configure HAProxy or AWS ALB load balancers?

Configure load balancers, target groups, health probes, TLS termination, and traffic routing for highly available multi-instance deployments.

Who is it for?

Backend and platform engineers standing up HAProxy or AWS ALB/NLB/NLB layers with health checks, TLS termination, and session persistence.

Skip if: Single-server deployments, Kubernetes ingress already managed by a cluster, or teams needing managed CDN edge routing instead of L4/L7 load balancers.

When should I use this skill?

User asks to configure a load balancer, set up ALB target groups, add HAProxy health checks, or enable SSL termination and sticky sessions

What you get

HAProxy config files, AWS CloudFormation ALB templates, health-check scripts, and monitoring scrape rules

  • HAProxy configuration
  • CloudFormation ALB template
  • health-check scripts

Files

SKILL.mdMarkdownGitHub ↗

Load Balancer Setup

Table of Contents

Overview

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:

GuideContents
HAProxy ConfigurationHAProxy Configuration
AWS Application Load Balancer (CloudFormation)AWS Application Load Balancer (CloudFormation)
Load Balancer Health Check ScriptLoad Balancer Health Check Script
Load Balancer MonitoringLoad 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

Related skills

FAQ

Which load balancers does load-balancer-setup cover?

load-balancer-setup configures HAProxy for on-prem or VM deployments and AWS ELB, ALB, and NLB for cloud setups, including CloudFormation templates, health probes, TLS termination, and session persistence options.

What monitoring does load-balancer-setup include?

load-balancer-setup reference guides include health-check scripts and Prometheus scrape configurations plus email alert patterns for detecting unhealthy backends and load-balancer metric degradation.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.