Deploy vLLM with health checks, monitoring, and resilience on AMD Instinct GPUs.
Production-ready configuration with health checks and restart policies:
vLLM exposes these endpoints for health monitoring:
The /health endpoint only becomes available after the API server starts (~15-30 seconds after container spawn). For large models, full readiness (model loaded) can take 5-10 minutes.
vLLM exposes Prometheus-compatible metrics at /metrics.
Add to prometheus.yml:
Docker Compose with Prometheus and Grafana:
Create prometheus.yml:
vLLM logs include timestamps and log levels. For JSON output, use a log aggregator like Loki or Fluentd to parse the container logs.
vLLM handles SIGTERM for graceful shutdown. Docker Compose sends SIGTERM by default.
This allows in-flight requests to complete before the container stops.
For multiple vLLM instances, use a reverse proxy:
Example nginx.conf:
Example Prometheus alerting rules:
docker-compose.yml with the configuration aboveprometheus.yml for metrics scrapingexport HF_TOKEN=your_tokendocker compose up -d
0 Comments
Be the first to comment and share your perspective with the community.