Elasticsearch Curator helps you curate, or manage your Elasticsearch indices.
Curator allows for many different operations to be performed to both indices and snapshots, including:
- Add or remove indices from an alias
- Shard routing allocation
- Disabling Bloom filter caches (for versions of Elasticsearch < 1.4)
- Close indices
- Delete indices and snapshots
- Open closed indices
- Optimize indices
- Change the number of replicas per shard for indices
- Show indices and snapshots
- Take a snapshot (backup) of indices.
This is a subordinate charm to install Elasticsearch Curator in the same unit as elasticsearch.
1) config option to setup a cronjob via a jinja2 template
2) "run" action to run curator CLI
juju deploy elasticsearch
juju deploy es-curator
juju add-relation elasticsearch es-curator
# to list all indices
juju action do es-curator/5 run command="show indices --all-indices"
juju action fetch <action-UUID>
If using the cronjob options, this should be only run from a single elasticsearch node, as the operations afect the cluster.
To pin the cron to a single unit, the cron_unit config is provided, which should be set to the unit number where the cronjob will be run.