load-balancing

Configure nginx upstream blocks with algorithms and health checks for load balancing.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/billyfranklim1/claude-skills --skill load-balancing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-balancing
Source: https://github.com/billyfranklim1/claude-skills/tree/main/plugins/load-balancing/skills/load-balancing
Command: npx skills add https://github.com/billyfranklim1/claude-skills --skill load-balancing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Distributes traffic across multiple app backends and enables zero-downtime deployments by guiding nginx upstream configuration, health checking, and scalable routing strategies.

Core Features & Use Cases

  • Upstream basics (Round Robin) to route requests across backend instances.
  • Weighted and health-check supported setups to balance load and maintain availability.
  • Multiple balancing algorithms (round robin, least connections, ip_hash) for different session models.
  • Zero-downtime deploy workflows and graceful reconfiguration to minimize user-perceived downtime.
  • Diagnostics and practical deployment guidance for Next.js and Laravel workloads.

Quick Start

Configure a basic upstream in your nginx site and verify load balancing across multiple backends.

Frequently Asked Questions about load-balancing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure nginx load balancing for zero-downtime deployments?

Nginx load balancing achieves zero-downtime deployments by configuring upstream blocks with health checks and graceful reconfiguration. This routes traffic across multiple backend instances while managing weightings and balancing algorithms to minimize user-perceived downtime.

What is the best way to distribute traffic across multiple Next.js or Laravel backends?

Distributing traffic across Next.js or Laravel backends uses nginx upstream configuration to balance load and maintain availability. It applies weighted setups and health checks to route requests effectively across multiple app instances.

How does nginx upstream health checking work for high availability?

Nginx upstream health checking maintains high availability by monitoring backend instances and routing traffic only to healthy servers. It supports configuring weightings and multiple balancing algorithms to ensure requests avoid unavailable backends.

When should I use least connections vs ip_hash vs round robin for nginx load balancing?

Round robin distributes requests sequentially, least connections routes to the busiest available backend, and ip_hash maintains session persistence. Choose ip_hash for stateful applications requiring sticky sessions, and least connections for uneven workload distribution.

Can I use nginx load balancing to scale multiple app backends without dropping active connections?

Yes, nginx load balancing scales multiple app backends without dropping active connections by implementing zero-downtime deploy workflows and graceful reconfiguration. This manages upstream configuration to maintain availability during scaling events.