Skip to content
Snippets Groups Projects
Commit e977efae authored by Mergen Imeev's avatar Mergen Imeev Committed by Alexander Turenko
Browse files

config: support master auto-discovery in vshard

This patch adds support for automatic master discovery in vshard. There
is no longer a need to reapply the vshard storage configuration every
time an instance becomes a master or ceases to be a master.

Automatic master discovery also solves the problem with the rebalancer.
Previously, the rebalancer could not work correctly if the masters of
some replicasets were unknown, and since the vshard config generated by
the config module did not contain information about all the masters, the
rebalancer was disabled. The rebalancer can now perform master discovery
on its own, which is why it is enabled.

Before this patch, the config module was based on the
"test: use dofile() for configs instead of require" commit in vshard.
At a minimum, commit "storage: fix assertion error in conn_manager" is
now required.

Part of #8862

NO_DOC=will be added along with documentation for the rebalancer role
NO_CHANGELOG=will be added along with changelog for the rebalancer role
parent e2851883
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment