Skip to content

fix(pgbouncer): avoid infinite pgbouncer pod delete cycle#29

Open
jwnx wants to merge 1 commit intoflyio-2.6.0from
jwnx/avoid-infinite-pgbouncer-delete-cycle
Open

fix(pgbouncer): avoid infinite pgbouncer pod delete cycle#29
jwnx wants to merge 1 commit intoflyio-2.6.0from
jwnx/avoid-infinite-pgbouncer-delete-cycle

Conversation

@jwnx
Copy link
Copy Markdown

@jwnx jwnx commented Apr 27, 2026

This patch changes the mechanism we use to ensure pgbouncers are
rescheduled after a leadership change: instead of individually deleting
pods, we change a label in pgbouncer deployment spec, forcing Kubernetes
to replace the pods itself. It's the same mechanism we use to ensure
repo-host has up-to-date secrets.

Signed-off-by: Juliana Oliveira juliana@fly.io

This patch changes the mechanism we use to ensure pgbouncers are
rescheduled after a leadership change: instead of individually deleting
pods, we change a label in pgbouncer deployment spec, forcing Kubernetes
to replace the pods itself. It's the same mechanism we use to ensure
repo-host has up-to-date secrets.

Signed-off-by: Juliana Oliveira <juliana@fly.io>
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