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

Move branched db detection to the sentinel #217

Closed
sgotti opened this issue Dec 3, 2016 · 1 comment
Closed

Move branched db detection to the sentinel #217

sgotti opened this issue Dec 3, 2016 · 1 comment
Assignees
Milestone

Comments

@sgotti
Copy link
Member

sgotti commented Dec 3, 2016

Currently it's the keeper that detects if a db is branched from its master. We want to change this:

  • move the detection to the sentinel
  • have the sentinel, when it detects a branched db, remove the bad db from the clusterdata and create a new db with a db InitMode of type resync. The keeper will converge to the sentinel required state (and it'll continue to use pg_rewind when possible and enabled).

This has different advantages:

@sgotti sgotti added this to the v0.5.0 milestone Dec 3, 2016
@sgotti sgotti self-assigned this Dec 3, 2016
@sgotti
Copy link
Member Author

sgotti commented Dec 6, 2016

Implemented in #218.

@sgotti sgotti closed this as completed Dec 6, 2016
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

1 participant