Skip to content
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

Fallback Policy for Replicas #47

Open
amanhigh opened this issue Aug 30, 2021 · 0 comments
Open

Fallback Policy for Replicas #47

amanhigh opened this issue Aug 30, 2021 · 0 comments
Assignees

Comments

@amanhigh
Copy link

Describe the feature

Currently only available policy is random. We need a fallback policy where incase first replica fails we need to fallback to second replica.

Eg.
Source: M1 (master 1)
Replicas: R1 (Replica 1), R2 (Replica 2)

  • Normal Scenario - Writes Served by M1, Reads Served by R1
  • Disaster Master Down - Writes don't work, Reads Served by R1
  • R1 Promoted to Master (R1 becomes M1) - Writes Served by M1, Reads Fail.
    In this Scenario we want Reads to Shift to R2.

First two scenarios are currently handled we need fallback policy for third scenario.

We have replicas which would be in process of updation to master in case of a disaster. Thus first replica may become unavailable while second replica continues to function. In such scenario a Fallback policy would be required.

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

No branches or pull requests

2 participants