代码拉取完成,页面将自动刷新
PUT /_ilm/policy/my-ilm-test-policy
{
"policy" : {
"phases" : {
"hot" : {
"actions" : {
"rollover" : {
"max_size" : "50gb",
"max_age" : "30d"
},
"set_priority" : {
"priority" : 100
}
}
},
"delete" : {
"min_age" : "100d",
"actions" : {
"delete" : {
"delete_searchable_snapshot" : true
}
}
}
}
}
}
PUT /_index_template/my-ilm-test-template
{
"index_patterns" : ["my-ilm-test-idx-*"],
"priority" : 1,
"template": {
"settings" : {
"index.lifecycle.name": "my-ilm-test-policy",
"index.lifecycle.rollover_alias": "my-ilm-test-index",
"index.number_of_replicas" : 2
}
}
}
PUT my-ilm-test-idx-000001
{
"aliases": {
"my-ilm-test-index": {
"is_write_index": true
}
},
"settings" : {
"index" : {
"number_of_shards" : "1",
"number_of_replicas" : "2"
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。