salvo-graceful-shutdown

Drain in-flight Salvo requests via ServerHandle.stop_graceful before termination.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-graceful-shutdown-tdcare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-graceful-shutdown
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-graceful-shutdown
Command: npx skills add https://github.com/tdcare/genies --skill salvo-graceful-shutdown-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Graceful shutdown of Salvo servers for draining in-flight requests before termination.

Core Features & Use Cases

  • Signal-driven shutdown: integrate signal handling to trigger a graceful stop without dropping requests.
  • ServerHandle.stop_graceful: use the API to specify optional timeout and ensure in-flight requests complete.
  • Kubernetes-friendly: supports readiness and graceful termination in containerized environments.

Quick Start

Add the graceful shutdown snippet to your Salvo app and wire OS signals to call stop_graceful on the server handle.

Frequently Asked Questions about salvo-graceful-shutdown

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

FAQPage Schema
How do I implement graceful shutdown for a Salvo server to drain in-flight requests?

Graceful shutdown for a Salvo server is implemented by wiring OS signals like Ctrl+C and SIGTERM to the ServerHandle.stop_graceful API, which drains in-flight requests before termination.

What is the ServerHandle.stop_graceful API used for in Salvo?

The ServerHandle.stop_graceful API in Salvo triggers a graceful server shutdown by specifying an optional timeout to ensure in-flight requests complete before the process terminates.

Can I use Salvo graceful shutdown for zero-downtime deployments in Kubernetes?

Yes, Salvo graceful shutdown supports Kubernetes-friendly deployments by handling readiness checks and graceful termination in containerized environments to minimize request loss and downtime.

How do I handle SIGTERM signals to stop a Salvo server without dropping requests?

You handle SIGTERM signals by integrating signal handling logic that calls the ServerHandle.stop_graceful API, ensuring the Salvo server stops without dropping active in-flight requests.

Do I need optional health checks for a Salvo server graceful shutdown?

Optional health checks are used during Salvo server graceful shutdown to mark the service as shutting down, which supports readiness probes and prevents new traffic during the drain period.