From c0e699bea4d6ed9093bf9cfa91093c3bb4ebfc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=AD=E6=9D=91=20=E5=BC=98=E6=AD=A6?= Date: Sun, 15 Nov 2020 00:25:11 +0900 Subject: [PATCH] add sync order --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0cff870..9cdc2a9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ eskeeper synchronizes index and alias with configuration files while ensuring id ### mode - [x] CLI mode -- [x] Index status(close only) +- [x] Index status(open/close only) - [ ] Agent mode ### sync @@ -101,6 +101,21 @@ eskeeper process is divided into four stages. #### sync stage * Sync indices and aliases with config +The order of synchronization is as follows. + +``` +create index +↓ +open index +↓ +update alias +↓ +close index +``` + +Index close operation should be done after switching the alias. +Because there can be downtime before switching aliases. + #### post-check stage * Check if indices & aliases has been created