Skip to main content

Scale to Zero

Free-tier services automatically sleep when idle and wake on the first request.

How It Works

  • Services on the Free plan are monitored for activity
  • After a period of inactivity (no HTTP requests), the service is scaled to 0 replicas
  • When a new request arrives, RailPush shows a branded wakeup page while the service starts (~30-60s cold start)
  • Once healthy, traffic is routed normally -- subsequent requests are instant
  • Custom domains also trigger wakeup correctly

Opt Out

Upgrade to any paid size (S, M, L) to keep your service running 24/7. Paid services are never auto-scaled to zero.

API
# Check if a service is sleeping
curl https://railpush.com/api/v1/services/<id> \
-H "Authorization: Bearer <token>"
# status: "sleeping" | "waking" | "live"

# Manually wake a sleeping service
curl -X POST https://railpush.com/api/v1/services/<id>/wake \
-H "Authorization: Bearer <token>"