Fixes to avoid operator conflict with the sentinel in choosing master #536
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes # .
Changes proposed on the PR:
Currently Operator and Sentinel seems to share similar responsibility in certain conditions ,
this will create conflict and eventually misconfigure the system
For Example:
When a master is not available and sentinel is in the process of taking an action to fix a replica as master,
at the same time if the operator also fixes another replica as a slave , it could end up in a split brain or necessary switch of master between two replicas, moreover sentinel is the right candidate to choose master
and operator should not step in unless sentinel is in a good shape to do its job
The Role of the operator is primarily during initial/First deployments of redis-failover
and also in scenarios where sentinel cannot make a decision