forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.reroute.yaml
132 lines (132 loc) · 3.41 KB
/
cluster.reroute.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
openapi: 3.1.0
info:
title: Schemas of cluster.reroute category
description: Schemas of cluster.reroute category
version: 1.0.0
paths: {}
components:
schemas:
Command:
type: object
properties:
cancel:
$ref: '#/components/schemas/CommandCancelAction'
move:
$ref: '#/components/schemas/CommandMoveAction'
allocate_replica:
$ref: '#/components/schemas/CommandAllocateReplicaAction'
allocate_stale_primary:
$ref: '#/components/schemas/CommandAllocatePrimaryAction'
allocate_empty_primary:
$ref: '#/components/schemas/CommandAllocatePrimaryAction'
CommandCancelAction:
type: object
properties:
index:
$ref: '_common.yaml#/components/schemas/IndexName'
shard:
type: number
node:
type: string
allow_primary:
type: boolean
required:
- index
- shard
- node
CommandMoveAction:
type: object
properties:
index:
$ref: '_common.yaml#/components/schemas/IndexName'
shard:
type: number
from_node:
description: The node to move the shard from
type: string
to_node:
description: The node to move the shard to
type: string
required:
- index
- shard
- from_node
- to_node
CommandAllocateReplicaAction:
type: object
properties:
index:
$ref: '_common.yaml#/components/schemas/IndexName'
shard:
type: number
node:
type: string
required:
- index
- shard
- node
CommandAllocatePrimaryAction:
type: object
properties:
index:
$ref: '_common.yaml#/components/schemas/IndexName'
shard:
type: number
node:
type: string
accept_data_loss:
description: If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true
type: boolean
required:
- index
- shard
- node
- accept_data_loss
RerouteExplanation:
type: object
properties:
command:
type: string
decisions:
type: array
items:
$ref: '#/components/schemas/RerouteDecision'
parameters:
$ref: '#/components/schemas/RerouteParameters'
required:
- command
- decisions
- parameters
RerouteDecision:
type: object
properties:
decider:
type: string
decision:
type: string
explanation:
type: string
required:
- decider
- decision
- explanation
RerouteParameters:
type: object
properties:
allow_primary:
type: boolean
index:
$ref: '_common.yaml#/components/schemas/IndexName'
node:
$ref: '_common.yaml#/components/schemas/NodeName'
shard:
type: number
from_node:
$ref: '_common.yaml#/components/schemas/NodeName'
to_node:
$ref: '_common.yaml#/components/schemas/NodeName'
required:
- allow_primary
- index
- node
- shard