强制合并
编辑强制合并
编辑允许的阶段:热,温。
在 forcemerge
期间正在重新定位的分片将不会被合并。
要在 hot
阶段使用 forcemerge
操作,rollover
操作必须存在。如果未配置 rollover 操作,ILM 将拒绝该策略。
选项
编辑示例
编辑resp = client.ilm.put_lifecycle( name="my_policy", policy={ "phases": { "warm": { "actions": { "forcemerge": { "max_num_segments": 1 } } } } }, ) print(resp)
response = client.ilm.put_lifecycle( policy: 'my_policy', body: { policy: { phases: { warm: { actions: { forcemerge: { max_num_segments: 1 } } } } } } ) puts response
const response = await client.ilm.putLifecycle({ name: "my_policy", policy: { phases: { warm: { actions: { forcemerge: { max_num_segments: 1, }, }, }, }, }, }); console.log(response);
PUT _ilm/policy/my_policy { "policy": { "phases": { "warm": { "actions": { "forcemerge" : { "max_num_segments": 1 } } } } } }