dc-dr: pin-standby says role pin, not data freeze - #839
Open
tamalsaha wants to merge 1 commit into
Open
Conversation
The help promised that a held DC's coordinator refuses destructive cross-DC rewinds or re-seeds of the data it holds. That is no longer true: standby-hold pins the role and the cross-DC loss budget protects the data, the same budget that protects every other data center. Leaving the old wording would be worse than the old behaviour, since an operator would believe in a freeze that no longer exists. Signed-off-by: Tamal Saha <tamal@appscode.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
pin-standbytold the operator, in both the help text and the runtime confirmation, that the hold "refuses destructive cross-DC rewinds of its data".That stopped being true when standby-hold became a ROLE pin rather than a data freeze (pg-coordinator #270). The hold now stops a data center becoming primary; it does not stop that data center repairing its own data directory. Repairs are bounded by the same cross-DC loss budget that protects every other DC.
An operator reading the old text would conclude their data directory is frozen, which is the opposite of what the pin now guarantees, and would draw the wrong conclusion about what the pin protects them from.
Both strings are corrected:
pin-standby --help: the long description now states the role pin explicitly, says the data is still repaired within the loss budget, and names when a repair IS refused (more WAL than the budget allows, or a distance that cannot be measured).Found by running the real command against a live cluster rather than reading the source: the help text and the runtime message are separate strings and only one of them had been noticed.