-
Notifications
You must be signed in to change notification settings - Fork 852
Soft coordinator shutdown documentation #14356
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
feb99c4
Add documentation for soft coordinator shutdown.
neunhoef 67a4639
Fix a typo.
neunhoef 74e0f38
Add introduced in.
neunhoef 25c65d6
Apply suggestions from code review
Simran-B efeb2a3
Update get_api_shutdown.md
Simran-B 34f86c8
Update get_api_shutdown.md
Simran-B da37502
Update delete_api_shutdown.md
Simran-B 820ff5f
Update get_api_shutdown.md
Simran-B File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
Documentation/DocuBlocks/Rest/Administration/get_api_shutdown.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
@startDocuBlock get_api_shutdown | ||
@brief query progress of soft shutdown process | ||
|
||
@RESTHEADER{GET /_admin/shutdown, Query progress of soft shutdown process, RestGetShutdownHandler} | ||
|
||
@RESTDESCRIPTION | ||
<small>Introduced in: v3.7.12, v3.8.1, v3.9.0</small> | ||
|
||
This call reports progress about a soft Coordinator shutdown (see | ||
documentation of `DELETE /_admin/shutdown?soft=true`). | ||
In this case, the following types of operations are tracked: | ||
|
||
- AQL cursors (in particular streaming cursors) | ||
- Transactions (in particular stream transactions) | ||
- Pregel runs (conducted by this Coordinator) | ||
- Ongoing asynchronous requests (using the `x-arango-async: store` HTTP header | ||
- Finished asynchronous requests, whose result has not yet been | ||
collected | ||
- Queued low priority requests (most normal requests) | ||
- Ongoing low priority requests | ||
|
||
This API is only availa 9A13 ble on Coordinators. | ||
|
||
@RESTRETURNCODES | ||
|
||
@RESTRETURNCODE{200} | ||
The response indicates the fact that a soft shutdown is ongoing and the | ||
number of active operations of the various types. Once all numbers have gone | ||
to 0, the flag `allClear` is set and the Coordinator shuts down automatically. | ||
|
||
@RESTREPLYBODY{softShutdownOngoing,boolean,required,} | ||
Whether a soft shutdown of the Coordinator is in progress. | ||
|
||
@RESTREPLYBODY{AQLcursors,number,required,} | ||
Number of AQL cursors that are still active. | ||
|
||
@RESTREPLYBODY{transactions,number,required,} | ||
Number of ongoing transactions. | ||
|
||
@RESTREPLYBODY{pendingJobs,number,required,} | ||
Number of ongoing asynchronous requests. | ||
|
||
@RESTREPLYBODY{doneJobs,number,required,} | ||
Number of finished asynchronous requests, whose result has not yet been collected. | ||
|
||
@RESTREPLYBODY{pregelConductors,number,required,} | ||
Number of ongoing Pregel jobs. | ||
|
||
@RESTREPLYBODY{lowPrioOngoingRequests,number,required,} | ||
Number of queued low priority requests. | ||
|
||
@RESTREPLYBODY{lowPrioQueuedRequests,number,required,} | ||
Number of ongoing low priority requests. | ||
|
||
@RESTREPLYBODY{allClear,boolean,required,} | ||
Whether all active operations finished. | ||
|
||
@endDocuBlock |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.