-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
5 changes: 5 additions & 0 deletions
5
specification/shutdown/delete_node/ShutdownDeleteNodeResponseExample1.yaml
This file contains 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,5 @@ | ||
# summary: | ||
description: A successful response from `DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`. | ||
# type: response | ||
# response_code: '' | ||
value: "{\n \"acknowledged\": true\n}" |
This file contains 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
17 changes: 17 additions & 0 deletions
17
specification/shutdown/get_node/ShutdownGetNodeResponseExample1.yaml
This file contains 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,17 @@ | ||
# summary: | ||
description: > | ||
Get the status of shutdown preparations with `GET /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`. | ||
The response shows information about the shutdown preparations, including the status of shard migration, task migration, and plugin cleanup | ||
# type: response | ||
# response_code: '' | ||
value: | ||
"{\n \"nodes\": [\n {\n \"node_id\": \"USpTGYaBSIKbgSUJR2Z9lg\"\ | ||
,\n \"type\": \"RESTART\",\n \"reason\": \"Demonstrating how\ | ||
\ the node shutdown API works\",\n \"shutdown_startedmillis\": 1624406108685,\n\ | ||
\ \"allocation_delay\": \"10m\",\n \"status\": \"COMPLETE\"\ | ||
,\n \"shard_migration\": {\n \"status\": \"COMPLETE\"\ | ||
,\n \"shard_migrations_remaining\": 0,\n \"explanation\"\ | ||
: \"no shard relocation is necessary for a node restart\"\n },\n \ | ||
\ \"persistent_tasks\": {\n \"status\": \"COMPLETE\"\n \ | ||
\ },\n \"plugins\": {\n \"status\": \"COMPLETE\"\ | ||
\n }\n }\n ]\n}" |
This file contains 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
9 changes: 9 additions & 0 deletions
9
specification/shutdown/put_node/ShutdownPutNodeRequestExample1.yaml
This file contains 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,9 @@ | ||
# summary: | ||
# method_request: PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown | ||
description: > | ||
Register a node for shutdown with `PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`. | ||
The `restart` type prepares the node to be restarted. | ||
# type: request | ||
value: | ||
"{\n \"type\": \"restart\",\n \"reason\": \"Demonstrating how the node shutdown\ | ||
\ API works\",\n \"allocation_delay\": \"20m\"\n}" |