Reindexing with zero downtime
It is recommended to use aliases instead of indices in production. Since your current index design may not be perfect, you'll need to reindex later. For example, some fields of the documents have changed. By using an alias, you can transparently switch your application from using the old index to the new index without downtime. Suppose you use the index alias cf_etf_production, instead of the cf_etf index in your application. You successfully re-index the data from cf_etf to the new index, cf_etf_new. Then, you delete the alias from the old index and create the same alias for the new index. The index that's used in the application is switched. The operations of the whole process are shown in the following screenshot: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access