Cloud or distributed filesystems

When you are running your Elasticsearch cluster on AWS, Azure, or Google Cloud, it makes sense to store the snapshots in one of the alternatives provided by the cloud platform to store the data in robust, fault tolerant storage, rather than storing it on a shared drive.

Elasticsearch has official plugins that allow you to store the snapshots in S3. All you need to do is install the repository—s3 plugin on all nodes of your cluster and set up the repository settings in a similar way to how we set up the shared filesystem repository:

curl -XPUT 'http://localhost:9200/_snapshot/backups' -H 'Content-Type: application/json' -d '{
"type": "s3",
"settings": {
"bucket": "bucket_name",
"region": "us-west",
...
}
}'

The type should be s3 and settings should have relevant values for s3.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.154.121