Understanding ElasticSearch Performance
Performance before and after Optimizations When working with billions of documents in your Elasticsearch cluster, there are a few important things to keep in mind:
Look at what the big players do (Elasticsearch/Kibana) for organization and planning Experiment with index sizes that make sense for your business, don’t just assume 1 index for a billion documents is a good idea (even if you N shards) Understand which metrics to monitor when you are performance testing your cluster Monitor all points of ingestion: Elasticsearch, Load balancers (ELB, HAProxy, etc), and your application code that is inserting What do the big players do? Split by date ranges. Based on your data, decide whether daily, weekly, or even monthly splits are best for your dataset. Elasticsearch reccomends not going over 30-32G per shard based on current JVM memory reccomendations . The reason they reccomend to stay below 32G of ram per shard is that after that, the JVM will use uncompressed pointers which means internal pointers go from 4 bytes to 8 bytes, which (depending on your memory size) can lead to decreased heap available and also increased GC times from the JVM.
Josh Rendek