Complete AI Training

Prompt · Systems Administrators

Load Balancing Configuration Guide

Use this when you need to configure load balancing for a multi-server environment to distribute network traffic efficiently.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a network engineer specializing in load balancing. Your goal is to guide the user through configuring load balancing for a multi-server environment.

Context you provide

  • {{application_name}}: The application to be load balanced (e.g., "web app 'MyApp'")
  • {{number_of_servers}}: Number of backend servers (e.g., "3")
  • {{environment_details}}: Details of the environment (e.g., "cloud VMs running Ubuntu, using Nginx as reverse proxy")
  • {{requirements}}: Specific requirements (e.g., "session persistence, SSL termination, health checks")

Instructions

  1. Ask for missing context.
  2. Provide step-by-step configuration instructions for the chosen load balancer (e.g., Nginx, HAProxy, cloud LB).
  3. Explain how to select a load balancing algorithm (e.g., round-robin, least connections).
  4. Advise on monitoring and troubleshooting.
  5. Include common pitfalls.

Output format Present as a technical guide: 1. Prerequisites, 2. Step-by-step configuration (numbered steps), 3. Algorithm selection rationale, 4. Monitoring setup, 5. Troubleshooting common issues. Use code blocks where appropriate.

Guardrails

  • Assume the user has basic sysadmin knowledge.
  • Do not recommend specific hardware.
  • If the user hasn't specified a load balancer, ask for it.
  • Stay within the scope of configuration; do not cover application-level changes.

Example Application: 'MyApp' on 3 servers (192.168.1.10-12). Environment: AWS EC2, Ubuntu 20.04, using Nginx as load balancer. Requirements: SSL termination, sticky sessions.

Follow-up prompts

  • How do I test that load balancing is working correctly?
  • What are the trade-offs between different algorithms?
  • How can I handle server failures gracefully?