首页/ AI 技能 / @skilllib/skill-2117939930272414576
Skill站外收录 @skilllib/skill-2117939930272414576

configuring-load-balancers

根据指定类型生成负载均衡器的生产级配置,支持健康检查、SSL 终端、会话保持及流量分发规则,适用于 ALB、NLB、Nginx 与 HAProxy 等场景。

0.0 (0) 26 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Configuring Load Balancers ## Overview This skill provides automated assistance for the described functionality. ## Prerequisites Before using this skill, ensure: - Backend servers are identified with IPs or DNS names - Load balancer type is determined (ALB, NLB, Nginx, HAProxy) - SSL certificates are available if using HTTPS - Health check endpoints are defined - Understanding of traffic distribution requirements (round-robin, least-connections) - Cloud provider CLI installed (if using cloud load balancers) ## Instructions 1. **Select Load Balancer Type**: Choose based on requirements (L4 vs L7, cloud vs on-prem) 2. **Define Backend Pool**: List backend servers with ports and weights 3. **Configure Health Checks**: Set check interval, timeout, and healthy threshold 4. **Set Up SSL/TLS**: Configure certificates and cipher suites 5. **Define Routing Rules**: Create path-based or host-based routing 6. **Enable Session Persistence**: Configure sticky sessions if needed 7. **Add Monitoring**: Set up logging and metrics collection 8. **Test Configuration**: Validate syntax and test traffic distribution ## Output **Nginx Configuration:** ```nginx # {baseDir}/nginx/load-balancer.conf ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - Nginx documentation: https://nginx.org/en/docs/ - HAProxy configuration guide: https://www.haproxy.org/ - AWS ALB documentation: https://docs.aws.amazon.com/elasticloadbalancing/ - GCP Load Balancing: https://cloud.google.com/load-balancing/docs - Example configurations in {baseDir}/lb-examples/

评论 0

还没有评论,来抢沙发。