-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathreplication._common.yaml
230 lines (230 loc) · 6.41 KB
/
replication._common.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
openapi: 3.1.0
info:
title: Schemas of `replication._common` Category.
description: Schemas of `replication._common` category..
version: 1.0.0
paths: {}
components:
schemas:
Replication:
type: object
properties:
leader_alias:
$ref: '_common.yaml#/components/schemas/IndexAlias'
leader_index:
$ref: '_common.yaml#/components/schemas/IndexName'
use_roles:
$ref: '#/components/schemas/UseRoles'
UseRoles:
type: object
properties:
leader_cluster_role:
type: string
follower_cluster_role:
type: string
Status:
type: object
properties:
status:
type: string
enum:
- BOOTSTRAPPING
- PAUSED
- REPLICATION NOT IN PROGRESS
- RUNNING
- SYNCING
reason:
type: string
leader_alias:
$ref: '_common.yaml#/components/schemas/IndexAlias'
leader_index:
$ref: '_common.yaml#/components/schemas/IndexName'
follower_index:
$ref: '_common.yaml#/components/schemas/IndexName'
syncing_details:
$ref: '#/components/schemas/SyncingDetails'
SyncingDetails:
type: object
properties:
leader_checkpoint:
type: integer
follower_checkpoint:
type: integer
seq_no:
$ref: '_common.yaml#/components/schemas/SequenceNumber'
LeaderStatus:
type: object
properties:
num_replicated_indices:
type: number
operations_read:
type: number
translog_size_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
operations_read_lucene:
type: number
operations_read_translog:
type: number
total_read_time_lucene_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
total_read_time_translog_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
bytes_read:
$ref: '_common.yaml#/components/schemas/ByteCount'
index_stats:
type: object
additionalProperties:
$ref: '#/components/schemas/IndexStatus'
IndexStatus:
type: object
properties:
operations_read:
type: number
translog_size_bytes:
$ref: '_common.yaml#/components/schemas/ByteCount'
operations_read_lucene:
type: number
operations_read_translog:
type: number
total_read_time_lucene_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
total_read_time_translog_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
bytes_read:
$ref: '_common.yaml#/components/schemas/ByteCount'
FollowerStatus:
type: object
properties:
num_syncing_indices:
type: number
num_bootstrapping_indices:
type: number
num_paused_indices:
type: number
num_failed_indices:
type: number
num_shard_tasks:
type: number
num_index_tasks:
type: number
operations_written:
type: number
operations_read:
type: number
failed_read_requests:
type: number
throttled_read_requests:
type: number
failed_write_requests:
type: number
throttled_write_requests:
type: number
follower_checkpoint:
type: number
leader_checkpoint:
type: number
total_write_time_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
index_stats:
type: object
additionalProperties:
$ref: '#/components/schemas/IndexFollowerStatus'
IndexFollowerStatus:
type: object
properties:
operations_written:
type: number
operations_read:
type: number
failed_read_requests:
type: number
throttled_read_requests:
type: number
failed_write_requests:
type: number
throttled_write_requests:
type: number
follower_checkpoint:
type: number
leader_checkpoint:
type: number
total_write_time_millis:
$ref: '_common.yaml#/components/schemas/StringifiedEpochTimeUnitMillis'
AutoFollowStatus:
type: object
properties:
num_success_start_replication:
type: number
num_failed_start_replication:
type: number
num_failed_leader_calls:
type: number
failed_indices:
type: array
items:
type: string
autofollow_stats:
type: array
items:
$ref: '#/components/schemas/AutoFollowStats'
AutoFollowStats:
type: object
properties:
name:
type: string
pattern:
type: string
num_success_start_replication:
type: number
num_failed_start_replication:
type: number
num_failed_leader_calls:
type: number
failed_indices:
type: array
items:
type: string
last_execution_time:
type: number
SettingsBody:
type: object
properties:
index:
$ref: '#/components/schemas/IndexSchema'
UpdateSettings:
type: object
properties:
settings:
allOf:
- type: object
properties:
index.number_of_shards:
type: integer
index.number_of_replicas:
type: integer
- $ref: '#/components/schemas/SettingsBody'
IndexSchema:
type: object
properties:
number_of_shards:
type: integer
number_of_replicas:
type: integer
CreateReplicationRule:
type: object
properties:
leader_alias:
$ref: '_common.yaml#/components/schemas/IndexAlias'
name:
type: string
pattern:
type: string
use_roles:
$ref: '#/components/schemas/UseRoles'
DeleteReplicationRule:
type: object
properties:
leader_alias:
$ref: '_common.yaml#/components/schemas/IndexAlias'
name:
type: string