2013-08-28 19:24:34 -04:00
|
|
|
[[modules-indices]]
|
|
|
|
== Indices
|
|
|
|
|
|
|
|
The indices module allow to control settings that are globally managed
|
|
|
|
for all indices.
|
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[buffer]]
|
2013-08-28 19:24:34 -04:00
|
|
|
=== Indexing Buffer
|
|
|
|
|
|
|
|
The indexing buffer setting allows to control how much memory will be
|
|
|
|
allocated for the indexing process. It is a global setting that bubbles
|
|
|
|
down to all the different shards allocated on a specific node.
|
|
|
|
|
|
|
|
The `indices.memory.index_buffer_size` accepts either a percentage or a
|
|
|
|
byte size value. It defaults to `10%`, meaning that `10%` of the total
|
|
|
|
memory allocated to a node will be used as the indexing buffer size.
|
|
|
|
This amount is then divided between all the different shards. Also, if
|
2014-03-07 08:21:45 -05:00
|
|
|
percentage is used, it is possible to set `min_index_buffer_size` (defaults to
|
|
|
|
`48mb`) and `max_index_buffer_size` (defaults to unbounded).
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
The `indices.memory.min_shard_index_buffer_size` allows to set a hard
|
|
|
|
lower limit for the memory allocated per shard for its own indexing
|
|
|
|
buffer. It defaults to `4mb`.
|
|
|
|
|
|
|
|
[float]
|
2013-09-30 17:32:00 -04:00
|
|
|
[[indices-ttl]]
|
2013-08-28 19:24:34 -04:00
|
|
|
=== TTL interval
|
|
|
|
|
2014-03-07 08:21:45 -05:00
|
|
|
You can dynamically set the `indices.ttl.interval`, which allows to set how
|
2013-08-28 19:24:34 -04:00
|
|
|
often expired documents will be automatically deleted. The default value
|
|
|
|
is 60s.
|
|
|
|
|
|
|
|
The deletion orders are processed by bulk. You can set
|
|
|
|
`indices.ttl.bulk_size` to fit your needs. The default value is 10000.
|
|
|
|
|
|
|
|
See also <<mapping-ttl-field>>.
|
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[recovery]]
|
2013-08-28 19:24:34 -04:00
|
|
|
=== Recovery
|
|
|
|
|
2014-03-07 08:21:45 -05:00
|
|
|
The following settings can be set to manage the recovery policy:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[horizontal]
|
|
|
|
`indices.recovery.concurrent_streams`::
|
|
|
|
defaults to `3`.
|
|
|
|
|
|
|
|
`indices.recovery.file_chunk_size`::
|
|
|
|
defaults to `512kb`.
|
|
|
|
|
|
|
|
`indices.recovery.translog_ops`::
|
|
|
|
defaults to `1000`.
|
|
|
|
|
|
|
|
`indices.recovery.translog_size`::
|
|
|
|
defaults to `512kb`.
|
|
|
|
|
|
|
|
`indices.recovery.compress`::
|
|
|
|
defaults to `true`.
|
|
|
|
|
|
|
|
`indices.recovery.max_bytes_per_sec`::
|
2014-04-22 11:25:04 -04:00
|
|
|
defaults to `50mb`.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[float]
|
2013-09-25 12:17:40 -04:00
|
|
|
[[throttling]]
|
2013-08-28 19:24:34 -04:00
|
|
|
=== Store level throttling
|
|
|
|
|
2014-03-07 08:21:45 -05:00
|
|
|
The following settings can be set to control the store throttling:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[horizontal]
|
|
|
|
`indices.store.throttle.type`::
|
2014-05-05 16:17:57 -04:00
|
|
|
could be `merge` (default), `none` or `all`. See <<index-modules-store>>.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
`indices.store.throttle.max_bytes_per_sec`::
|
2014-04-22 15:32:48 -04:00
|
|
|
defaults to `50mb`.
|
2013-08-28 19:24:34 -04:00
|
|
|
|