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:

  1. copy/re-index index new index b
  2. delete index first
  3. 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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -