Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster formation decision depends on initial_hosts contents
This change makes it so only instances listed in initial_hosts are considered for purposes of forming a cluster. This allows mismatching initial_hosts contents to be manipulated to make it harder for instances to start a cluster, for example slave_only instances to depend on the presence of a master but the master to be allowed to form the cluster regardless of the presence of other instances. The functionality is achieved with the introduction of a (backwards compatible) discovery header in the configurationRequest messages which keeps track of which instance has contacted which during the initial discovery round. Since sending of these messages depends only on the initial_hosts content, this effectively allows for filtering of configurationRequests based on initial_host content.
- Loading branch information
1 parent
eaaca44
commit e7c48eb
Showing
6 changed files
with
373 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.