Commit graph

224 commits

Author SHA1 Message Date
Stef Nestor
72c44595f4
(Doc+) link videos for allocation and ilm (#116880)
* (Doc+) link videos for allocation and ilm

---------

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-11-19 14:43:50 -07:00
Liam Thompson
a193fc34a3
[Docs] Link to ECK Azure snapshot docs (#111586) 2024-11-14 18:39:38 +01:00
Nick Tindall
7599d4cf43
Use Azure blob batch API to delete blobs in batches (#114566)
Closes ES-9777
2024-10-24 19:51:52 +11:00
David Turner
f718c564fb
Reword docs on snapshot repo backup (#115062)
Because of #93575 it's not sufficient to mark repositories with
`readonly: true` while taking a backup. The only safe way to avoid
writes is to completely unregister them.
2024-10-18 07:51:40 +01:00
Pooya Salehi
ae452becc7
Document _cat/indices behavior when encountering source only indices (#114884)
Closes https://github.com/elastic/elasticsearch/issues/114546
2024-10-16 20:08:17 +11:00
David Turner
9082e02d75
Retry S3BlobContainer#getRegister on all exceptions (#114813)
S3 register reads are subject to the regular client retry policy, but in
practice we see failures of these reads sometimes for errors that are
transient but for which the SDK does not retry. This commit adds another
layer of retries to these reads.

Relates ES-9721
2024-10-16 09:08:50 +02:00
Nick Tindall
16864e985b
Retry throttled snapshot deletions (#113237)
Closes ES-8562
2024-10-16 09:08:49 +11:00
Luke Whiting
37f03dc40d
#111893 Add Warnings For Missing Index Templates (#114589)
* Add data stream template validation

to snapshot restore

* Add data stream template validation

to data stream promotion endpoint

* Add new assertion for response headers

Add a new assertion to synchronously execute a request and check the
response contains a specific warning header

* Test for warning header on snapshot restore

When missing templates

* Test for promotion warnings

* Add documentation for the potential error states

* PR changes

* Spotless reformatting

* Add logic to look in snapshot global metadata

This checks if the snapshot contains a matching template for the DS

* Comment on test cleanup to explain it was copied

* Removed cluster service field
2024-10-15 15:00:53 +01:00
David Turner
95ea135106
Clarify integer settings for repository-s3 repos (#114093)
Today there are a handful of integer settings for `repository-s3`
repositories whose docs link to the page about numeric field types. Yet
these settings are not fields, and do not support floating-point values
either. The convention throughout the rest of the docs is to just call
these things `integer` without linking to anything. This commit aligns
the `repository-s3` docs with this convention.
2024-10-04 17:21:59 +01:00
Mikhail Berezovskiy
fc1bee290a
Add max_multipart_parts setting to S3 repository (#113989) 2024-10-03 21:49:51 -07:00
Carson Ip
4932697142
[docs] Fix typo in repository-s3.asciidoc (#113678)
Same as #113572 but targeting `8.x` and `main`.
2024-09-27 20:36:22 +10:00
Salvatore Campagna
f7880ae85f
LogsDB data migration integration testing (#112710)
Here we test reindexing logsdb indices, creating and restoring
snapshots. Note that logsdb uses synthetic source and restoring
source only snapshots fails due to missing _source.
2024-09-17 16:26:48 +02:00
David Turner
f79fb8c25b
Introduce repository integrity verification API (#112348)
Adds an API which scans all the metadata (and optionally the raw data)
in a snapshot repository to look for corruptions or other
inconsistencies.

Closes https://github.com/elastic/elasticsearch/issues/52622 Closes
ES-8560
2024-09-11 23:17:59 +10:00
David Turner
e6b830e3b3
Clean up dangling S3 multipart uploads (#111955)
If Elasticsearch fails part-way through a multipart upload to S3 it will
generally try and abort the upload, but it's possible that the abort
attempt also fails. In this case the upload becomes _dangling_. Dangling
uploads consume storage space, and therefore cost money, until they are
eventually aborted.

Earlier versions of Elasticsearch require users to check for dangling
multipart uploads, and to manually abort any that they find. This commit
introduces a cleanup process which aborts all dangling uploads on each
snapshot delete instead.

Closes #44971 Closes #101169
2024-08-20 02:49:48 +10:00
David Turner
6cf61a0355
Weaken docs around Azure Identity mechanisms (#111622)
Let's not mention `DefaultAzureCredentialProvider` so that we can
consider it an implementation detail and avoid committing to any
unwanted BwC guarantees.

Relates #111577
Relates #111344
2024-08-06 11:28:02 +01:00
David Turner
4e77288abe
Rework Azure repo docs for new auth mechanisms (#111577)
Adds information about using Azure Managed Identity and Azure Workload
Identity to the relevant docs, and also reworks the docs a bit for
easier reading.

Relates #111344
2024-08-05 20:09:03 +10:00
Pooya Salehi
779f09ea87
Update get snapshot status API doc (#111240)
Make it clear that this API should be used only if the detailed shard
info is needed and only on ongoing snapshots. Remove incorrectly
mentioned `STATE` value.
2024-07-26 02:21:36 +10:00
Nick Tindall
8edb3b07e7
Make repository analysis API available to non-operators (#110179)
Closes #100381
2024-06-28 09:07:20 +10:00
Nick Tindall
cd8b1f9dc9
Add wait_for_completion parameter to delete snapshot request (#109462)
Closes #101300
2024-06-15 12:27:35 +10:00
Jean-Fabrice Bobo
a9bc30d66e
FIx misleading repository-s3 type (#109347)
in 8.x, `repository-s3` type has been replaced by `s3` type. Fixing
remaining reference to `repository-s3` in the documentation.
2024-06-11 01:51:55 +10: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
shainaraskas
b84bd458b6
[DOCS] clarify that the repo location setting accepts only one value (#108267) 2024-05-06 09:18:17 -04:00
Yang Wang
bcf4297e89
Ensure necessary security context for s3 bulk deletions (#108280)
This PR moves the doPrivileged wrapper closer to the actual deletion
request to ensure the necesary security context is established at all
times. Also added a new repository setting to configure max size for s3
deleteObjects request.

Fixes: #108049
2024-05-06 06:02:09 -04:00
Rafi Estrada
295fba33d8
Add note about license to "Restore an Entire Cluster" docs (#87485)
One user reached out mentioning that it would be a good idea to remind
users to re-upload the license after full cluster recovery from snapshot
as one can easily miss this when trying to figure out why some features
aren't working after the restore.
2024-05-03 19:23:51 -04: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
David Turner
2f9e753463
Add setting for max connections to S3 (#107533)
The S3 SDK permits changing the maximum number of concurrent connections
that it will open, but today there's no way to adjust this setting
within Elasticsearch. This commit adds a setting for this parameter.
2024-04-17 06:49:02 -04:00
shainaraskas
648c9cb05c
[DOCS] Add azure storage secure settings while the node is running (#107163) 2024-04-11 13:00:31 -04:00
David Turner
ccbb5badce
Fix support for infinite ?master_timeout (#107050)
Specifying `?master_timeout=-1` on an API which performs a cluster state
update means that the cluster state update task will never time out
while waiting in the pending tasks queue. However this parameter is also
re-used in a few places where a timeout of `-1` means something else,
typically to timeout immediately. This commit fixes those places so that
`?master_timeout=-1` consistently means to wait forever.
2024-04-10 18:32:38 +01:00
David Turner
ceeee1bf56
Recommend NFS over S3-like repositories (#107297)
Allegedly-S3-compatible APIs are very popular these days, but many
third-party systems offering such an API also support a shared
filesystem interface. Shared filesystem protocols such as NFS are much
better specified than the S3 API, and experience shows that they lead to
fewer compatibility headaches. This commit adds a recommendation to the
`repository-s3` docs to consider such an interface instead.
2024-04-10 11:39:38 +01:00
Moritz Mack
6b50b6ddf9
Block updates to log level for restricted loggers if less specific than INFO (#105020)
To prevent leaking sensitive information such as credentials and keys in logs, this 
commit prevents configuring some restricted loggers (currently `org.apache.http` 
and `com.amazonaws.request`) at high verbosity unless the NetworkTraceFlag 
(`es.insecure_network_trace_enabled`) is enabled.
2024-02-21 17:45:51 +01:00
David Turner
30f963960e
Improve S3 storage class docs (#104599)
Moves some of the detail about S3 storage classes to their own section
for easier linking, and adds a note about `intelligent_tiering` archive
classes.
2024-01-24 12:52:54 -05:00
Fabien Baligand
4c87a7f135
docs: fix numbering in restore-snapshot.asciidoc (#103769)
* docs: fix numbering in restore-snapshot.asciidoc

Fix numbering in "Restore an entire cluster" section.
Remove "3." for "Universal Profiling" and add "3." just before "If you use Elasticsearch security features"

* Keep ID, fix list rendering

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2024-01-03 12:01:44 +01:00
Tim Vernum
394444cd27
[Docs] Custom S3 CA must be reinstalled on upgrade (#103168)
This commit updates the docs to call out that custom certificate
authorities for S3 repositories will need to be reinstalled every time
ES is upgraded, is the node is using the bundled JDK
2023-12-11 00:01:29 -05:00
Iraklis Psaroudakis
ed2f02c963
Reference stored scripts in snapshot restore (#102966)
Closes #102903
2023-12-06 12:59:42 +02:00
Sanjay J
51eef046a0
Add support for configuring proxy scheme in S3 client settings and EC2 discovery plugin (#102495)
Closes #101873
2023-11-24 10:33:21 +02:00
David Turner
e063d1ddc8
Fix nesting of linearizable register docs (#102218)
Removes the `[discrete]` line from the docs introduced in #102050 so
that these subsections are nested at the right level.
2023-11-15 09:07:20 -05:00
David Turner
053c6638cb
Reorganise repository-s3 docs page (#102058)
These docs have various subsections under the _Client settings_ and
_Repository settings_ sections which are nothing to do with those
settings. The reasons for this are historical and no longer relevant.
This commit moves these subsections together and up a level so that they
better reflect the structure of the information.
2023-11-15 05:02:15 -05:00
David Turner
20a1503001
Add docs about linearizable registers in repositories (#102050)
We don't mention linearizable registers in the snapshot/restore docs
today, but these things are verified for correctness by the repository
analysis API and some users with incorrect repository implementations
struggle to understand the verification errors. This commit adds some
docs to describe them and their various implementations.
2023-11-14 11:23:55 -05:00
David Turner
8572d6e618
Repo analysis: allow configuration of register ops (#102051)
Adds the `?register_operation_count` parameter that allows to control
the number of register operations separately from the number of regular
blob operations.
2023-11-13 02:20:23 -05:00
David Turner
f1c7436140
Note that repo analysis varies by version (#101762)
Clarifies that repo analysis may get stricter over time.
2023-11-03 11:15:19 +00:00
David Turner
a170d73b06
Suggest a strategy for using repo analysis (#101507)
Adds some docs to suggest running a sequence of increasingly large
analyses, and to set a very generous timeout.
2023-10-30 09:30:33 +00:00
David Turner
cf97e967a9
More S3-compatible repo deflection (#100754)
Call out explicitly that users need to reproduce issues with the real S3
before reporting them to ES.
2023-10-12 05:41:50 -04:00
Tanguy Leroux
583a787618
[Docs] Link to AWS SDK documentation for requests logging (#100491)
Co-authored-by: David Turner david.turner@elastic.co
2023-10-12 09:48:45 +02:00
David Turner
a1caba1521
Add repository backup warning (#99788)
Adds a note about the consequences of trying to back up and restore a
snapshot repository without taking steps to make sure the copy is
consistent.
2023-09-25 17:17:03 +01:00
David Turner
3691312aca
Slightly adjust docs about S3 incompatibilities (#99624)
It's often useful to quote these docs to users encountering problems
with their not-quite-S3-compatible storage system. In practice we don't
need to quote the bits in the middle but we do need the last sentence
about working with the supplier to address incompatibilities. This
commit reorders things so that the most commonly quoted sentences form a
standalone paragraph.
2023-09-18 08:26:03 -04:00
Stef Nestor
61228b888e
[DOC+] ILM Searchable Snapshot migrations require repository "name" to be the same (#99308)
👋 howdy, team! Expanding reference to [internal](https://github.com/elastic/cloud/pull/118105) update, we've just confirmed ILM requires the repository name to be the same among migrating clusters. This is a hard block for Searchable Snapshots which requires un-Searchable-Snapshotting or redoing migration to resolve.
2023-09-08 10:28:30 +02:00
Stef Nestor
9573f6f1f4
[DOC+] snapshot-restore single index example (#99065)
* [DOC+] snapshot-restore single index example

👋🏼 howdy, team! I'd like to append an example to snapshot-restore a single index. Support usually points users to [this page](https://www.elastic.co/guide/en/elasticsearch/reference/master/restore-snapshot-api.html) but then users attempt the `rename_pattern` example (which makes sense!). I'd like to point them to a more literal "close index > restore on that index" example in the future.

* Fix test failure and reword

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-08-31 16:23:50 +02:00
Peter Dyson
ef7b7ccded
[DOCS] mention closed indices are included by default for snapshot (#98766) 2023-08-23 10:41:35 +02:00
David Kilfoyle
174ea9645c
[Docs] Fix links to Cloud snapshot and restore docs (#98228) 2023-08-04 18:01:46 -04:00
David Kilfoyle
4d3069a986
Fix broken links to Cloud snapshot restore info (#98213) 2023-08-04 16:38:27 -04:00