Skip to content

[Config] How-to: replicaset configuration #3654

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

Closed
Tracked by #3544
andreyaksenov opened this issue Sep 1, 2023 · 1 comment · Fixed by #3862
Closed
Tracked by #3544

[Config] How-to: replicaset configuration #3654

andreyaksenov opened this issue Sep 1, 2023 · 1 comment · Fixed by #3862
Assignees

Comments

@andreyaksenov
Copy link
Contributor

andreyaksenov commented Sep 1, 2023

Previous step: #3851

Product: Tarantool
Since: 3.0
Root document:

SME: @ Totktonada

Details

Update the existing tutorials to using a new config.
See the examples in the Replicaset section: https://www.notion.so/tarantool/Getting-Started-with-3-0-03d461efc01c43dd9e09f2bc4903717b

Failover modes: https://github.com/tarantool/tarantool/blob/941a85c39735b789914da04acad3faabd63b5dd6/src/box/lua/config/instance_config.lua#L1068

Election mode (individual nodes):
https://github.com/tarantool/tarantool/blob/941a85c39735b789914da04acad3faabd63b5dd6/src/box/lua/config/instance_config.lua#L1174

Script: https://docs.google.com/document/d/1FoKXJJ3rzhe2D5k6wKrg8uugO8MFs1riREhtcK1hc0U/edit?usp=sharing

Manual failover notes

from @ totktonada:

No leader or leader: null is an important case. A usual master-replica switch process assumes a short period, when all the instances are in RO.

A correct master switch in the failover: manual mode would involve the following steps:

  1. Remove the leader key or set it to null.
  2. Wait until all the data goes to the future master (compare vclock values).
  3. Set the new leader using the leader key.

(BTW, things are pretty same for the failover: off mode if a single master at time is assumed.)

@andreyaksenov
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant