-
Notifications
You must be signed in to change notification settings - Fork 62
/
cluster.allocation_explain.yaml
239 lines (239 loc) · 6.15 KB
/
cluster.allocation_explain.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
openapi: 3.1.0
info:
title: Schemas of `cluster.allocation_explain` Category
description: Schemas of `cluster.allocation_explain` category.
version: 1.0.0
paths: {}
components:
schemas:
Decision:
type: string
enum:
- allocation_delayed
- awaiting_info
- no
- no_attempt
- no_valid_shard_copy
- throttled
- worse_balance
- yes
AllocationDecision:
type: object
properties:
decider:
type: string
decision:
$ref: '#/components/schemas/AllocationExplainDecision'
explanation:
type: string
required:
- decider
- decision
- explanation
AllocationExplainDecision:
type: string
enum:
- ALWAYS
- NO
- THROTTLE
- YES
ClusterInfo:
type: object
properties:
nodes:
type: object
additionalProperties:
$ref: '#/components/schemas/NodeDiskUsage'
shard_sizes:
type: object
additionalProperties:
oneOf:
- $ref: '_common.yaml#/components/schemas/ByteCount'
- $ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
shard_data_set_sizes:
type: object
additionalProperties:
type: string
shard_paths:
type: object
additionalProperties:
type: string
reserved_sizes:
type: array
items:
$ref: '#/components/schemas/ReservedSize'
required:
- nodes
- reserved_sizes
- shard_paths
- shard_sizes
NodeDiskUsage:
type: object
properties:
node_name:
$ref: '_common.yaml#/components/schemas/Name'
least_available:
$ref: '#/components/schemas/DiskUsage'
most_available:
$ref: '#/components/schemas/DiskUsage'
required:
- least_available
- most_available
- node_name
DiskUsage:
type: object
properties:
path:
type: string
total:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
total_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
used:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
used_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
free:
$ref: '_common.yaml#/components/schemas/HumanReadableByteCount'
free_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
free_disk_percent:
$ref: '_common.yaml#/components/schemas/PercentageNumber'
used_disk_percent:
$ref: '_common.yaml#/components/schemas/PercentageNumber'
required:
- free_bytes
- free_disk_percent
- path
- total_bytes
- used_bytes
- used_disk_percent
ReservedSize:
type: object
properties:
node_id:
$ref: '_common.yaml#/components/schemas/Id'
path:
type: string
total:
type: number
shards:
type: array
items:
type: string
required:
- node_id
- path
- shards
- total
CurrentNode:
type: object
properties:
id:
$ref: '_common.yaml#/components/schemas/Id'
name:
$ref: '_common.yaml#/components/schemas/Name'
attributes:
type: object
additionalProperties:
type: string
transport_address:
$ref: '_common.yaml#/components/schemas/TransportAddress'
weight_ranking:
type: number
required:
- attributes
- id
- name
- transport_address
- weight_ranking
NodeAllocationExplanation:
type: object
properties:
deciders:
type: array
items:
$ref: '#/components/schemas/AllocationDecision'
node_attributes:
type: object
additionalProperties:
type: string
node_decision:
$ref: '#/components/schemas/Decision'
node_id:
$ref: '_common.yaml#/components/schemas/Id'
node_name:
$ref: '_common.yaml#/components/schemas/Name'
store:
$ref: '#/components/schemas/AllocationStore'
transport_address:
$ref: '_common.yaml#/components/schemas/TransportAddress'
weight_ranking:
type: number
required:
- deciders
- node_attributes
- node_decision
- node_id
- node_name
- transport_address
AllocationStore:
type: object
properties:
allocation_id:
type: string
found:
type: boolean
in_sync:
type: boolean
matching_size_in_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
matching_sync_id:
type: boolean
store_exception:
type: string
required:
- allocation_id
- found
- in_sync
- matching_size_in_bytes
- matching_sync_id
- store_exception
UnassignedInformation:
type: object
properties:
at:
$ref: '_common.yaml#/components/schemas/DateTime'
last_allocation_status:
type: string
reason:
$ref: '#/components/schemas/UnassignedInformationReason'
details:
type: string
failed_allocation_attempts:
type: number
delayed:
type: boolean
allocation_status:
type: string
required:
- at
- reason
UnassignedInformationReason:
type: string
enum:
- ALLOCATION_FAILED
- CLUSTER_RECOVERED
- DANGLING_INDEX_IMPORTED
- EXISTING_INDEX_RESTORED
- FORCED_EMPTY_PRIMARY
- INDEX_CREATED
- INDEX_REOPENED
- MANUAL_ALLOCATION
- NEW_INDEX_RESTORED
- NODE_LEFT
- PRIMARY_FAILED
- REALLOCATED_REPLICA
- REINITIALIZED
- REPLICA_ADDED
- REROUTE_CANCELLED