Skip to content

Commit c0e699b

Browse files
committed
add sync order
1 parent 569a9c4 commit c0e699b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eskeeper synchronizes index and alias with configuration files while ensuring id
99
### mode
1010

1111
- [x] CLI mode
12-
- [x] Index status(close only)
12+
- [x] Index status(open/close only)
1313
- [ ] Agent mode
1414

1515
### sync
@@ -101,6 +101,21 @@ eskeeper process is divided into four stages.
101101
#### sync stage
102102
* Sync indices and aliases with config
103103

104+
The order of synchronization is as follows.
105+
106+
```
107+
create index
108+
109+
open index
110+
111+
update alias
112+
113+
close index
114+
```
115+
116+
Index close operation should be done after switching the alias.
117+
Because there can be downtime before switching aliases.
118+
104119
#### post-check stage
105120
* Check if indices & aliases has been created
106121

0 commit comments

Comments
 (0)