box: add replication_sync_timeout configuration option
In the scope of #3427 we need timeout in case if an instance waits for synchronization for too long, or even forever. Default value is 300. Closes #3674 @locker: moved dynamic config check to box/cfg.test.lua; code cleanup @TarantoolBot document Title: Introduce new configuration option replication_sync_timeout After initial bootstrap or after replication configuration changes we need to sync up with replication quorum. Sometimes sync can take too long or replication_sync_lag can be smaller than network latency we replica will stuck in sync loop that can't be cancelled.To avoid this situations replication_sync_timeout can be used. When time set in replication_sync_timeout is passed replica enters orphan state. Can be set dynamically. Default value is 300 seconds.
Showing
- src/box/box.cc 19 additions, 0 deletionssrc/box/box.cc
- src/box/box.h 1 addition, 0 deletionssrc/box/box.h
- src/box/lua/cfg.cc 12 additions, 0 deletionssrc/box/lua/cfg.cc
- src/box/lua/load_cfg.lua 4 additions, 0 deletionssrc/box/lua/load_cfg.lua
- src/box/replication.cc 8 additions, 3 deletionssrc/box/replication.cc
- src/box/replication.h 6 additions, 0 deletionssrc/box/replication.h
- test/app-tap/init_script.result 22 additions, 21 deletionstest/app-tap/init_script.result
- test/box-tap/cfg.test.lua 3 additions, 1 deletiontest/box-tap/cfg.test.lua
- test/box/admin.result 2 additions, 0 deletionstest/box/admin.result
- test/box/cfg.result 17 additions, 0 deletionstest/box/cfg.result
- test/box/cfg.test.lua 5 additions, 0 deletionstest/box/cfg.test.lua
Loading
Please register or sign in to comment