-
Notifications
You must be signed in to change notification settings - Fork 20
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
make max_connections
configurable via the charm
#359
Comments
this is an important config for operators and the fact that it was removed is quite strange... (this option was there in the older postgresql charms) |
Dear @nishant-dash , thank you for your ticket!
Thank you for noticing and reporting this issue! |
Ok, I see. |
@7annaba3l we need to update (your?) decision for not exposing |
any update on this? we need to roll out landscape to multiple clouds and this is blocking it unfortunately. Our existing deployments are breaking until we cowboy patch the charm to make max connections higher |
@nishant-dash, copy here from MM (to share with a team).
Feel free to check https://www.percona.com/blog/scaling-postgresql-with-pgbouncer-you-may-need-a-connection-pooler-sooner-than-you-expect/ for more details about PG connections and PGB. I will keep the bugreport opened until you confirm pgbouncer is OK for your use-case. Tnx! |
Hi @taurus-forever In the meantime, we will try redeploying landscape with pgbouncer in between from the beginning |
Hi, I'm not sure pgbouncer will work out of the box, since landscape uses multiple databases. |
This is correct. In my testing, pgbouncer charm does not work out-of-the-box because of the multiple (six) database requirements of landscape-server. Either we need support for multiple databases in pgbouncer, or direct support for configuring |
Just wanted to mention that auto tuning of database configurations with multiple parameters is hard. The mysql(-k8s) charm logic is also in question. |
It is an provisional response: Data Team is actively working to add pgbouncer compatibility for Landscape (multiple databases support). It should solve the lack of With the proper luck amount we will share PoC this week, please stay tuned. Tnx! CC: @Perfect5th @nobuto-m |
Hi, @nishant-dash, @Perfect5th, There is a development version of our pgbouncer charm on
Please give it a try. |
Hey @dragomirp , Thanks for that! How do you propose we deploy that to an existing setup of an application consuming postgresql (since we'll have to effectively cut the relation between the app, landscape server in this case, and postgres)? |
Hi, @nishant-dash, this is a development branch for testing, I wouldn't recommend deploying that to production environment before it hits at least edge. Once we have confidence that pgbouncer can solve our issues, deployments that need it will have to be rerelated with pgbouncer in between. |
Hello @dragomirp , (and also @Perfect5th ) Its not about deploying it to production but about testing it. The way I see it, the most accurate set of steps to test this would be
This is because for a variety of IN-USE deployments, we need to do these steps. To that end I am asking about step 3, is there a safe way to do it? I can obviously redeploy the entire landscape stack with pgbouncer from the beginning but I would like to avoid that if possible. |
Hi, @nishant-dash, the pgbouncer charm implements the same interfaces as the postgresql charm. Step 3 would involve removing the relation between postgresql and landscape, relate pgbouncer and postgresql and relate pgbouncer and landscape on the |
I did some light manual testing that I based primarily on the tests written here and other steps proposed in the issue. Things looked pretty good to me, in that I can confirm that I wasn't hitting the max-connections issues that I'd seen without pgbouncer. I didn't do any sort of testing under large load, but I did enough interactions to I think reasonably conclude that this is working well. I did need to |
@Perfect5th thank you for the good news! Can you please share more details about: Separate topic, please include the next roadmap a migration from legacy inteface |
@taurus-forever sorry I'm not exactly sure what happened, but I can try to reproduce later. After changing the relation to use pgbouncer, the landscape-server application went into the I'll make sure Landscape has it in our roadmap to stop using the legacy interface. |
on another note @taurus-forever , |
The config option name as That means a working bundle or Terraform plan will be invalidated at some point. Could we rename it to something like I left a similar comment to MySQL one. canonical/mysql-operator#429 (comment)
|
Dear @nobuto-m , re: |
Dear @nobuto-m , please discuss the option naming with @7annaba3l directly. The option I am resolving this bug-report as the config option has been created and released to |
Steps to reproduce
In the setup, landscape makes a lot of connections and we need to increase the max connections beyond the default
100
Expected behavior
N/A
Actual behavior
N/A
Versions
Operating system: DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
Juju CLI: 2.9.46
Juju agent: 2.9.46
Charm revision: 351
LXD: N/A
Log output
Juju debug log: N/A
Additional context
Landscape logs
The text was updated successfully, but these errors were encountered: