Skip to content

Conversation

locker
Copy link
Member

@locker locker commented Jun 11, 2025

Currently, cluster:sync() leaves instances removed from the config in the instance list. This makes cluster:reload() fail because it tries to reload the config for all instances including those that are not in the config anymore. To fix that, let's make cluster:sync() move instances that were removed from the config to the special expelled instance list so that they become inaccessible via cluster but are still dropped by cluster:drop().

Also, let's add the new boolean option start_stop for cluster:sync(). If set, cluster:sync() will stop old servers and start new ones.

Closes #423

@Totktonada Totktonada assigned locker and unassigned Totktonada Jun 23, 2025
@locker locker force-pushed the cluster-sync-fix branch from f21b8ae to 163c7d4 Compare July 18, 2025 09:59
@locker locker changed the title cluster: drop instances removed from config in cluster.sync cluster: expel instances removed from config in cluster.sync Jul 18, 2025
@locker locker requested a review from Totktonada July 18, 2025 10:01
@locker locker assigned Totktonada and unassigned locker Jul 18, 2025
@Totktonada Totktonada removed their assignment Jul 23, 2025
@locker locker self-assigned this Jul 24, 2025
Currently, cluster:sync() leaves instances removed from the config in
the instance list. This makes cluster:reload() fail because it tries
to reload the config for all instances including those that are not
in the config anymore. To fix that, let's make cluster:sync() move
instances that were removed from the config to the special expelled
instance list so that they become inaccessible via cluster but are still
dropped by cluster:drop().

Also, let's add the new boolean option start_stop for cluster:sync().
If set, cluster:sync() will stop old servers and start new ones.

Closes tarantool#423
@locker locker force-pushed the cluster-sync-fix branch from 163c7d4 to 1df9d5e Compare July 24, 2025 11:57
@locker locker requested a review from Totktonada July 24, 2025 11:58
@locker locker assigned Totktonada and unassigned locker Jul 24, 2025
@Totktonada Totktonada removed their assignment Jul 24, 2025
@locker locker merged commit 83b5e41 into tarantool:master Jul 24, 2025
8 checks passed
@locker locker deleted the cluster-sync-fix branch July 24, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support removal of instances from test cluster
2 participants