Skip to content

Commit 201a328

Browse files
authored
[DOCS] Remove shrink snippet from 'Size your shards' (elastic#77593)
The current shrink API snippet doesn't show you how to remove replicas or reduce primary shards. Rather than duplicate those instructions from the shrink API docs, this removes the snippet. A link to the shrink API and shrink ILM action docs is already provided. It also updates a delete index API snippet to avoid wildcards. Wildcard expansion for the delete index API is disabled by default in 8.0.
1 parent b79f71c commit 201a328

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

docs/reference/how-to/size-your-shards.asciidoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ unneeded indices.
255255

256256
[source,console]
257257
----
258-
DELETE my-index-*
258+
DELETE my-index-000001
259259
----
260260
// TEST[setup:my_index]
261261

@@ -281,12 +281,6 @@ POST my-index-000001/_forcemerge
281281
If you no longer write to an index, you can use the
282282
<<indices-shrink-index,shrink index API>> to reduce its shard count.
283283

284-
[source,console]
285-
----
286-
POST my-index-000001/_shrink/my-shrunken-index-000001
287-
----
288-
// TEST[s/^/PUT my-index-000001\n{"settings":{"index.number_of_shards":2,"blocks.write":true}}\n/]
289-
290284
{ilm-init} also has a <<ilm-shrink,shrink action>> for indices in the
291285
warm phase.
292286

0 commit comments

Comments
 (0)