New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaling #16
Conversation
…rator into remove-userlist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - left some comments here and there, nothing significant though
src/charm.py
Outdated
"""Charmed PgBouncer connection pooler.""" | ||
"""Charmed PgBouncer connection pooler. | ||
|
||
TODO the flow of this charm is getting a bit convoluted. The backend relation has to be ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not something to worry if you have a clear view on the conditions that are required at each step.
Making the conditions to run a hook (or defer when not met) as clear as possible will suffice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I'd still like to try and simplify it but I'll document the requirements in the hook docstrings.
|
||
from constants import AUTH_FILE_PATH, INI_PATH, PG_USER, PGB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is PGB
the app name?
from constants import AUTH_FILE_PATH, INI_PATH, PG_USER, PGB | |
from constants import AUTH_FILE_PATH, INI_PATH, PG_USER, PGB_APP_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the pgbouncer service name, so it's "pgbouncer"
, whereas the app name is "pgbouncer-k8s"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A couple comments
Proposal
Jira issue: DPE-472
This PR allows PgBouncer to scale to multiple units.
Context
Release Notes
Testing