-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL SHUTDOWN
Command or Endpoint?
#722
Comments
Adding my dicussion comments here too: I guess to better limit this command to the root user(s), a shutdown interface should rather be a (POST) endpoint than a (SQL) command. PS: Should a timeout be included if triggered? PPS: See also also #694 |
This comment is just to report my recent activity on the server HTTP layer, studio, and new HTTP commands to control the server. The first one will be the shutdown :-) The prototype I have is a unique POST { "command": "shutdown" } I'm going to test with automatic integration tests, and also by adding a shutdown button in Studio. Other commands will be available soon, especially to control the cluster, election, quorum, connect/disconnect, etc. As always, any idea during and after the design and development is very welcomed!!! |
I really like this approach of one With regard to the Also: could/should this endpoint replace existing endpoints ie for creating/dropping databases and users? Let me know if you need help updating the docu and console once its done. |
It's a very good idea to use a timeout in the payload! Also, converting existing create/drop databases and users would simplify the API. |
Ok, the shutdown is implemented and the studio already supports the shutdown of the current server + shutdown of a replica. No need for a timeout in a shutdown because the command shuts down the current server (and therefore the HTTP request will die if succeed) or is totally asynchronous in case of shutdown of replicas. |
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.6.0 to 4.7.0. Release notes *Sourced from [actions/setup-java's releases](https://github.com/actions/setup-java/releases).* > v4.7.0 > ------ > > What's Changed > -------------- > > * Configure Dependabot settings by [`@HarithaVattikuti`](https://github.com/HarithaVattikuti) in [actions/setup-java#722](https://github.com/actions/setup-java/pull/722) > * README Update: Added a permissions section by [`@benwells`](https://github.com/benwells) in [actions/setup-java#723](https://github.com/actions/setup-java/pull/723) > * Upgrade `cache` from version 3.2.4 to 4.0.0 by [`@aparnajyothi-y`](https://github.com/aparnajyothi-y) in [actions/setup-java#724](https://github.com/actions/setup-java/pull/724) > * Upgrade `@actions/http-client` from 2.2.1 to 2.2.3 by [`@dependabot`](https://github.com/dependabot) in [actions/setup-java#728](https://github.com/actions/setup-java/pull/728) > * Upgrade `actions/publish-immutable-action` from 0.0.3 to 0.0.4 by [`@dependabot`](https://github.com/dependabot) in [actions/setup-java#727](https://github.com/actions/setup-java/pull/727) > * Upgrade `@types/jest` from 29.5.12 to 29.5.14 by [`@dependabot`](https://github.com/dependabot) in [actions/setup-java#729](https://github.com/actions/setup-java/pull/729) > > New Contributors > ---------------- > > * [`@benwells`](https://github.com/benwells) made their first contribution in [actions/setup-java#723](https://github.com/actions/setup-java/pull/723) > > **Full Changelog**: <actions/setup-java@v4...v4.7.0> Commits * [`3a4f6e1`](actions/setup-java@3a4f6e1) Bump `@types/jest` from 29.5.12 to 29.5.14 ([#729](https://github.com/actions/setup-java/issues/729)) * [`25f376e`](actions/setup-java@25f376e) Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 ([#727](https://github.com/actions/setup-java/issues/727)) * [`d4e4b6b`](actions/setup-java@d4e4b6b) Bump `@actions/http-client` from 2.2.1 to 2.2.3 ([#728](https://github.com/actions/setup-java/issues/728)) * [`28b532b`](actions/setup-java@28b532b) Create dependabot.yml ([#722](https://github.com/actions/setup-java/issues/722)) * [`51ab6d2`](actions/setup-java@51ab6d2) Update cache from 3.2.4 to 4.0.0 ([#724](https://github.com/actions/setup-java/issues/724)) * [`99d3141`](actions/setup-java@99d3141) Update README.md ([#723](https://github.com/actions/setup-java/issues/723)) * See full diff in [compare view](actions/setup-java@7a6d8a8...3a4f6e1) [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/setup-java&package-manager=github\_actions&previous-version=4.6.0&new-version=4.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Discussed in #694
Originally posted by gramian December 20, 2022
Dear Developers,
as far as I can see there is no way to remotely shutdown the database server, apart from SSHing into the machine, correct?
If this is the case, I would like to propose either a SQL
SHUTDOWN
command or alternatively an/api/v1/shutdown
endpoint. I think it would be useful to have such a command, like for example Redis has, so one can safely shutdown a server. However, maybe such a command needs to be limited to theroot
user?Thank you for considering this proposal
PS: See also: #641
The text was updated successfully, but these errors were encountered: