-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replication: allow to pass instance name as bootstrap_leader #8729
replication: allow to pass instance name as bootstrap_leader #8729
Conversation
@@ -0,0 +1,15 @@ | |||
## feature/replication | |||
|
|||
* Added ability to set `bootstrap_leader` configuration option to the instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Added ability to set `bootstrap_leader` configuration option to the instance | |
* Added the ability to set the `bootstrap_leader` configuration option to the instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed.
e8185e7
to
e0e247f
Compare
8d19685
to
6a878e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch! I have only two comments)
6a878e7
to
d7986d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes and explanation!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
Node's ballot contains all the information necessary to choose it a bootstrap leader. Since the bootstrap_leader configuration option will allow specifying bootstrap leader's name, we have to broadcast the name in node's ballot. Prerequisite tarantool#8539 NO_CHANGELOG=not user-visible @TarantoolBot document Title: new field in node's BALLOT: IPROTO_BALLOT_INSTANCE_NAME The node's ballot (IPROTO_BALLOT) receives a new field: the name of the node (the same as in box.cfg.instance_name or box.info.name): Key: IPROTO_BALLOT_INSTANCE_NAME = 0x0a Value: MP_STR, representing the instance name.
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
d7986d8
to
6ffac11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID.
Closes #8539
@TarantoolBot document
Title:
box.cfg.bootstrap_leader
accepts instance names nowThe 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:
When
box.cfg
contains some entries inreplication
, the node will bootstrap from whatever node which has itsbox.cfg.instance_name
set to the same value as specified inbox.cfg.bootstrap_leader
.This is an addition to tarantool/doc#3432