Closed danielcrisap closed 6 months ago
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
+1 for this feature.
Would be a nice feature to have on the coordinator as well. I can branch this PR and create another one since I'm unsure when the CLA will be signed.
@cla-bot check
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
The cla-bot has been summoned, and re-checked this pull request!
Sorry for the delay,
I've sent the email with the CLA signed; I will wait a few days to recheck.
@danielcrisap Any chance you could also add these to the coordinator?
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
@danielcrisap Any chance you could also add these to the coordinator?
I included the coordinator; I just removed the example because, in the Trino doc, this API is only for Worker nodes.
Trino has a graceful shutdown API that can be used exclusively on workers in order to ensure that they terminate without affecting running queries, given a sufficient grace period.
Well.. there is a graceful shutdown for coordinator in the works...
@danielcrisap Any chance you could also add these to the coordinator?
I included the coordinator; I just removed the example because, in the Trino doc, this API is only for Worker nodes.
Trino has a graceful shutdown API that can be used exclusively on workers in order to ensure that they terminate without affecting running queries, given a sufficient grace period.
Awesome, thank you! Yeah, mostly looking for the lifecycle
option as it provides flexibility for some custom operations to be executed. Appreciate you including it!
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla
@cla-bot check
The cla-bot has been summoned, and re-checked this pull request!
I'm interested in this feature, Can this be merged? Happy to support any additional changes here.
@tbaeg and @mosabua , Do you think we can include this feature in the next release?
No issues from me but I also have no decision making authority. :)
@radek-starburst @losipiuk @nineinchnick .. any chance you could look at this?
It looks ready to be merged.
Please squash all commits, see https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#git-merge-strategy for more info.
I don't have merge permission, so I can't set to use the squad strategy for merging into main.
You can squash commits locally and force-push to this branch.
You can squash commits locally and force-push to this branch.
Squashed into a single commit ✅
Those features are intended to achieve the Graceful shutdown from Trino Worker nodes. https://trino.io/docs/current/admin/graceful-shutdown.html#admin-graceful-shutdown
With
lifecycle hooks
, when the pods receive a SIGTERM will request the API to start theSHUTTING_DOWN
state and theterminationGracePeriodSeconds
is for K8s waiting for this process to be concluded.