Skip to content
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

Closed

Conversation

lukas-vlcek
Copy link
Contributor

@lukas-vlcek lukas-vlcek commented May 4, 2022

Description

Document missing wait_for_nodes param in Cluster health Reference REST 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

Issues Resolved

Closes: #552

Check List

  • Commits are signed per the DCO using --signoff

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.

…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>
@lukas-vlcek lukas-vlcek requested a review from a team as a code owner May 4, 2022 14:24
@alicejw1 alicejw1 self-assigned this May 4, 2022
@@ -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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line.

_opensearch/rest-api/cluster-health.md Show resolved Hide resolved

If you use the security plugin, make sure you have the appropriate permissions:
`cluster:monitor/health`
{: .note }
Copy link
Collaborator

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`.
Copy link
Collaborator

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?"

@Naarcha-AWS Naarcha-AWS assigned Naarcha-AWS and unassigned alicejw1 May 23, 2022
@Naarcha-AWS Naarcha-AWS added the 3 - Tech review PR: Tech review in progress label May 23, 2022
@Naarcha-AWS
Copy link
Collaborator

I went ahead and took over this PR. See #599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Tech review PR: Tech review in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cluster health Reference REST API is missing wait_for_nodes param
3 participants