Hello hello, good morning and happy Wednesday!
May I ask your help and also if this is a common/known issue?
This is a production cluster, ES 8.8.0. I am doing tests with a 5min rollover.
Due to the nature of our application we need 2 aliases per index pattern:
$indexName_read
$indexName_write
The rollover fails, and to make it work we need to remove the aliases from the index_template (both of them). Then, the rollover works, the new index is created ONLY with the alias: "%indexName_write".
I came to the understanding that I need to manually add the other alias "$indexName_read" to the new index, is that the only solution? If yes, any suggestion on how to do it or will I have to add it as a feature to my application?
My lead index:
PUT rome_index-000001
{
"aliases": {
"rome_alias_read": {},
"rome_alias_write": {
"is_write_index": true
}
}
}
My index_template:
PUT _index_template/rome_template
{
"index_patterns": ["rome_index-*"],
"template": {
"settings": {
"index.lifecycle.name": "rome_ilm",
"index.lifecycle.rollover_alias": "rome_alias_write",
"number_of_shards": 3,
"number_of_replicas": 1
},
"aliases": {
"rome_alias_read": {},
"rome_alias_write": {
"is_write_index": true
}
}
}
}
My ILM:
PUT _ilm/policy/rome_ilm
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "5m"
},
"set_priority": {
"priority": 100
}
}
}
}
}
}
Rollover error:
"reason": "Rollover alias [rome_alias_write] can point to multiple indices, found duplicated alias [[rome_alias_write, rome_alias_read]] in index template [rome_template]"
This is the original topic I found, but without an apparent solution: