You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,18 @@ To delete a global property, specify the corresponding name (type String).
276
276
curl -X POST http://localhost:8080/presto/globalproperty/delete/{INSERT_NAME_HERE}
277
277
```
278
278
279
+
## Graceful shutdown
280
+
Presto gateway supports graceful shutdown of Presto clusters. Even when a cluster is deactivated, any submitted query states can still be retrieved based on the Query ID.
281
+
282
+
To graceful shutdown a Presto cluster without query losses, the steps are:
283
+
1. Set the backend to deactivate state, this prevents any new incoming queries from getting assigned to the backend.
284
+
2. Poll the Presto backend coorinator URL until the queued query count and the running query count both hit 0.
285
+
3. Terminate the Presto Coordinator & Worker Java process.
286
+
287
+
288
+
To gracefully shutdown a single worker process, see [this](https://trino.io/docs/current/admin/graceful-shutdown.html) for the operations.
289
+
290
+
279
291
## Contributing
280
292
281
293
Want to help build Presto Gateway? Check out our [contributing documentation](CONTRIBUTING.md)
0 commit comments