Skip to content

Commit

Permalink
Add unassigned primary shards to health reports (#2851)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Sep 4, 2024
1 parent c2d75d9 commit 474e637
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 6 deletions.
21 changes: 19 additions & 2 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 55 additions & 4 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions specification/cat/health/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export class HealthRecord {
* @aliases i,shards.initializing,shardsInitializing
*/
'init'?: string
/**
* number of unassigned primary shards
* @aliases up,shards.unassigned.primary,shardsUnassignedPrimary
*/
'unassign.pri'?: string
/**
* number of unassigned shards
* @aliases u,shards.unassigned,shardsUnassigned
Expand Down
2 changes: 2 additions & 0 deletions specification/cluster/health/ClusterHealthResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export class HealthResponseBody {
task_max_waiting_in_queue_millis: DurationValue<UnitMillis>
/** If false the response returned within the period of time that is specified by the timeout parameter (30s by default) */
timed_out: boolean
/** The number of primary shards that are not allocated. */
unassigned_primary_shards: integer
/** The number of shards that are not allocated. */
unassigned_shards: integer
}
2 changes: 2 additions & 0 deletions specification/cluster/health/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class IndexHealthStats {
shards?: Dictionary<string, ShardHealthStats>
status: HealthStatus
unassigned_shards: integer
unassigned_primary_shards: integer
}

export class ShardHealthStats {
Expand All @@ -40,4 +41,5 @@ export class ShardHealthStats {
relocating_shards: integer
status: HealthStatus
unassigned_shards: integer
unassigned_primary_shards: integer
}

0 comments on commit 474e637

Please sign in to comment.