Best configuration to tackle failover #2019
Replies: 1 comment 5 replies
-
The way I handle this in a production environment + go-pg is to use something like pgbouncer infront of the actual database instances. If failover is fast enough this can be sufficient for relatively invisible failovers to end users. However other ways are to use two instances of go-pg, one with a connection to a read only pool of PostgreSQL instances with pgbouncer in front of them. As well as an additional go-pg instance that connects to the primary instance (also with pgbouncer). This way in the event of a failover, writes may experience a brief hiccup while pgbouncer transitions to the new primary; but read only workloads should be relatively uninterrupted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As the title says, anyone here have any idea to configure options to tackle failover?
Beta Was this translation helpful? Give feedback.
All reactions