younifyd
Menu

Analyze a snapshot repository

Analyze a snapshot repository

POST/_snapshot/{repository}/_analyze

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Analyze a snapshot repository action (under snapshot).
  3. Fill in the fields below, then reference the result from later steps as {{analyzeASnapshotRepository.response.data}}.

Request

Path parameters

repositorystringrequired

The name of the repository.

Query parameters

blob_countnumber

The total number of blobs to write to the repository during the test. For realistic experiments, set this parameter to at least `2000`.

check_overwrite_protectionboolean

Whether to run the overwrite protection check. For realistic experiments, leave this parameter unset.

concurrencynumber

The number of operations to run concurrently during the test. For realistic experiments, leave this parameter unset.

detailedboolean

Indicates whether to return detailed results, including timing information for every operation performed during the analysis. If false, it returns only a summary of the analysis.

early_read_node_countnumber

The number of nodes on which to perform an early read operation while writing each blob. Early read operations are only rarely performed. For realistic experiments, leave this parameter unset.

max_blob_sizeoneOf

The maximum size of a blob to be written during the test. For realistic experiments, set this parameter to at least `2gb`.

max_total_data_sizeoneOf

An upper limit on the total size of all the blobs written during the test. For realistic experiments, set this parameter to at least `1tb`.

rare_action_probabilitynumber

The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. For realistic experiments, leave this parameter unset.

rarely_abort_writesboolean

Indicates whether to rarely cancel writes before they complete. For realistic experiments, leave this parameter unset.

read_node_countnumber

The number of nodes on which to read a blob after writing. For realistic experiments, leave this parameter unset.

register_operation_countnumber

The minimum number of linearizable register operations to perform in total. For realistic experiments, set this parameter to at least `100`.

seednumber

The seed for the pseudo-random number generator used to generate the list of operations performed during the test. To repeat the same set of operations in multiple experiments, use the same seed in each experiment. Note that the operations are performed concurrently so might not always happen in the same order on each run. For realistic experiments, leave this parameter unset.

timeoutoneOf

The period of time to wait for the test to complete. If no response is received before the timeout expires, the test is cancelled and returns an error. For realistic experiments, set this parameter sufficiently long to allow the test to complete.

Response

Returns 200 with an object. Read it in later steps with {{analyzeASnapshotRepository.response.data.<field>}}.

blob_countnumber

The number of blobs written to the repository during the test.

blob_pathstring

The path in the repository under which all the blobs were written during the test.

concurrencynumber

The number of write operations performed concurrently during the test.

coordinating_nodeany

The node that coordinated the analysis and performed the final cleanup.

delete_elapsedany

The time it took to delete all the blobs in the container.

delete_elapsed_nanosany

The time it took to delete all the blobs in the container, in nanoseconds.

detailsany

A description of every read and write operation performed during the test.

early_read_node_countnumber

The limit on the number of nodes on which early read operations were performed after writing each blob.

issues_detectedarray<string>

A list of correctness issues detected, which is empty if the API succeeded. It is included to emphasize that a successful response does not guarantee correct behaviour in future.

listing_elapsedany

The time it took to retrieve a list of all the blobs in the container.

listing_elapsed_nanosany

The time it took to retrieve a list of all the blobs in the container, in nanoseconds.

max_blob_sizeany

The limit on the size of a blob written during the test.

max_blob_size_bytesnumber

The limit, in bytes, on the size of a blob written during the test.

max_total_data_sizeany

The limit on the total size of all blob written during the test.

max_total_data_size_bytesnumber

The limit, in bytes, on the total size of all blob written during the test.

rare_action_probabilitynumber

The probability of performing rare actions during the test.

read_node_countnumber

The limit on the number of nodes on which read operations were performed after writing each blob.

repositorystring

The name of the repository that was the subject of the analysis.

seednumber

The seed for the pseudo-random number generator used to generate the operations used during the test.

summaryany

A collection of statistics that summarize the results of the test.

json
{
  "blob_count": 0,
  "blob_path": "string",
  "concurrency": 0,
  "coordinating_node": null,
  "delete_elapsed": null,
  "delete_elapsed_nanos": null,
  "details": null,
  "early_read_node_count": 0,
  "issues_detected": [
    "string"
  ],
  "listing_elapsed": null,
  "listing_elapsed_nanos": null,
  "max_blob_size": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.