Skip to content

[chart/v1-2x-test] Add terminationGracePeriodSeconds support for PgBouncer in Helm chart (#71237) - #71787

Merged
Miretpl merged 1 commit into
chart/v1-2x-testfrom
backport-0815a27-chart/v1-2x-test
Aug 18, 2026
Merged

[chart/v1-2x-test] Add terminationGracePeriodSeconds support for PgBouncer in Helm chart (#71237)#71787
Miretpl merged 1 commit into
chart/v1-2x-testfrom
backport-0815a27-chart/v1-2x-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The chart ships a default PgBouncer preStop hook that drains client
connections for up to 120 seconds, but the Deployment never sets
terminationGracePeriodSeconds, so the Kubernetes default of 30s SIGKILLs
the pod mid-drain on a node drain or eviction and cuts in-flight client
connections.

Every other long-running component in the chart already exposes this
value; PgBouncer was the only one missing it, despite being the
component that holds the database connections of all the others.

The default of 120 matches the drain window of the default preStop hook.
PgBouncer exits as soon as the last client connection is released, so
the value is an upper bound rather than a fixed wait.
(cherry picked from commit 0815a27)

Co-authored-by: antruigon 99184149+antruigon@users.noreply.github.com
Co-authored-by: Przemysław Mirowski 17602603+Miretpl@users.noreply.github.com

…uncer in Helm chart (#71237)

The chart ships a default PgBouncer preStop hook that drains client
connections for up to 120 seconds, but the Deployment never sets
terminationGracePeriodSeconds, so the Kubernetes default of 30s SIGKILLs
the pod mid-drain on a node drain or eviction and cuts in-flight client
connections.

Every other long-running component in the chart already exposes this
value; PgBouncer was the only one missing it, despite being the
component that holds the database connections of all the others.

The default of 120 matches the drain window of the default preStop hook.
PgBouncer exits as soon as the last client connection is released, so
the value is an upper bound rather than a fixed wait.
(cherry picked from commit 0815a27)

Co-authored-by: antruigon <99184149+antruigon@users.noreply.github.com>
Co-authored-by: Przemysław Mirowski <17602603+Miretpl@users.noreply.github.com>
@Miretpl
Miretpl merged commit 2c4d785 into chart/v1-2x-test Aug 18, 2026
106 checks passed
@Miretpl
Miretpl deleted the backport-0815a27-chart/v1-2x-test branch August 18, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants