elasticsearch - Re-indexing without having aliases defined before it -
every time describes elasticsearch re-indexing process assumed index accessed via alias. actual transition 1 index done changing said alias. application doesn't access alias actual index. on top of can't change index name application accessing. possible make transition old index new index using alias old index name, hence application not having know has changed?
one problem face not allowed create alias has same name existing index (and vice versa).
so if can't change app hitting , hitting index directly, cannot create index b alias a.
the way it, to:
- copy/re-index index new index b
- delete index first
- and add alias onto index b (but during few seconds between 2 , 3, app hit nothing)
it problem first time it, though. next time, you'll able switch alias index b (old) index c (new) atomically , app won't feel thing.
Comments
Post a Comment