You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(API) Cluster Health report unassigned_primary_shards (#111727) (#112024)
This PR adds a count of currently unassigned primary shards to both the
`/_cat/health` and `/_cluster/health` endpoints. This is to aid cluster
administrators in estimating the time remaining for a cluster to go from
RED to YELLOW status as per enchancement request #111727.
Tests and doc updates are in place with this PR and manual testing with
`./gradlew run` has been conducted on the endpoints to ensure correct
output.
## Known Limitations * Testing * Due to limitations in the YAML REST
test framework skip functionality, YAML REST tests for this endpoint are
disabled when running a mixed version cluster by using a cluster version
number synthetic feature to skip when any member of the cluster is not
at a version greater than when this change is due to be introduced
**Note**: The reported number of unassigned primary shards may be lower than the true value if your cluster contains nodes running a version below 8.16. For a more accurate count in this scenario, please use the <<cluster-health,cluster health API>>.
116
+
115
117
[[cat-health-api-example-across-nodes]]
116
118
===== Example across nodes
117
119
You can use the cat health API to verify the health of a cluster across nodes.
(integer) The number of shards that are not allocated.
133
133
134
+
`unassigned_primary_shards`::
135
+
(integer) The number of shards that are primary but not allocated. **Note**: This number may be lower than the true value if your cluster contains nodes running a version below 8.16. For a more accurate count in this scenario, please use the <<cluster-health,cluster health API>>.
136
+
134
137
`delayed_unassigned_shards`::
135
-
(integer) The number of shards whose allocation has been delayed by the
138
+
(integer) The number of shards whose allocation has been delayed by the
136
139
timeout settings.
137
140
138
141
`number_of_pending_tasks`::
139
-
(integer) The number of cluster-level changes that have not yet been
142
+
(integer) The number of cluster-level changes that have not yet been
140
143
executed.
141
144
142
145
`number_of_in_flight_fetch`::
143
146
(integer) The number of unfinished fetches.
144
147
145
148
`task_max_waiting_in_queue_millis`::
146
-
(integer) The time expressed in milliseconds since the earliest initiated task
149
+
(integer) The time expressed in milliseconds since the earliest initiated task
147
150
is waiting for being performed.
148
151
149
152
`active_shards_percent_as_number`::
150
-
(float) The ratio of active shards in the cluster expressed as a percentage.
153
+
(float) The ratio of active shards in the cluster expressed as a percentage.
0 commit comments