Skip to content

Commit

Permalink
[DOCS] Remove shrink snippet from 'Size your shards' (#77593) (#77698)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrodewig authored Sep 14, 2021
1 parent 3e6c6aa commit d46c190
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/reference/how-to/size-your-shards.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ unneeded indices.

[source,console]
----
DELETE my-index-*
DELETE my-index-000001
----
// TEST[setup:my_index]

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

[source,console]
----
POST my-index-000001/_shrink/my-shrunken-index-000001
----
// TEST[s/^/PUT my-index-000001\n{"settings":{"index.number_of_shards":2,"blocks.write":true}}\n/]

{ilm-init} also has a <<ilm-shrink,shrink action>> for indices in the
warm phase.

Expand Down

0 comments on commit d46c190

Please sign in to comment.