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

Retry pgrewind #14

Closed
wants to merge 4 commits into from
Closed

Retry pgrewind #14

wants to merge 4 commits into from

Commits on Aug 19, 2019

  1. Add pg_rewind interval and timeout to clusterspec

    Allow the setting of the a pg_rewind interval and timeout so that the
    retry behaviour of pg_rewind can be customised. The defualt values if
    these are not set in the clusterspec are 0s which results in the
    current default behaviour of only trying to pg_rewind once if
    usePgrewind is set to true.
    dyson committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    a557e80 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2019

  1. Add retrying to pg_rewind

    GC has implemented cascading replication which requires the retrying of
    pg_rewind to avoid expensive pg_basebackups.
    
    With cascading replication, the old sync is rebooted to repoint the
    recovery at the new primary. The old master will try resyncing against
    the new sync, while it's rebooting, which causes resync to fail. This
    falls back to pg_basebackup meaning the old master doesn't recover
    for several hours.
    dyson committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    1c54b7e View commit details
    Browse the repository at this point in the history
  2. Add pg_rewind checkpoint option to cluster spec

    Make the forcing of a checkpoint on the primary before performing a
    pg_rewind a cluster spec option so that it can be turned on or off.
    dyson committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    4f95347 View commit details
    Browse the repository at this point in the history
  3. Update cluster spec documentation

    Add pgrewindInternal, prgrewindTimeout, and pgrewindCheckpoint to the
    cluster spec documentation.
    dyson committed Aug 21, 2019
    Configuration menu
    Copy the full SHA
    821e93c View commit details
    Browse the repository at this point in the history