Agent skill

Testing Load Balancers

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Validate load balancer behavior, failover, and traffic distribution.

MITAuto-check passedDevOps & Cloud

Install Testing Load Balancers

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill testing-load-balancers -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace testing-load-balancers --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/testing-load-balancers .claude/skills/testing-load-balancers && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
testing-load-balancers
GitHub stars
2.8k
Token cost
~1.6k tokens
SKILL.md length
549 words
Files
7 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Validate load balancer behavior, failover, and traffic distribution.

  • Works in 7 steps: Verify basic load balancer connectivity → Test traffic distribution algorithm → Validate health check behavior → …
  • Performing specialized testing
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Calls curl, docker and jq; reaches lb.test.com

What it does

Testing Load Balancers is an agent skill from jeremylongshore/tons-of-skills-marketplace. Validate load balancer behavior, failover, and traffic distribution. Use when performing specialized testing. Trigger with phrases like "test load balancer", "validate failover", or "check traffic distribution".

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts, reference files and assets (for example `assets/README.md`, `assets/test_template.json` and `references/README.md`). Compatibility notes: Designed for Claude Code

It sits in DevOps & Cloud, covering Cloud networking and Backup and disaster recovery. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Performing specialized testing
  • With phrases like test load balancer
  • Validate failover
  • Check traffic distribution

Example prompts

  • “test load balancer”
  • “validate failover”
  • “check traffic distribution”
  • “/testing-load-balancers”

Requirements

  • Docker
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(test:loadbalancer-*)

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Verify basic load balancer connectivity
  2. Test traffic distribution algorithm
  3. Validate health check behavior
  4. Test failover scenarios
  5. Validate session persistence (sticky sessions)
  6. Test connection draining
  7. Document all results with request/response evidence and timing data.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(test:loadbalancer-*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • docker
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • lb.test.com

    Also links to:

    • docs.nginx.com
    • haproxy.org
    • docs.aws.amazon.com
    • grafana.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Testing Load Balancers loads about 1.6k tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 59 tokens; SKILL.md has 549 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 549 words, ~1,561 tokens.

Download SKILL.mdSave it as .claude/skills/testing-load-balancers/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
testing-load-balancers
description
Validate load balancer behavior, failover, and traffic distribution. Use when performing specialized testing. Trigger with phrases like "test load balancer", "validate failover", or "check traffic distribution".
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(test:loadbalancer-*)
compatibility
Designed for Claude Code
version
1.21.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
testing, testing-load

Load Balancer Tester

Overview

Validate load balancer behavior including traffic distribution algorithms, health check mechanisms, failover scenarios, session persistence, and SSL termination. Supports testing for NGINX, HAProxy, AWS ALB/NLB, GCP Load Balancers, and Kubernetes Ingress controllers.

Prerequisites

  • Load balancer deployed and accessible in a test environment
  • Multiple backend instances running with identifiable responses (hostname headers)
  • HTTP client tools (curl, wrk, hey, or k6) for sending test traffic
  • Access to load balancer configuration and health check settings
  • Ability to stop/start backend instances to simulate failures

Instructions

  1. Verify basic load balancer connectivity:
    • Send a request through the load balancer and confirm a backend response.
    • Check the response includes identifying headers (X-Backend-Server, Server) to determine which instance served the request.
    • Verify SSL/TLS termination works correctly (valid certificate, proper redirect from HTTP to HTTPS).
  2. Test traffic distribution algorithm:
    • Send 100+ sequential requests and record which backend handled each.
    • For round-robin: verify even distribution across all backends (within 5% tolerance).
    • For least-connections: verify the least-loaded backend receives new requests.
    • For weighted: verify traffic ratio matches configured weights.
  3. Validate health check behavior:
    • Stop one backend instance.
    • Verify the load balancer detects the failure within the configured health check interval.
    • Confirm subsequent requests are routed only to healthy backends (zero errors).
    • Restart the backend and verify it is returned to the pool after passing health checks.
  4. Test failover scenarios:
    • Stop all backends except one and verify the remaining backend handles all traffic.
    • Stop all backends and verify the load balancer returns a 502 or 503 error (not hang).
    • Simulate slow backend responses and verify timeout behavior.
  5. Validate session persistence (sticky sessions):
    • Send multiple requests with the same session cookie.
    • Verify all requests route to the same backend instance.
    • Verify a new session (no cookie) can route to any backend.
  6. Test connection draining:
    • Start a long-running request, then remove the backend from the pool.
    • Verify the in-flight request completes successfully.
    • Verify new requests route to remaining backends.
  7. Document all results with request/response evidence and timing data.
Show full SKILL.md (214 more words)Show less

Output

  • Traffic distribution report showing request counts per backend instance
  • Health check failover timeline with detection and recovery durations
  • Session persistence validation results
  • SSL/TLS certificate and configuration verification
  • Load balancer behavior summary with pass/fail for each test scenario

Error Handling

ErrorCauseSolution
All requests hit the same backendSession affinity enabled unintentionally or DNS cachingDisable sticky sessions for distribution tests; use different source IPs; bypass DNS cache
Health check passes but backend is unhealthyHealth check endpoint does not reflect actual application healthConfigure health checks to hit a deep endpoint that verifies database connectivity
502 Bad Gateway during failoverHealth check interval too long; load balancer still routing to failed backendReduce health check interval and failure threshold; verify deregistration delay settings
SSL certificate errorCertificate does not match domain or is expiredVerify certificate SAN entries; check expiration date; ensure full certificate chain is configured
Connection refused on backend portFirewall or security group blocking load balancer to backend trafficVerify security group rules allow traffic from load balancer subnet; check backend listen address

Examples

Traffic distribution test with curl:

bash
#!/bin/bash
set -euo pipefail
declare -A counts
for i in $(seq 1 100); do
  backend=$(curl -s -H "Host: app.test.com" http://lb.test.com/health \
    | jq -r '.hostname')
  counts[$backend]=$(( ${counts[$backend]:-0} + 1 ))
done
echo "Traffic distribution:"
for backend in "${!counts[@]}"; do
  echo "  $backend: ${counts[$backend]} requests"
done

Failover test sequence:

bash
set -euo pipefail
# 1. Verify both backends serve traffic
curl -s http://lb.test.com/health  # Backend A
curl -s http://lb.test.com/health  # Backend B

# 2. Stop Backend A
docker stop backend-a

# 3. Verify all traffic goes to Backend B (no errors)
for i in $(seq 1 10); do
  curl -sf http://lb.test.com/health || echo "FAIL: request $i"
done

# 4. Restart Backend A and verify it rejoins
docker start backend-a
sleep 10  # Wait for health check interval
curl -s http://lb.test.com/health  # Should see Backend A again

k6 load test against load balancer:

javascript
import http from 'k6/http';
import { check } from 'k6';

export const options = { vus: 50, duration: '30s' };

export default function () {
  const res = http.get('http://lb.test.com/api/data');
  check(res, {
    'status is 200': (r) => r.status === 200,  # HTTP 200 OK
    'response time < 500ms': (r) => r.timings.duration < 500,  # HTTP 500 Internal Server Error
  });
}

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references, assets) in skills/.curated/testing-load-balancers of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • assets/example_config.conf
  • assets/report_template.html
  • assets/test_template.json
  • references/README.md
  • scripts/README.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Testing Load Balancers next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Testing Load Balancers compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Testing Load Balancers this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.6kAutomated safety check: PassMIT
Unifienuno/unifi-mcp-server284—~1kAutomated safety check: PassApache-2.0
Azure Resource Manager SQL Dotnetmicrosoft/skills3.1k5 repos~2.6kAutomated safety check: PassMIT
Routing Architecturemajiayu000/litellm-rs118—~1.9kAutomated safety check: PassMIT
Azure Resource Manager Mysql Dotnetmicrosoft/skills3.1k5 repos~3.5kAutomated safety check: PassMIT
Azure Resource Manager Postgresql Dotnetmicrosoft/skills3.1k5 repos~4kAutomated safety check: PassMIT

Similar skills

  • Unifi

    enuno/unifi-mcp-server

    Manage UniFi network infrastructure via the UniFi MCP Server.

    284 GitHub stars~1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Azure Resource Manager SDK for Azure SQL in .NET. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~2.6k tokens
    DevOps & CloudAuto-check passed
  • Routing Architecture

    majiayu000/litellm-rs

    LiteLLM-RS Routing Architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~1.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Azure MySQL Flexible Server SDK for .NET. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~3.5k tokens
    DevOps & CloudAuto-check passed
  • Azure PostgreSQL Flexible Server SDK for .NET. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~4k tokens
    DevOps & CloudAuto-check passed
  • Networking Load Balancing Interviewer

    PrepLabsAI/InterviewMentor

    A Network Infrastructure Engineer interviewer. An agent skill from PrepLabsAI/InterviewMentor.

    112 GitHub stars~2.6k tokensUpdated 4 days ago
    DevOps & CloudAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Categories

Questions about Testing Load Balancers

What does Testing Load Balancers do?

Validate load balancer behavior, failover, and traffic distribution. Testing Load Balancers is an agent skill from jeremylongshore/tons-of-skills-marketplace. Validate load balancer behavior, failover, and traffic distribution.

When should I use Testing Load Balancers?

Testing Load Balancers fits situations like: performing specialized testing; with phrases like test load balancer; validate failover; check traffic distribution.

How do I install Testing Load Balancers in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill testing-load-balancers -a claude-code`. Or copy the skill folder (skills/.curated/testing-load-balancers in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/testing-load-balancers in your project. Claude Code loads it when a task matches its description.

How do I install Testing Load Balancers in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill testing-load-balancers -a codex`. Or copy the skill folder (skills/.curated/testing-load-balancers in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/testing-load-balancers in your project. Codex loads it when a task matches its description.

Can I use Testing Load Balancers in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill testing-load-balancers -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testing-load-balancers, .gemini/skills/testing-load-balancers, .github/skills/testing-load-balancers and .opencode/skills/testing-load-balancers in your project.

What does Testing Load Balancers need to run?

Going by SKILL.md and its folder, Testing Load Balancers needs the command-line tools its instructions call (curl, docker and jq). Our summary lists: Docker. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(test:loadbalancer-*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Testing Load Balancers access the network?

SKILL.md names 6 domains. In commands or code: lb.test.com; the agent is likely to contact it when it follows the instructions. As links in the text: docs.nginx.com, haproxy.org, docs.aws.amazon.com, grafana.com and github.com. This is read from the text; nothing was executed.

Is Testing Load Balancers safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Testing Load Balancers use?

Testing Load Balancers is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Testing Load Balancers use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16 tokens, read only when the agent opens those files.

What are the alternatives to Testing Load Balancers?

Skills that share tags, products or a category with Testing Load Balancers: Unifi (enuno/unifi-mcp-server, 284 stars), Azure Resource Manager SQL Dotnet (microsoft/skills, 3.1k stars), Routing Architecture (majiayu000/litellm-rs, 118 stars) and Azure Resource Manager Mysql Dotnet (microsoft/skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Testing Load Balancers?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.