-
Notifications
You must be signed in to change notification settings - Fork 500
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
Add missing wait_for_nodes param in Cluster health Reference REST API #553
Add missing wait_for_nodes param in Cluster health Reference REST API #553
Conversation
…T API Additional improvements: - The master_timeout is marked as deprecated and cluster_manager_timeout is suggested instead - A required permissions is also documented - The JSON example response is completed Closes: opensearch-project#552 Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
@@ -38,14 +38,20 @@ Parameter | Type | Description | |||
:--- | :--- | :--- | |||
expand_wildcards | Enum | Expands wildcard expressions to concrete indexes. Combine multiple values with commas. Supported values are `all`, `open`, `closed`, `hidden`, and `none`. Default is `open`. | |||
level | Enum | The level of detail for returned health information. Supported values are `cluster`, `indices`, and `shards`. Default is `cluster`. | |||
<<<<<<< improve_cluster_health |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove lines 41 - 44 in favor of the latest 2.0.0 change.
local | Boolean | Whether to return information from the local node only instead of from the cluster manager node. Default is false. | ||
cluster_manager_timeout | Time | The amount of time to wait for a connection to the cluster manager node. Default is 30 seconds. | ||
>>>>>>> main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line.
|
||
If you use the security plugin, make sure you have the appropriate permissions: | ||
`cluster:monitor/health` | ||
{: .note } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the note
here.
wait_for_events | Enum | Wait until all currently queued events with the given priority are processed. Supported values are `immediate`, `urgent`, `high`, `normal`, `low`, and `languid`. | ||
wait_for_no_relocating_shards | Boolean | Whether to wait until there are no relocating shards in the cluster. Default is false. | ||
wait_for_no_initializing_shards | Boolean | Whether to wait until there are no initializing shards in the cluster. Default is false. | ||
wait_for_status | Enum | Wait until the cluster is in a specific state or better. Supported values are `green`, `yellow`, and `red`. | ||
wait_for_status | Enum | Wait until the cluster health reaches specific status or better. Supported values are `green`, `yellow`, and `red`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do like the word status
better here. However, instead of "specific", should we try something like, "Wait until the cluster health reaches the specified statues or better?"
I went ahead and took over this PR. See #599 |
Description
Document missing wait_for_nodes param in Cluster health Reference REST API
Additional improvements:
Issues Resolved
Closes: #552
Check List
Signed-off-by: Lukáš Vlček lukas.vlcek@aiven.io
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.