Store module
As the name suggests, the store module is related to controlling how index data is stored. All the operations on the hard disk drive are done using the store module. Therefore, when it comes to improving indexing performance, they need to focus on the store module. There are some tips to improve performance for this situation.
Store types
Elasticsearch allows an index to be stored on disk or in memory. By default, it uses filesystem based on storage, and, in this context, it provides some store types that we can use. Elasticsearch will automatically choose the best one for the operating environment. If you would like to use one of these store types, you should set the index.store.type
in elasticsearch.yml
file:
index.store.type: niofs
Or it can be set per-index basis at index creation time:
curl -XPUT localhost:9200/my_index -d '{ "settings": { "index.store.type": "niofs" } }'
Now let's look at these store types one by one.
Simple filesystem store
The simplefs type uses...