v1

latestOpenAPI 3.1.02026-07-1730321418.0 KB
Ready

Check Readiness

Check the runtime status of all the components of the runtime. If the service is ready, it returns an HTTP 200 status with the message "ready". If not, it returns a 503 status with the message "not ready".

The behavior for when an accelerated dataset is considered ready is configurable via the ready_state parameter. See Data refresh for more details.

In distributed (scheduler) mode the readiness response can additionally be gated on executor availability via the min_ready_executors and min_ready_executors_percent query parameters (both optional). Both must pass when supplied. Pass verbose=true to get a multi-line diagnostic body explaining each gate.

Readiness Probe

In production deployments, the /v1/ready endpoint can be used as a readiness probe for a Spice deployment to ensure traffic is routed to the Spice runtime only after all datasets have finished loading.

Example Kubernetes readiness probe:

readinessProbe:
 httpGet:
   path: /v1/ready
   port: 8090

Example with executor gating (scheduler role):

readinessProbe:
 httpGet:
   path: /v1/ready?min_ready_executors=3&min_ready_executors_percent=80
   port: 8090
get/v1/ready

Query parameters

min_ready_executorsinteger nullable

Minimum number of currently-ready executors required for the probe to succeed. "Ready" means the scheduler has a live FlightSQL client for the executor — i.e. it can route queries to it. A value of 0 is treated as "gate disabled" and never blocks. Requires scheduler role; supplying a non-zero value outside scheduler role returns 400.

min_ready_executors_percentinteger nullable

Minimum percentage (0-100) of currently-ready executors relative to the number of executors currently registered (control stream open). A value of 0 is treated as "gate disabled" and never blocks. Values above 100 return 400. Requires scheduler role; supplying a non-zero value outside scheduler role returns 400.

verboseboolean

When true, the response body becomes a multi-line diagnostic listing the result of each gate. The HTTP status code is unchanged. Useful for kubectl describe / curl debugging.

Response

Service is ready