all
- (default) Allows shard allocation for all kinds of shards.primaries
- Allows shard allocation only for primary shards.new_primaries
- Allows shard allocation only for primary shards for new indices.none
- No shard allocations of any kind are allowed for any indices.all
- (default) Allows shard balancing for all kinds of shards.primaries
- Allows shard balancing only for primary shards.replicas
- Allows shard balancing only for replica shards.none
- No shard balancing of any kind are allowed for any indices.always
- Always allow rebalancing.indices_primaries_active
- Only when all primaries in the cluster are allocated.indices_all_active
- (default) Only when all shards (primaries and replicas) in the cluster are allocated.true
- defaultfalse
_all
,新建的 index 也不会有这个配置。可以用 template 的方式增加此配置。index.refresh_interval
:由 Buffer 写入 Segment(在 OS cache 中) 的频率,默认 1s。index.translog.sync_interval
:默认 5s,表示 translog 由 OS cache 写入硬盘的频率。需要 close index 才能修改。order
:数值越大越后执行,会覆盖数值小的。