forked from tarantool/tarantool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replication: allow to pass instance name as bootstrap_leader
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. While I'm at it, change the argument order of box_check_node_name() to comply with box_check_uuid/uri/uri_set(). Closes tarantool#8539 @TarantoolBot document Title: `box.cfg.bootstrap_leader` accepts instance names now The option `box.cfg.bootstrap_leader`, which specifies the desired bootstrap leader when bootstrap_strategy is "config" now accepts instance names. For example, this is a valid config without replication: ```lua box.cfg{ instance_name = 'main-server', bootstrap_strategy = 'config', bootstrap_leader = 'main-server' } ``` When `box.cfg` contains some entries in `replication`, the node will bootstrap from the node which has the instance name specified in `box.cfg.bootstrap_leader`. This is an addition to tarantool/doc#3432
- Loading branch information
1 parent
8c8191b
commit d7986d8
Showing
5 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## feature/replication | ||
|
||
* Added the ability to set the `bootstrap_leader` configuration option to the | ||
instance name of the desired bootstrap leader: | ||
```lua | ||
box.cfg{ | ||
bootstrap_strategy = 'config', | ||
bootstrap_leader = 'leader-name', | ||
replication = { | ||
... | ||
}, | ||
... | ||
} | ||
``` | ||
(gh-7999, gh-8539). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters