The gateway snapshot interval (only applies to shared gateways).
Java代碼
#index.gateway.snapshot_interval : 1s
分片異步刷新時間間隔
Java代碼
#index.refresh_interval : -1
Set to an actual value (like 0-all) or false to disable it.
Java代碼
index.auto_expand_replicas
Set to true to have the index read only. false to allow writes and metadata changes.
Java代碼
index.blocks.read_only
Set to true to disable read operations against the index.
Java代碼
index.blocks.read
Set to true to disable write operations against the index.
Java代碼
index.blocks.write
Set to true to disable metadata operations against the index.
Java代碼
index.blocks.metadata
Lucene index term間隔,僅用於新建立的doc
Java代碼
index.term_index_interval
Lucene reader term index divisor
Java代碼
index.term_index_divisor
When to flush based on operations.
Java代碼
index.translog.flush_threshold_ops
When to flush based on translog (bytes) size.
Java代碼
index.translog.flush_threshold_size
When to flush based on a period of not flushing.
Java代碼
index.translog.flush_threshold_period
Disables flushing. Note, should be set for a short interval and then enabled.
Java代碼
index.translog.disable_flush
The maximum size of filter cache (per segment in shard). Set to -1 to disable.
Java代碼
index.cache.filter.max_size
The expire after access time for filter cache. Set to -1 to disable.
Java代碼
index.cache.filter.expire
merge policy All the settings for the merge policy currently configured. A different merge policy can’t be set.
A node matching any rule will be allowed to host shards from the index.
Java代碼
index.routing.allocation.include.*
A node matching any rule will NOT be allowed to host shards from the index.
Java代碼
index.routing.allocation.exclude.*
Only nodes matching all rules will be allowed to host shards from the index.
Java代碼
index.routing.allocation.require.*
Controls the total number of shards allowed to be allocated on a single node. Defaults to unbounded (-1).
Java代碼
index.routing.allocation.total_shards_per_node
When using local gateway a particular shard is recovered only if there can be allocated quorum shards in the cluster. It can be set to quorum (default), quorum-1 (or half), full and full-1. Number values are also supported, e.g. 1.