GoodMemGoodMem
ReferenceAPIREST APIGeneral

Request the server to enter drain mode

Initiates drain mode and optionally waits for the server to quiesce.

POST
/v1/admin:drain
timeoutSec?integer | null

Maximum seconds to wait for the server to quiesce before returning.

Default900
Formatint32
reason?string | null

Human-readable reason for initiating drain mode.

waitForQuiesce?boolean | null

If true, wait for in-flight requests to complete and the server to reach QUIESCED before responding.

Response Body

curl -X POST "https://loading/v1/admin:drain" \  -H "Content-Type: application/json" \  -d '{}'
{
  "state": "STARTING",
  "quiesced": true,
  "message": "string"
}
Empty
Empty