Commit graph

306 commits

Author SHA1 Message Date
Joe Gallo
e2761e08c3
[8.x] Add a replicate_for option to the ILM searchable_snapshot action (#119003) (#120956)
* Add a replicate_for option to the ILM searchable_snapshot action (#119003)

* Replace calls to getFirst()
2025-01-28 08:04:28 +11:00
shainaraskas
ae3db6042a
[8.x] [DOCS] Concept cleanup 2 - ES settings (#119373) (#119642) 2025-01-10 10:31:16 -05:00
Lisa Cawley
86d568ff26
[DOCS] More links to new API site (#119377) (#119417)
(cherry picked from commit ba8beecdb0)
2024-12-31 20:19:47 +00:00
Lisa Cawley
f2e457ccdb
[DOCS] Link to new API site (#119038) (#119361)
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-12-31 04:18:27 +11:00
Lee Hinman
9368fea8bc
Updated ilm docs as per the issue (#118148) (#118905)
This PR updates the Elasticsearch ILM tutorial for the newer screenshot
and the primary shard update in the text.

Co-authored-by: Satyam Mishra <satyyam.misshra1121@gmail.com>
2024-12-18 10:59:24 +11:00
Stef Nestor
c0292825c9
(Doc+) link videos for allocation and ilm (#116880) (#117097)
* (Doc+) link videos for allocation and ilm

---------

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-11-20 09:10:55 +11:00
Liam Thompson
575cd69db3
(Doc+) troubleshoot ILM videos (#114528) (#114932)
This links to our 6 newest [Support Troubleshooting](https://www.youtube.com/playlist?list=PL_mJOmq4zsHbQlfEMEh_30_LuV_hZp-3d) videos which are about resolving general ILM Health & the top five ILM rollover errors to the existing [Troubleshooting ILM errors](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-lifecycle-error-handling.html). It side quests to link the watermark error to [its troubleshooting doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/fix-watermark-errors.html).

(cherry picked from commit 9770ab7ac2)

Co-authored-by: Stef Nestor <26751266+stefnestor@users.noreply.github.com>
2024-10-17 04:37:12 +11:00
Luke Whiting
c6e3397a69
#101193 Preserve Step Info Across ILM Auto Retries (#113187) (#113786)
* Add new Previous Step Info field to LifecycleExecutionState

* Add new field to IndexLifecycleExplainResponse

* Add new field to TransportExplainLifecycleAction

* Add logic to IndexLifecycleTransition to keep previous setp info

* Switch tests to use Java standard Clock class

for any time based testing, this is the recommended method

* Fix tests for new field

Also refactor tests to newer style

* Add test to ensure step info is preserved

Across auto retries

* Add docs for new field

* Changelog Entry

* Update docs/changelog/113187.yaml

* Revert "Switch tests to use Java standard Clock class"

This reverts commit 241074c735.

* PR Changes

* PR Changes - Improve docs wording



* Integration test for new ILM explain field

* Use ROOT locale instead of default toLowerCase

* PR Changes - Switch to block strings

* Remove forbidden API usage

---------

Co-authored-by: Mary Gouseti <mgouseti@gmail.com>
2024-09-30 21:49:19 +10:00
Sam Xiao
ce0681225b
ILM: Add total_shards_per_node setting to searchable snapshot (#112972) (#113493)
Allows setting index total_shards_per_node in the SearchableSnapshot action of ILM to remediate hot spot in shard allocation for searchable snapshot index.

Closes #112261
2024-09-25 06:53:11 +10:00
Martijn van Groningen
47be9bb975
[8.x] Remove zstd feature flag for index codec best compression. (#112665) (#112857)
* Remove zstd feature flag for index codec best compression. (#112665)

ZStandard was added via #103374 a few months ago to snapshot builds of Elasticsearch only and benchmark results have shown that using zstd is a better trade off compared to deflate for when index.codec is set to best_compression.

This change removes the feature flag for ZStandard stored field compression for indices with index.codec set to best_compression.

* Update docs/changelog/112857.yaml

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-09-14 02:48:37 +10:00
Stef Nestor
c1019d4c5d
(Doc+) Link API doc to parent object - part1 (#111951)
* (Doc+) Link API to parent Doc part1

---------

Co-authored-by: shainaraskas <shaina.raskas@elastic.co>
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-08-20 14:58:18 -06:00
David Turner
664573ca38
Document manual steps in ILM delete phase (#111734)
Spells out some cases in which ILM doesn't delete the underlying
searchable snapshot and instructs users to delete them manually instead.

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-08-13 08:43:04 +01:00
shainaraskas
9759823fe8
[DOCS] Reinforce connection between rollover and index age (#108588) 2024-05-17 12:52:42 -04:00
Nick Tindall
3ecdd77e97
[DOCS] Align docs to implementation for timeout parameters (#108593)
* [DOCS] Fix documentation for timeout-related parameters

Closes #108224
2024-05-16 13:05:39 +10:00
Stef Nestor
a3f3f59399
(Doc+) Delineate Bootstrapping Data Stream from Alias (#107976)
* (Doc+) Delineate Bootstrapping Data Stream from Alias 

👋 howdy, team! 

This is follow-up to [elasticsearch#107327](https://github.com/elastic/elasticsearch/pull/107327). I realized my mistake was that we had duplicate sentences in different sections so I edited the wrong area. However, it seemed like a good opportunity to consider clarifying the page better by fixing header links so that the sub-sections reflect as sub-headers instead of all being equal. Thoughts?

* Apply suggestions from code review

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>

---------

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-05-02 11:07:07 -06:00
Liam Thompson
33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00
shainaraskas
ac5f5640e5
[DOCS] Update tutorial to discourage editing managed ILM policies (#107074) 2024-04-16 14:55:55 -04:00
Parker Timmins
3288f46fd9
Allow writes to ILM shrink action target index (#107121)
The source index of a shrink action is made read-only to perform the shrink. During shrink, settings are copied from source index to target index, causing the target index to also be read-only. This change adds a shrink policy argument making the target index writable after shrinking. The default is to keep the read-only setting to preserve current behavior.

closes #106599
2024-04-15 11:56:38 -05:00
Stef Nestor
9a2bfb9e85
(Doc+) Point ingest to Alias not Bootstrapped Index (#107327)
👋 @dakrone mentioned baby-update for docs. 

Sometimes users believe they should point client-side (e.g. Logstash's Elasticsearch output `index`) to the bootstrapped index. This highlights they point ingest towards the alias as we're expecting.
2024-04-10 13:37:49 -04:00
Lee Hinman
91bdfb84a0
Clarify data stream recommendations and best practices (#107233)
* Clarify data stream recommendations and best practices

Our documentation around data streams versus aliases could be interpreted in a way where someone doing *any* updates thinks they need to use an alias with indices instead of a data stream. This commit enhances the documentation around these areas to determine the correct abstraction in a more concrete way. It also tries to clarify that data streams still allow updates to the backing indices, and that a difference is last-write-wins versus first-write-wins.
2024-04-08 13:41:53 -06:00
Lee Hinman
d95d6adae5
Clarify update operations may be performed on a data stream's backing indices (#105408)
These statements come off a little too strongly towards "don't use data streams if you *ever* have updates", but they do support updates when necessary, as long as the backing indices are used.
2024-02-12 10:58:13 -07:00
Niels Bauman
0381954738
Add default rollover conditions to ILM explain API response (#104721)
The ILM `_explain` API displays the user-configured rollover action with the user-defined rollover conditions. However, the implicit conditions were not visible anywhere (except in the documentation and some debug-level logging).
2024-01-26 17:03:08 +01:00
Niels Bauman
8e28ca7e61
[DOCS] Add ?human query param in ILM explain API docs (#104791)
The ILM `_explain` API example responses included human-readable (time) fields, but the example URL didn't actually return those human-readable fields (only the raw fields).
2024-01-26 14:42:22 +01:00
Mary Gouseti
1617a8db36
[ILM] More resilient when a policy is added to searchable snapshot (#102741)
In this PR we enable ILM to handle the following scenarios:
- An ILM policy with the a searchable snapshot action in hot or cold is added on a partially mounted searchable snapshot.
- An ILM policy with the a searchable snapshot action in frozen is added on a fully mounted searchable snapshot.

The searchable snapshot could have had a previous ILM policy that has been removed via POST <index>/_ilm/remove or it might not have been managed at all.
2023-12-06 17:29:39 +02:00
James Rodewig
4c69746c24
[DOCS] Update tech preview copy (#101606)
Updates the copy for tech preview and experimental features in the Elasticsearch docs.

Relates to https://github.com/elastic/docs/pull/2807
2023-10-31 10:31:07 -04:00
Felix Barnsteiner
75d9bd7790
Rename component templates and pipelines according to the new naming conventions (#99975)
- Creates a new StackTemplateRegistry that uses the new names
- The new registry only respects stack.templates.enabled for index templates
- Renames the old registry to LegacyStackTemplateRegistry
- Component templates are not duplicated but registered under two different names
- Documents the new naming convention
- Index templates are not renamed, at least for now, as there are some challenges with it
  See 7fd0423 for more details.
2023-10-25 11:56:28 +02:00
Andrei Dan
c73a3b4d25
[Docs] Document a bit more the implicit rollover conditions (#100750) 2023-10-13 14:37:48 +01:00
Johannes Mahne
4aa0c698f2
Update ilm-shrink.asciidoc (#99366)
Formatting
2023-09-11 12:56:34 +02:00
Joe Gallo
a354be7b69
Fix a couple of docs typos (#99028) 2023-08-30 09:01:34 -04:00
Felix Barnsteiner
c0f10b1cd2
[DOCS] ILM force merge action doesn't make index read-only (#98382) 2023-08-11 08:38:55 -04:00
James Rodewig
c1eb581da8
[DOCS] Force merge doesn't mark index as read-only (#98357) (#98366)
(cherry picked from commit d4c6208727)

Co-authored-by: Gilad Gal <gilad.gal@elastic.co>
2023-08-10 18:28:52 -04:00
Stef Nestor
93d36db454
[DOC+] ILM min_age interpretation (#98245)
* [DOC+] ILM min_age interpretation

👋 hiya, team!

From the time y'all helped me write this [ILM Troubleshooting blog](https://www.elastic.co/blog/troubleshooting-elasticsearch-ilm-common-issues-and-fixes) in 2021 and we later ported errors to [this doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-lifecycle-error-handling.html) via https://github.com/elastic/elasticsearch/issues/75849, the remaining top-gotcha user's raise is "Common issue 3" that ILM's `min_age` calculates off rollover time fallback index creation time.

This PR cross-pollinates the blog quote into the docs so that Support can link it to users and so it becomes Google-able.

> Common issue 3: min_age calculation clarification
> When working with customers, I have seen confusion about how min_age works. The min_age must increase between subsequent phases. If rollover is used, min_age is calculated off the rollover date. This is because rollover generates a new index and the new index’s creation date is used in the calculation. Otherwise, min_age is calculated off the original index’s creation date.

* Apply suggestions from code review

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-08-09 16:41:49 +02:00
Mary Gouseti
45e056ba04
Ignore total_shards_per_node setting on searchable snapshots in frozen (#97979)
When ILM is mounting a searchable snapshot in the frozen tier, we chose to ignore the `total_shards_per_node` setting because it's very likely to block shards from being assigned. Usually the `total_shards_per_node` is configured for one of the previous tiers that have usually more nodes than the frozen tier.
2023-07-27 13:06:14 +03:00
Martijn van Groningen
d5ddc868f6
Document ILM's implicit rollover. (#97685)
This was introduced via #94065
Relates to #87246
2023-07-14 17:29:59 +02:00
Abdon Pijpelink
d94461a6ea
[DOCS] Add note about Kibana warning in ILM tutorial (#97346) 2023-07-05 10:13:40 +02:00
Mary Gouseti
1abd51b167
Start with data stream lifecycle documentation (#95326) 2023-06-28 16:18:05 +03:00
debadair
777598d602
[DOCS] Remove redirect pages (#88738)
* [DOCS] Remove manual redirects

* [DOCS] Removed refs to modules-discovery-hosts-providers

* [DOCS] Fixed broken internal refs

* Fixing bad cross links in ES book, and adding redirects.asciidoc[] back into docs/reference/index.asciidoc.

* Update docs/reference/search/point-in-time-api.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/setup/restart-cluster.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/sql/endpoints/translate.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update docs/reference/snapshot-restore/restore-snapshot.asciidoc

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Update repository-azure.asciidoc

* Update node-tool.asciidoc

* Update repository-azure.asciidoc

---------

Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Amy Jonsson <amy.jonsson@elastic.co>
Co-authored-by: James Rodewig <james.rodewig@elastic.co>
2023-05-24 12:32:46 +01:00
Andrei Dan
f8b367d2bc
[ILM] Fix the migrate to tiers service and migrate action tiers configuration (#95934)
The migrate action (although no allowed in the frozen phase) would seem
to convert `frozen` to `data_frozen,data_cold,data_warm,data_hot` tier
configuration. As the migrate action is not allowed in the frozen phase
this would never happen, however the code is confusing as it seems like
it could.

The migrate to data tiers routing service shared the code used by the
`migrate` action that converted `frozen` to
`data_frozen,data_cold,data_warm,data_hot` if it would encounter an
index without any `_tier_preference` setting  but with a custom node
attribute configured to `frozen` e.g. `include.data: frozen`

As part of https://github.com/elastic/elasticsearch/issues/84758 we have
seen frozen indices with the `data_frozen,data_cold,data_warm,data_hot`
tier preference however we could never reproduce it.

Relates to https://github.com/elastic/elasticsearch/issues/84758
2023-05-09 13:18:01 -04:00
Pablo Alcantar Morales
132290f8a3
fix flaky docs tests get-lifecycle (#95529)
The `data-streams/downsampling.asciidoc` test was missing a teardown clean of the ILM policies created. Due to this tests *do not have* the string `ilm` in its name, the automatic teardown process that cleans up the resources (check `ESRestTestCase.java#L815` & `DocsClientYamlTestSuiteIT.java` lines 177 & 195) is not executed for this specific test. In the case this test runs right before the `get-lifecycle` test, the policy won't be automatically deleted hence the test checking the version will fail. Finally, the order of execution of the test is not guaranteed by the suite.
2023-04-26 12:10:49 +02:00
Stef Nestor
dd968f5433
Update ilm-searchable-snapshot.asciidoc (#95255)
👋🏼 howdy, team! Can we explicate that ILM Searchable Snapshot retention ([doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/ilm-searchable-snapshot.html)) is not effected by SLM policies? TIA!

---------

Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
2023-04-20 07:03:31 -06:00
Salvatore Campagna
f315e8708e
Mute get-lifecycle docs yaml test (#95131) 2023-04-11 12:31:14 +02:00
Mary Gouseti
ed04559c98
Unmute get-lifecycle.asciidoc test (#95087) 2023-04-10 09:05:22 +02:00
Andrei Dan
f193392bed
[DOCS] List the downsample ILM action in the correct order of execution (#93233) 2023-01-30 16:00:36 +00:00
Abdon Pijpelink
e5d0a724ac
[DOCS] ILM Move Step example only phase (#93161)
* [+DOC] ILM Move Step example only phase

Updates [doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/ilm-move-to-step.html?edit) to append example similar to https://github.com/elastic/elasticsearch/pull/75435 (≥v7.15.0) to show users working example of only using `next_step.phase`.

* Move example to the end of the page

* Fix failing code snippet tests

* Skip test

Co-authored-by: Stef Nestor <steffanie.nestor@gmail.com>
2023-01-23 16:41:24 +01:00
Abdon Pijpelink
e6c9ecb282
Revert "[+DOC] ILM Move Step example only phase (#90329)" (#93154)
This reverts commit a536143e26.
2023-01-23 14:35:59 +01:00
Stef Nestor
a536143e26
[+DOC] ILM Move Step example only phase (#90329)
* [+DOC] ILM Move Step example only phase

Updates [doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/ilm-move-to-step.html?edit) to append example similar to https://github.com/elastic/elasticsearch/pull/75435 (≥v7.15.0) to show users working example of only using `next_step.phase`.

* Move example to the end of the page

* Fix failing code snippet tests

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-01-23 13:54:38 +01:00
Stef Nestor
ae5f28e3e4
[+DOC] Restore policies in restoring ILM indices (#90119)
* [+DOC] Restore policies in restoring ILM indices

👋 howdy! This may need Asciidoc reformatting. Will you kindly add in express commentary on [Restore a managed Datastream or Index](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-lifecycle-and-snapshots.html?edit) to also restore ILM policies as needed (via `include_global_state`). Otherwise, you induce ILM errors once ILM starts (and have to do a form of repeating the entire outlined procedure to get indices going through correctly.)

* Apply suggestions from code review

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-01-23 10:46:19 +01:00
David Kilfoyle
3f880613f8
[Docs] Remove tech preview notice from downsampling docs (#92913) 2023-01-19 09:05:59 -05:00
Ryan Eno
6d7237e67b
Update ilm-index-lifecycle.asciidoc (#91782)
Adds a missing list item `-` indicator for the cold phase. Was causing `migrate` and `downsample` to be rendered on the same line.
2022-12-07 09:23:04 +01:00
charliek17
4192c5b327
Update move-to-step.asciidoc (#91114) 2022-11-03 08:55:24 +00:00