Elasticsearch – Index Modules

Elasticsearch - Index Modules

These are the Elasticsearch Index Modules which are created for every index and control the settings and behaviour of the indices. For example, how many shards an index can use or the number of replicas a primary shard can have for that index etc.

There are two types of Elasticsearch index Modules settings βˆ’

  • Static βˆ’ These can be set only at index creation time or on a closed index.
  • Dynamic βˆ’ These can be changed on a live index.

Static Index Settings

The following table shows the list of static index settings βˆ’

SettingPossible valueDescription
index.number_of_shardsDefaults to 5, Maximum 1024The number of primary shards that an index should have.
index.shard.check_on_startupDefaults to false. Can be TrueWhether or not shards should be checked for corruption before opening.
index.codecLZ4 compression.Type of compression used to store data.
index.routing_partition_size1The number of shards a custom routing value can go to.
index.load_fixed_bitset_filters_eagerlyfalseIndicates whether cached filters are pre-loaded for nested queries

Dynamic Index Settings

The following table shows the list of dynamic index settings βˆ’

SettingPossible valueDescription
index.number_of_replicasDefaults to 1The number of replicas each primary shard has.
index.auto_expand_replicasA dash delimited lower and upper bound (0-5)Auto-expand the number of replicas based on the number of data nodes in the cluster.
index.search.idle.after30secondsHow long a shard cannot receive a search or get request until it’s considered search idle.
index.refresh_interval1 secondHow often to perform a refresh operation, which makes recent changes to the index visible to search.

Next Topic – Click Here

This Post Has One Comment

Leave a Reply