Skip to content

Commit b45fb37

Browse files
committed
[DOCS] Adds test clause to the code snippets in the cluster restart page (#49023)
1 parent 3eba6fd commit b45fb37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/setup/restart-cluster.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ prevent new jobs from opening by using the
4848
--------------------------------------------------
4949
POST _ml/set_upgrade_mode?enabled=true
5050
--------------------------------------------------
51+
// TEST
5152
+
5253
When you disable upgrade mode, the jobs resume using the last model state that
5354
was automatically saved. This option avoids the overhead of managing active jobs
@@ -88,6 +89,7 @@ GET _cat/health
8889
8990
GET _cat/nodes
9091
--------------------------------------------------
92+
// TEST[continued]
9193

9294
The `status` column returned by `_cat/health` shows the health of each node
9395
in the cluster: `red`, `yellow`, or `green`.
@@ -124,6 +126,7 @@ PUT _cluster/settings
124126
}
125127
}
126128
------------------------------------------------------
129+
// TEST[continued]
127130

128131
Once allocation is re-enabled, the cluster starts allocating replica shards to
129132
the data nodes. At this point it is safe to resume indexing and searching,
@@ -140,6 +143,7 @@ GET _cat/health
140143
141144
GET _cat/recovery
142145
--------------------------------------------------
146+
// TEST[continued]
143147
--
144148
// tag::restart_ml[]
145149
. *Restart machine learning jobs.* (Optional)
@@ -152,6 +156,7 @@ If you temporarily halted the tasks associated with your {ml} jobs, use the
152156
--------------------------------------------------
153157
POST _ml/set_upgrade_mode?enabled=false
154158
--------------------------------------------------
159+
// TEST[continued]
155160

156161
If you closed all {ml} jobs before stopping the nodes, open the jobs and start
157162
the datafeeds from {kib} or with the <<ml-open-job,open jobs>> and
@@ -197,6 +202,7 @@ by submitting a `_cat/nodes` request:
197202
--------------------------------------------------
198203
GET _cat/nodes
199204
--------------------------------------------------
205+
// TEST[continued]
200206
--
201207

202208
. *Reenable shard allocation.*
@@ -215,6 +221,7 @@ PUT _cluster/settings
215221
}
216222
}
217223
--------------------------------------------------
224+
// TEST[continued]
218225
--
219226

220227
. *Repeat in case of rolling restart.*

0 commit comments

Comments
 (0)