Skip to content
Snippets Groups Projects
  1. Sep 30, 2019
  2. Sep 11, 2019
  3. Aug 29, 2019
  4. Jul 31, 2019
  5. Jul 26, 2019
  6. Jul 20, 2019
  7. Jul 19, 2019
  8. Jul 16, 2019
    • Lawrence Jones's avatar
      Fix for hanging sentinels · beadd2ae
      Lawrence Jones authored
      If etcd returned an error, our previous behaviour would be to report the
      error and restart an election. The outer loop never responded to the
      error by stopping the election, which would cancel the context, and
      instead would restart a new campaign.
      
      The first campaigns session will continue to exist on the context the
      election loop had originally provided it, which is context.Background.
      We'll come round to perform a new leadership election and the
      etcdElection.Campaign() method will block waiting for all existing
      leased keys to be removed from the prefix. Because the old campaign
      sessions are still alive, they'll continue to renew their leases and
      ensure those revisions never get deleted, thus blocking our sentinel
      campaign loop indefinitely.
      
      After discussion in #659, it became clear that most of the store
      implementations are likely to have similar issues, and instead of fixing
      the underlying implementations we decided to amend the interface to warn
      consumers that they need to terminate existing elections before starting
      new ones.
      
      This is a sharp edge of the election API and one that might catch us in
      a future refactor. This is balanced against a hope that we'll refactor
      the election interface before a second use case is likely to arise.
      beadd2ae
  9. Jul 03, 2019
  10. Jun 18, 2019
    • Harry Maclean's avatar
      Enable progress reporting for pg_basebackup · 393b5126
      Harry Maclean authored
      
      This will cause pg_basebackup to output some extra steps during startup
      and shutdown. If progress reporting is also enabled (-P) then it will
      show the exact file name that is currently being processed. This can be
      useful for debugging and monitoring the backup process.
      
      Combined with verbose mode (-v) this will give detailed information on
      what files are being processed and how far through the backup we are.
      There's a slight initial time cost introduced as Postgres has to
      determine the total database size, but this should be minimal compared
      to the backup time.
      
      Co-authored-by: default avatar <me@lawrencejones.dev>
      Co-authored-by: default avatar <harrymaclean@gmail.com>
      393b5126
  11. Jun 13, 2019
  12. Jun 10, 2019
    • Lawrence Jones's avatar
      Label cluster identifier with component · 87f80d8a
      Lawrence Jones authored
      [^1]: https://github.com/gocardless/stolon-pgbouncer/pull/46
      
      The stolon_cluster_identifier metric is universal to all stolon
      components, and can be used to join metric series across a stolon
      cluster. By adding the component label, it's possible to write
      polymorphic alerts that expose the component name when firing.
      
      This change also registers the metric in the sentinel and proxy, as it
      should be present in all long-lived binaries. This accompanies a change
      in stolon-pgbouncer to do the same.
      87f80d8a
  13. Jun 07, 2019
  14. Jun 06, 2019
  15. Jun 05, 2019
  16. Jun 04, 2019
  17. Jun 03, 2019
  18. May 31, 2019
  19. May 28, 2019
  20. May 27, 2019
    • Simone Gotti's avatar
      *: update to go1.12 · 157802bb
      Simone Gotti authored
      Update travis and use external go vet shadow tools since it's not included in
      the go vet command
      157802bb
Loading