Skip to main content

Health

Check the health of a running Ash server.

ash health

Queries the server's /health endpoint and prints the response.

ash health

Example Output

{
"status": "ok",
"activeSessions": 3,
"activeSandboxes": 2,
"uptime": 7200,
"pool": {
"total": 5,
"cold": 2,
"warming": 0,
"warm": 1,
"waiting": 1,
"running": 1,
"maxCapacity": 1000,
"resumeWarmHits": 5,
"resumeColdHits": 2
}
}

Fields

FieldDescription
statusAlways "ok" if the server is reachable
activeSessionsNumber of sessions with status active
activeSandboxesNumber of live sandbox processes
uptimeSeconds since the server started
pool.totalTotal sandbox entries in the database (live + cold)
pool.coldSandboxes with no live process (can be evicted or restored)
pool.warmingSandboxes currently starting up
pool.warmSandboxes with a live process, not yet assigned to a message
pool.waitingSandboxes idle between messages (sandbox alive, session paused or between turns)
pool.runningSandboxes actively processing a message
pool.maxCapacityMaximum number of sandboxes allowed (set by ASH_MAX_SANDBOXES)
pool.resumeWarmHitsNumber of resumes that found the sandbox still alive
pool.resumeColdHitsNumber of resumes that required creating a new sandbox

The health endpoint does not require authentication.