ES index生命周期配置
Posted AresCarry
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ES index生命周期配置相关的知识,希望对你有一定的参考价值。
一、前言
PUT _ilm/policy/AAAAAA_policy
"policy":
"phases":
"hot":
"min_age": "0ms",
"actions":
"rollover":
"max_size": "100mb"
,
"set_priority":
"priority": 100
PUT _template/AAAAAA_template
"index_patterns": ["AAAAAA-*"],
"settings":
"number_of_shards": 3,
"number_of_replicas": 1,
"index.lifecycle.name": "AAAAAA_policy",
"index.lifecycle.rollover_alias": "AAAAAA"
PUT AAAAAA-000001
"aliases":
"users_label":
"is_write_index": true
以上是关于ES index生命周期配置的主要内容,如果未能解决你的问题,请参考以下文章