I want all index data files to be locked into RAM so queries execute fast regardless of HDD usage.
But when I execute queries, I still see spikes of HDD iops during requests (index is in read only state) and queries execute slow for the first time. Running the same query 2nd time is fast, because data were recently read from disk.
curl -X GET "localhost:9200/_nodes?filter_path=**.mlockall"
reports that "mlockall":true
What's wrong? Is it possible to setup elastic so that all data files are always in RAM?
Thanks in advance!