I have around 2GB of events getting accumulated every day. I use curator to get rid of data every 5 days.
Now, the problem is it takes long time to execute search in kibana. I am using docker to run ELK . When I do docker stats , I can see that only 3 GB of memory is getting used when I have 64GB available .
I check the heap : It shows the max heap is 16GB (which according to ergonomics algorithm is correct .
According to the algorithm , The max heap is 1/4 of the total and the initial heap is 1/64 of the total . This is what i can see :
java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|P ermSize|ThreadStackSize'
intx CompilerThreadStackSize = 0 {pd product}
uintx ErgoHeapSizeLimit = 0 {product}
uintx HeapSizePerGCThread = 87241520 {product}
uintx InitialHeapSize := 1054867456 {product}
uintx LargePageHeapSizeThreshold = 134217728 {product}
uintx MaxHeapSize := 16848519168 {product}
intx ThreadStackSize = 1024 {pd product}
intx VMThreadStackSize = 1024 {pd product}
I have increased the shards to 15 and replicas to 5 for two indices that I have. But no change in memory usage.
How to make the search results faster ?