/devops-skills:load-balancingfrom devops-skills
Covers distributing traffic across healthy backends — L4 versus L7 balancing, algorithms, health checks that detect real failure, connection draining during deploys, and the real latency and capacity cost of sticky sessions.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A load balancer's only job is to keep sending traffic to backends that can actually handle it, and stop sending it to ones that can't — everything else is a refinement of that. Most load-balancing incidents are not algorithm problems, they're health-check problems: a backend that's failing gets traffic anyway because the check never noticed, or a backend that's fine gets pulled because the check measured the wrong thing.
Correctness here matters more than cleverness. A load balancer that sends traffic to a dead backend has failed at its one job, no matter how good the algorithm is.
L4 (transport-layer) balancing routes by IP and port without looking at the request — it's fast, protocol-agnostic, and can't make routing decisions based on content. L7 (application-layer) balancing terminates the connection and reads the actual request, so it can route by path or header, do TLS termination, and retry idempotent requests — at the cost of more compute and being protocol-specific (usually HTTP).
Done when: the balancing layer chosen matches whether routing decisions need request content.
A health check that only confirms "the process is listening" will happily send traffic to a backend whose database connection died. The check should exercise a real dependency path — deep enough to catch actual failure, shallow enough not to become its own bottleneck or cascade a downstream outage into every backend failing its check simultaneously.
Done when: a genuinely unhealthy backend is removed from rotation within one check interval, and a healthy one is never flapped by check noise.
round-robin assumes every request costs about the same to serve — true for stateless, uniform
work, false the moment request cost varies widely. least-connections accounts for backends
already carrying more in-flight work, which matters when request duration is uneven.
Weighted variants let heterogeneous backend capacity be reflected explicitly instead of assuming
every instance is identical.
| Algorithm | Best fit | Weak point |
|---|---|---|
| Round-robin | Uniform, short requests | Ignores in-flight load |
| Least-connections | Variable request duration | Needs accurate connection counts |
| Weighted (either) | Heterogeneous backend sizes | Weights need upkeep as fleet changes |
Done when: the spread between p50 and p99 request duration has been measured, and the chosen algorithm matches that spread — round-robin only where the spread is narrow.
Removing a backend abruptly — scale-down, deploy, or a node being recycled — mid-request forces in-flight requests to fail. Connection draining marks the backend as not-accepting-new while letting existing connections finish within a bounded grace period, which is the difference between a deploy nobody notices and a deploy that spikes error rate every time.
Done when: a rolling deploy or scale-down produces zero failed in-flight requests, verified by watching error rate through the event rather than assuming the config is correct.
Session affinity (routing the same client to the same backend, usually via cookie or source IP) solves in-memory session state cheaply, but it defeats even distribution — one hot backend can end up overloaded while others idle, and draining or losing that backend loses the client's state entirely unless it's also replicated elsewhere. Prefer externalizing session state so any backend can serve any request; reach for stickiness only when that's genuinely not feasible.
caching-strategies for externalizing that state properly.Done when: every route using session affinity names the state that forced it, and per-backend load is graphed so the distribution cost of that affinity is visible rather than assumed.
A balancer can report 100% healthy backends while sending traffic wildly unevenly — a stale
weight, an algorithm interacting badly with connection reuse, or one AZ silently getting starved.
Per-backend request rate and latency, not just aggregate numbers, are what surface this; see
metrics-and-monitoring for the RED breakdown to apply per backend.
Done when: per-backend traffic share can be graphed and is within expected bounds, not just inferred from an aggregate health-check pass rate.
State the balancing layer (L4/L7) and algorithm chosen, what the health check actually exercises, the drain grace period, and whether sticky sessions are in use and why. Name the honest gap — usually a health check that's shallower than it should be, or a sticky-session dependency nobody has scheduled to remove — rather than reporting the setup as fully tuned when only the common path has been load-tested.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.