Skip to content

Commit 1c4610e

Browse files
Auto-generated API code (#2859)
1 parent ba6ed49 commit 1c4610e

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

docs/reference/api-reference.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13729,23 +13729,31 @@ To indicate that the request should never timeout, set it to `-1`.
1372913729

1373013730
## client.snapshot.repositoryAnalyze [_snapshot.repository_analyze]
1373113731
Analyze a snapshot repository.
13732-
Analyze the performance characteristics and any incorrect behaviour found in a repository.
1373313732

13734-
The response exposes implementation details of the analysis which may change from version to version.
13735-
The response body format is therefore not considered stable and may be different in newer versions.
13733+
Performs operations on a snapshot repository in order to check for incorrect behaviour.
1373613734

1373713735
There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch.
13738-
Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system.
13736+
Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do.
13737+
This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system.
1373913738

1374013739
The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations.
1374113740
Run your first analysis with the default parameter values to check for simple problems.
13742-
If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`.
13741+
Some repositories may behave correctly when lightly loaded but incorrectly under production-like workloads.
13742+
If the first analysis is successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`.
1374313743
Always specify a generous timeout, possibly `1h` or longer, to allow time for each analysis to run to completion.
13744+
Some repositories may behave correctly when accessed by a small number of Elasticsearch nodes but incorrectly when accessed concurrently by a production-scale cluster.
1374413745
Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once.
1374513746

1374613747
If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly.
1374713748
This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support.
1374813749
If so, this storage system is not suitable for use as a snapshot repository.
13750+
Repository analysis triggers conditions that occur only rarely when taking snapshots in a production system.
13751+
Snapshotting to unsuitable storage may appear to work correctly most of the time despite repository analysis failures.
13752+
However your snapshot data is at risk if you store it in a snapshot repository that does not reliably pass repository analysis.
13753+
You can demonstrate that the analysis failure is due to an incompatible storage implementation by verifying that Elasticsearch does not detect the same problem when analysing the reference implementation of the storage protocol you are using.
13754+
For instance, if you are using storage that offers an API which the supplier claims to be compatible with AWS S3, verify that repositories in AWS S3 do not fail repository analysis.
13755+
This allows you to demonstrate to your storage supplier that a repository analysis failure must only be caused by an incompatibility with AWS S3 and cannot be attributed to a problem in Elasticsearch.
13756+
Please do not report Elasticsearch issues involving third-party storage systems unless you can demonstrate that the same issue exists when analysing a repository that uses the reference implementation of the same storage protocol.
1374913757
You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects.
1375013758

1375113759
If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took.
@@ -13777,7 +13785,9 @@ This consumes bandwidth on the network between the cluster and the repository, a
1377713785
You must ensure this load does not affect other users of these systems.
1377813786
Analyses respect the repository settings `max_snapshot_bytes_per_sec` and `max_restore_bytes_per_sec` if available and the cluster setting `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth they consume.
1377913787

13780-
NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.
13788+
NOTE: This API is intended for exploratory use by humans.
13789+
You should expect the request parameters and the response format to vary in future versions.
13790+
The response exposes immplementation details of the analysis which may change from version to version.
1378113791

1378213792
NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones.
1378313793
A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version.
@@ -13788,7 +13798,8 @@ NOTE: This API may not work correctly in a mixed-version cluster.
1378813798

1378913799
*Implementation details*
1379013800

13791-
NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions.
13801+
NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions.
13802+
The request parameters and response format depend on details of the implementation so may also be different in newer versions.
1379213803

1379313804
The analysis comprises a number of blob-level tasks, as set by the `blob_count` parameter and a number of compare-and-exchange operations on linearizable registers, as set by the `register_operation_count` parameter.
1379413805
These tasks are distributed over the data and master-eligible nodes in the cluster for execution.

0 commit comments

Comments
 (0)