-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sync configs between units #258
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dpe-4595-slow-config #258 +/- ##
========================================================
+ Coverage 70.31% 70.79% +0.48%
========================================================
Files 7 7
Lines 1179 1178 -1
Branches 212 209 -3
========================================================
+ Hits 829 834 +5
+ Misses 273 268 -5
+ Partials 77 76 -1 ☔ View full report in Codecov by Sentry. |
src/relations/peers.py
Outdated
self.charm.render_pgb_config(reload_pgbouncer=True) | ||
self.unit_databag["readonly_dbs"] = readonly_dbs_hash |
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 the hash for readonly_dbs
needed? I don't see it when checking for hashes on src/relations/pgbouncer_provider.py
.
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.
At the moment, not really. I was thinking of only reloading when content changes, but we'll need to keep track of the auth file secret as well and reloading the service should be cheap. I'll remove it for now.
Issue
Solution