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

add sync_priority as sorting criteria to sync ReplicaList #3062

Closed
wants to merge 1 commit into from

Conversation

XiuhuaRuan
Copy link
Contributor

To make sync_standby list more stable when changing synchronous_node_count, I add sync_priority as sorting criteria to sync ReplicaList following sync_state and lsn. This PR is to solve issue #3061. Please help review if such change is OK and has no potential issues. Thanks.

Copy link
Collaborator

@CyberDem0n CyberDem0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no value in ordering by sync_priority.
The thing is, that Patroni enforces the number of nodes required to be synchronous to always match with the number of nodes listed in the synchronous_standby_names. Effectively these nodes are treated equally, no matter what sync_priority value they have (which is IIRC assigned from the position in the synchronous_standby_names).

@hughcapet hughcapet closed this May 21, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants