Works with the AI Agents you already use
Load Balancer Drain Simulator AI
Model connection termination and long-request graceful shutdown.
$9.99
What it does
- Model connection termination during load balancer draining
- Simulate graceful shutdown with long-running requests
- Compare how drain behavior affects connections still in progress
Load Balancer Drain Simulator AI
Example session with this skill installed
Synthetic example
Model a graceful shutdown for an Nginx ingress controller. I have 300 active WebSocket connections and a max request timeout of 60s. Target drain time is 90s. Data: nginx-conf-v2.txt.
- Read your context and instructions
- Compiled the load balancer drain
Synthetic example
I have modeled the connection termination scenario for your Nginx ingress controller based on the provided configuration and parameters.
Load Balancer Drain Scenario Worksheet
| Field | Value | Source/Evidence |
|---|---|---|
| Task ID | LB-DRAIN-NGINX-001 | User Input |
| Affected Item | Nginx Ingress Controller | nginx-conf-v2.txt |
| Assumption | WebSockets do not heartbeat during drain | Protocol Spec (RFC 6455) |
| Base Case | 60s shutdown (matched to max timeout) | Config: proxy_read_timeout 60s |
| Downside | 120s (overlap of drain + client retry) | Derived: $Timeout \times 2$ |
| Formula | $T_{total} = max(T_{req}) + T_{term_grace}$ | Operational Method v0.6.0 |
| Sensitivity | High for long-lived TCP streams | Observed in nginx-conf-v2.txt |
Network Path Evidence
- Client -> LB: TLS 1.3 termination, 90s drain window requested.
- LB -> Origin: WebSocket upgrade detected. Connection persistence active.
- Conflict: The requested 90s drain is sufficient for 60s timeouts but may orphan 5% of streams if
worker_shutdown_timeoutis not set in Nginx.
Decision Register
- Priority: High |
Action: Verify worker_shutdown_timeout value |
Owner: SRE Team |
Success: Value $\ge$ 90s.
2. Priority: Medium |
Action: Audit client-side retry exponential backoff |
Owner: App Dev |
Success: No thundering herd on restart.
Validation Summary
- Observed: Config timeout values, protocol type.
- Planned: Synthetic test of connection reset behavior.
- Not Run: Real-time traffic shed measurement (No tool access).
Next steps
- Update the Nginx configuration to include an explicit
worker_shutdown_timeoutof 90s. - Monitor the
active_connectionsmetric during the next canary rollout to validate the base case. - Review the downside scenario with the application team to ensure client-side connection errors are handled gracefully.
Connects securely to your tools. The creator never sees your data.
About this skill
This skill enables SRE and network engineering teams to simulate load balancer connection draining and graceful shutdowns without risking production traffic. It solves the problem of unpredictable service interruptions during maintenance by modeling how long-lived requests, active TCP connections, and backend timeouts interact under pressure.
Instead of guessing drain durations, the skill generates a rigorous scenario calculation worksheet. It maps network paths from client to origin, analyzing protocol-specific behaviors, queue limits, and resource ownership. The output provides a structured view of base-case, downside, and upside scenarios, complete with source-linked evidence and explicit formulas for shutdown windows.
It is designed for professionals managing high-availability infrastructure who need to justify maintenance windows or verify proxy configurations. By forcing a review of boundary cases and missing evidence, it ensures that connection termination plans are backed by data rather than assumptions. The skill focuses on analytical modeling and planning, providing a clear path toward safe execution and rollback.
Does not perform live traffic generation or security bypass. Requires user-provided topology or proxy configs for verified results. Does not execute destructive changes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.