load-balancer

Expert skill for load balancer configuration, algorithms, and high availability design

509 stars

Best use case

load-balancer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Expert skill for load balancer configuration, algorithms, and high availability design

Teams using load-balancer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/load-balancer/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/network-programming/skills/load-balancer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/load-balancer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How load-balancer Compares

Feature / Agentload-balancerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Expert skill for load balancer configuration, algorithms, and high availability design

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Load Balancer Skill

Expert skill for load balancer configuration, algorithm implementation, and high availability design.

## Capabilities

- **HAProxy Configuration**: Configure HAProxy for L4/L7 load balancing with advanced features
- **NGINX Load Balancing**: Set up NGINX as a reverse proxy and load balancer
- **Algorithm Implementation**: Implement round-robin, weighted, least-connections, IP-hash, and consistent hashing
- **Health Checking**: Design comprehensive health check strategies (TCP, HTTP, custom)
- **Session Persistence**: Configure sticky sessions, cookie-based affinity, and source IP persistence
- **Load Distribution Analysis**: Analyze and optimize traffic distribution across backends
- **High Availability**: Configure HA pairs with failover using keepalived/VRRP
- **SSL/TLS Termination**: Configure TLS termination and re-encryption

## Tools and Dependencies

- `HAProxy` - High-performance TCP/HTTP load balancer
- `NGINX` - Web server and reverse proxy
- `keepalived` - HA and failover
- `LVS/IPVS` - Linux Virtual Server
- `haproxyctl` - HAProxy management

## Target Processes

- layer4-load-balancer.js
- layer7-load-balancer.js
- health-check-system.js

## Usage Examples

### HAProxy Backend Configuration
```haproxy
backend web_servers
    balance roundrobin
    option httpchk GET /health
    http-check expect status 200
    server web1 10.0.0.1:80 check weight 100
    server web2 10.0.0.2:80 check weight 100 backup
```

### NGINX Upstream Configuration
```nginx
upstream backend {
    least_conn;
    server 10.0.0.1:8080 weight=5;
    server 10.0.0.2:8080;
    keepalive 32;
}
```

### Health Check Verification
```bash
echo "show stat" | socat stdio /var/run/haproxy/admin.sock
```

## Quality Gates

- Backend health verification
- Load distribution validation
- Failover testing
- Performance benchmarking
- Session persistence verification

Related Skills

load-test-generator

509
from a5c-ai/babysitter

Generate load test scripts for k6, Locust, and Gatling from OpenAPI specs

gatling-load-testing

509
from a5c-ai/babysitter

Expert skill for Gatling simulation development, load test execution, and performance analysis. Write Gatling simulations in Scala DSL, configure injection profiles and feeders, define assertions, analyze HTML reports, and integrate with Gatling Enterprise.

line-balancer

509
from a5c-ai/babysitter

Assembly line balancing skill for workstation design and cycle time optimization.

wind-load-calculator

509
from a5c-ai/babysitter

Wind load calculation skill per ASCE 7 for MWFRS and components and cladding

load-combination-generator

509
from a5c-ai/babysitter

Load combination generation skill per ASCE 7 and AASHTO for ASD and LRFD design methods

load-optimization-calculator

509
from a5c-ai/babysitter

AI-powered load building and consolidation skill to maximize trailer utilization and reduce transportation costs

electron-main-preload-generator

509
from a5c-ai/babysitter

Generate secure main process and preload script boilerplate with proper context isolation, IPC patterns, and security best practices for Electron applications

yaml-json-toml-loader

509
from a5c-ai/babysitter

Generate multi-format configuration file loaders for YAML, JSON, and TOML formats.

plugin-loader-generator

509
from a5c-ai/babysitter

Generate dynamic plugin loading system with discovery, validation, and lifecycle management.

process-builder

509
from a5c-ai/babysitter

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.

Workflow & Productivity

babysitter

509
from a5c-ai/babysitter

Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)

yolo

509
from a5c-ai/babysitter

Run Babysitter autonomously with minimal manual interruption.