Skip to content

RvdGijp/ElasticSearch_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ElasticSearch script

Bash script to shrink the number of ElasticSearch shards by

  • Calculating size
  • Create a new index and copy the data with te _shrink API
  • Removes the old index
  • Create an alias to the new index with the old name

The script produces only output based on your configuration. You can execute it yourself (or not 😼 ).

Optimal sizes are based on this blog post https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster

./shard_optimalisation.sh [-r] [-d <sqlite3 filename> ] [-o] [-i <index name>]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages