Skip to content

dadoonet/S01E14-searchable-snapshots

Repository files navigation

Demo scripts used for Elastic Daily Bytes - Searchable Snapshots

Searchable Snapshots

Setup

You first need to create a Google Cloud Storage bucket to hold the snapshots. It must be named elastic-daily-bytes. Then create a service account and download the json service file to elasticsearch-config/service-account.json.

The setup will check that Elasticsearch and Kibana are running.

It will also add Kibana Canvas slides.

Run on cloud (recommended)

Open your cloud deployment in the cloud console and open the security tab. Click on Add settings near the "Elasticsearch keystore".

Add the setting gcs.client.demo.credentials_file as a "JSON/Block file" and copy/paste the content of elasticsearch-config/service-account.json in it. Then click "Save".

You also need to edit your cluster elasticsearch.yml file and add to one of the tier the following setting:

xpack.searchable.snapshot.shared_cache.size: 15gb

This will allocate 15gb of disk as a cache for frozen snapshots.

This specific configuration is used to run the demo on a cloud instance. You need to create a .cloud local file which contains:

CLOUD_ID=the_cloud_id_you_can_read_from_cloud_console
CLOUD_PASSWORD=the_generated_elastic_password

Run:

./setup.sh

Run Locally (NOT SUPPORTED FOR THIS DEMO)

Run Elastic Stack:

docker-compose down -v
docker-compose up --build

And run:

./setup.sh

Demo part

About

Demo scripts used for Elastic Daily Bytes - (Searchable) Snapshots

Resources

License

Stars

Watchers

Forks