Elasticsearch Repository

Opster Team

Last updated: Oct 25, 2022

| 1 min read

In addition to reading this guide, we recommend you run the Elasticsearch Health Check-Up. It will detect issues and improve your Elasticsearch performance by analyzing your shard sizes, threadpools, memory, snapshots, disk watermarks and more.

The Elasticsearch Check-Up is free and requires no installation.

To review your snapshot operations and repository settings, you can run the Elasticsearch Health Check-Up. It will also help you detect other important configurations that can improve your performance and prevent future issues.

Overview

An Elasticsearch snapshot provides a backup mechanism that takes the current state and data in the cluster and saves it to a repository (read snapshot for more information). The backup process requires a repository to be created first. The repository needs to be registered using the _snapshot endpoint, and multiple repositories can be created per cluster. The following repository types are supported: 

Repository types

Repository typeConfiguration type
Shared file systemType: “fs”
S3Type : “s3”
HDFSType :“hdfs”
AzureType: “azure”
Google Cloud StorageType : “gcs”

Examples

To register an “fs” repository:

PUT _snapshot/my_repo_01
{
"type": "fs",
"settings": {
"location": "/mnt/my_repo_dir"
  }
}

Notes and good things to know

  • S3, HDFS, Azure and Google Cloud require a relevant plugin to be installed before it can be used for a snapshot.
  • The setting, path.repo: /mnt/my_repo_dir needs to be added to elasticsearch.yml on all the nodes if you are planning to use the repo type of file system. Otherwise, it will fail.
  • When using remote repositories, the network bandwidth and repository storage throughput should be high enough to complete the snapshot operations normally, otherwise you will end up with partial snapshots.

Related log errors to this ES concept


Hadoop authentication method is set to SIMPLE; but a Kerberos principal is
The repository location is missing; it should point to a shared file system location
Unknown blob in the repository:
Failed to delete shard snapshot file
Store cannot be marked as corrupted
Cant read metadata from store; will not reuse local files during restore
Failed to delete data blob during finalization
Index blob is not valid x-content bytes
Failed to read index file
Failed to delete blob in bucket
Cannot read snapshot file
Cannot access in container :

< Page: 2 of 7 >

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content