config: introduce initial support of vshard
This patch introduces initial support for the vshard configuration. There is still a lot to be done in both vshard and the config to be able to run vshard naturally. Key support restrictions introduced in the patch: 1) at the moment there are only two roles: storage and router; 2) the entire config is considered a configuration for one sharded system; 3) the rebalancer is currently disabled; 4) The router can automatically find all masters, but once all masters are found, any changes to the masters will be ignored until vshard.router.cfg() is called manually. Closes #9007 NO_DOC=Will be described when full support for vshard is introduced.
Showing
- changelogs/unreleased/gh-8861-vshard-options.md 1 addition, 0 deletionschangelogs/unreleased/gh-8861-vshard-options.md
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/lua/config/applier/box_cfg.lua 2 additions, 0 deletionssrc/box/lua/config/applier/box_cfg.lua
- src/box/lua/config/applier/sharding.lua 84 additions, 0 deletionssrc/box/lua/config/applier/sharding.lua
- src/box/lua/config/configdata.lua 137 additions, 17 deletionssrc/box/lua/config/configdata.lua
- src/box/lua/config/init.lua 1 addition, 0 deletionssrc/box/lua/config/init.lua
- src/box/lua/init.c 5 additions, 0 deletionssrc/box/lua/init.c
- test/config-luatest/config_test.lua 4 additions, 1 deletiontest/config-luatest/config_test.lua
- test/config-luatest/vshard_test.lua 362 additions, 0 deletionstest/config-luatest/vshard_test.lua
Loading
Please register or sign in to comment