load-balancer

Configure Nginx load balancing with upstream servers, health checks, and failover.

29|7|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill load-balancer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-balancer
Source: https://github.com/armanzeroeight/fastagent-plugins/tree/main/plugins/nginx-toolkit/skills/load-balancer
Command: npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill load-balancer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you configure Nginx to distribute incoming network traffic across multiple backend servers, ensuring high availability and reliability for your applications.

Core Features & Use Cases

  • Traffic Distribution: Distribute requests using various algorithms (round-robin, least connections, IP hash, weighted).
  • Health Checks: Automatically detect and route traffic away from unhealthy servers.
  • Failover: Configure backup servers to take over when primary servers are unavailable.
  • Use Case: You have deployed a web application across three servers. Use this Skill to configure Nginx to distribute user traffic among them, automatically removing a server from rotation if it becomes unresponsive.

Quick Start

Use the load-balancer skill to configure Nginx with an upstream block for three backend servers named backend1, backend2, and backend3, using the least_conn load balancing method.

Frequently Asked Questions about load-balancer

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

FAQPage Schema
How do I configure Nginx load balancing across multiple backend servers?

To configure Nginx load balancing, you define an upstream block listing your backend servers and set a proxy pass directive. This distributes incoming network traffic across the servers using algorithms like round-robin or least connections.

What load balancing algorithms does Nginx support for traffic distribution?

Nginx supports four traffic distribution algorithms: round-robin, least connections, IP hash, and weighted. You select one by adding the corresponding directive within your upstream block to control how requests are routed.

How do I set up failover and health checks for backend servers in Nginx?

Failover and health checks in Nginx are configured within the upstream block to automatically detect unresponsive servers. You can route traffic away from unhealthy servers and configure backup servers to take over when primary servers are unavailable.

Do I need prior Nginx experience to use this load balancing configuration?

Yes, this requires an understanding of Nginx configuration directives for upstream blocks, proxying, and health checks. It is designed for users setting up traffic distribution across multiple backend servers who need high availability.

When should I use weighted load balancing instead of round-robin in Nginx?

Use weighted load balancing in Nginx when your backend servers have varying processing capacities, allowing you to assign more traffic to stronger servers. Round-robin distributes requests equally, making it suitable only for servers with identical capabilities.