Skip to content

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Feb 14, 2018

  • Update the sync standbys only if the reported ones are the same as the required
    ones. In this way, when we have to choose a new master we are sure that there're
    no intermediate changes between the reported standbys and the required ones.

  • When we have to choose a new sync standby as master we can just choose one of
    the common standbys between the reported and the required one since we are sure
    these are defined in the master as sync standbys

  • Improve logic to always have some real sync standbys up to
    MinSynchronousStanbys, also if not in good state, to improve the possibility
    to be able to choose a sync standby to replace a failed master.

  • Always keep a common standby between the previous and the wanted
    synchronousStandbys

@sgotti sgotti force-pushed the sentinel_improve_sync_standby_names_update_logic branch 2 times, most recently from 1e586e6 to f059d9f Compare February 15, 2018 13:03
* Update the sync standbys only if the reported ones are the same as the required
ones. In this way, when we have to choose a new master we are sure that there're
no intermediate changes between the reported standbys and the required ones.

* When we have to choose a new sync standby as master we can just choose one of
the common standbys between the reported and the required one since we are sure
these are defined in the master as sync standbys

* Improve logic to always have some real sync standbys up to
MinSynchronousStanbys, also if not in good state, to improve the possibility
to be able to choose a sync standby to replace a failed master.

* Always keep a common standby between the previous and the wanted
synchronousStandbys
@sgotti sgotti force-pushed the sentinel_improve_sync_standby_names_update_logic branch from f059d9f to fbc44f4 Compare February 23, 2018 10:23
@sgotti sgotti merged commit fbc44f4 into sorintlab:master Feb 23, 2018
sgotti added a commit that referenced this pull request Feb 23, 2018
…es_update_logic

sentinel: improve sync standby management logic
@sgotti sgotti added this to the 0.10.0 milestone Mar 21, 2018
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.

1 participant