PgbConnectionReaper

Library to trigger periodic disconnection for Elixir apps using pgbouncer, so that pgbouncer pods on k8s can gracefully shut down, once all client disconnected and reconnected to healthy pods.

Installation

If available in Hex, the package can be installed by adding pgb_connection_monitor to your list of dependencies in mix.exs:

def deps do
  [
    {:pgb_connection_reaper, "~> 0.1.3"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pgb_connection_reaper.