Skip to content

Conversation

@TylerLubeck
Copy link

This PR makes the pgbouncer deployment size configurable via helm chart. The linked issue raises concerns about running multiple pgbouncers - I believe this to only be the case when running them on a the same physical (or vm, etc) machine, and not in a kubernetes deployment.

I don't believe this will provide perfect HA - for that, anyone who raises this replica count should also be sure to enable the associated PDB to ensure some number of pgbouncer pods are always running. This also doesn't prevent breakages for anything with an active connection to pgbouncer - when one of these pods dies, those connections will be severed and will have to reconnect.

Closes #24954

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Sep 7, 2022
"description": "Number of pgbouncer pods to deploy",
"type": "integer",
"x-docsSection": "PgBouncer",
"default": 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"default": 1,
"default": 1

Static checks and tests are failing. I believe this extra , could be the reason making it an invalid json.

@potiuk
Copy link
Member

potiuk commented Sep 18, 2022

Yep. needs rebasing + fixing tests.

@jedcunningham
Copy link
Member

#27439 made this configurable. Thanks @TylerLubeck for the PR.

@crotielwf
Copy link

is it working in helm-charts?

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.

Multiple pgbouncer instances using the helm chart

5 participants