Skip to content
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

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Conversation

dragomirp
Copy link
Contributor

Issue

Solution

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 70.79%. Comparing base (a306be0) to head (9acc69e).

Files Patch % Lines
src/relations/pgbouncer_provider.py 64.28% 3 Missing and 2 partials ⚠️
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.
📢 Have feedback on the report? Share it here.

self.charm.render_pgb_config(reload_pgbouncer=True)
self.unit_databag["readonly_dbs"] = readonly_dbs_hash
Copy link
Member

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.

Copy link
Contributor Author

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.

@dragomirp dragomirp marked this pull request as ready for review June 19, 2024 19:45
@dragomirp dragomirp merged commit ae37eee into dpe-4595-slow-config Jun 19, 2024
38 checks passed
@dragomirp dragomirp deleted the dpe-4595-sync-configs branch June 19, 2024 19:45
dragomirp added a commit that referenced this pull request Jun 20, 2024
* Immediate connection on database created

* Sync configs between units (#258)

* Sync configs between units

* Remove readonly db hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants