-
Notifications
You must be signed in to change notification settings - Fork 43
new configuration option - bootstrap_leader
.
#3432
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
Comments
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 1, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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 whatever node which has its `box.cfg.instance_name` set to the same value as specified in `box.cfg.bootstrap_leader`. This is an addition to tarantool/doc#3432
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 1, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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 whatever node which has an instance name specified in `box.cfg.bootstrap_leader`. This is an addition to tarantool/doc#3432
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 1, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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 whatever node which has an instance name specified in `box.cfg.bootstrap_leader`. This is an addition to tarantool/doc#3432
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 1, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 2, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 2, 2023
Make it possible to specify the bootstrap leader via an instance name in addition to its URI and UUID. 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
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 6, 2023
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
sergepetrenko
added a commit
to sergepetrenko/tarantool
that referenced
this issue
Jun 7, 2023
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
sergepetrenko
added a commit
to tarantool/tarantool
that referenced
this issue
Jun 8, 2023
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 #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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related dev. issue(s): tarantool/tarantool#7999
Product: Tarantool
Since: 3.0
Root document:
SME: @ sergepetrenko
Details
Configuration receives a new parameter -
bootstrap_leader
. Theparameter specifies the desired node to bootstrap from.
The parameter is valid only when another option -
bootstrap_strategy
-is set to
'config'
.The user may pass either the bootstrap leader's URI or its UUID string.
If bootstrap leader is passed as a UUID, the node will bootstrap from
the peer whose UUID matches the given one.
If bootstrap leader is passed as a URI, the URI must contain the same
host:port pair (or unix socket path) used for this node in
box.cfg.replication
. In this case the node will bootstrap from theremote peer listed in the corresponding replication entry.
For example, this call will return an error:
But this call will succeed:
In the example above, setting either or both of
bootstrap_leader
andreplication
to"user:password@127.0.0.1:3301
will work just fine,i.e. only the bootstrap leader's host and port are matched against
replication entries.
If
bootstrap_leader
points at the instance being configured, the sameURI entry for the instance must still be present in
replication
configuration parameter, like this:
The only exception to this is setting
bootstrap_leader
to the sameUUID as instance_uuid, like this:
In this case the node will bootstrap the cluster on its own.
Requested by @ sergepetrenko in tarantool/tarantool@c68fe03.
The text was updated successfully, but these errors were encountered: