PUT _ilm/policy/web_rollover
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_docs": 2
}
}
}
}
}
}
PUT _template/my_template
{
"index_patterns": ["web-*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1,
"index.lifecycle.name": "web_rollover",
"index.lifecycle.rollover_alias": "web"
}
}
# making alias at the index creation timing.
# https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-aliases.html#alias-index-creation
PUT web-reindex
{
"aliases": {
"web": {
"is_write_index": true
}
}
}
POST web-reindex-001/_doc/1
{
"name" : "a"
}
GET web-reindex-001/_ilm/explain
Last active
November 6, 2020 12:29
-
-
Save TomonoriSoejima/16019891db0744292b7117d99bde7670 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment