I have a time-series index. I create a new version once a day using the
When creating the index, I assign it a constant alias of 'index-name'.
This way, clients can just refer to the 'index-name', and not have to
append the timestamp. I create the alias when I create the index so it's
an atomic operation; however I create a new index every day and am
assigning it the same alias. This is blowing up as you can't have the same
alias point to multiple indexes. I'm trying to fix this but can't find an
atomic way to:
- create the new index
- remove the alias from the old index
- add the alias to the new index
I can do 1/3 atomically using the index API or 2/3 atomically using the
alias API, but I can't find a way to do all three.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6322f948-6574-45ce-b859-773dbae1f1da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.