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

Fix wrong pgbouncer toggle #282

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Fix wrong pgbouncer toggle #282

merged 2 commits into from
Dec 16, 2024

Conversation

Kidswiss
Copy link
Contributor

@Kidswiss Kidswiss commented Dec 11, 2024

Summary

Unfortunately we inverted the boolean that enables/disables the pgbouncer.

Currently if service.disablePgBouncer: false is set, it will result in disableConnectionPooling: true in the sgcluster. Which in fact disables the pgbouncer, while it should be enabled in that case.

As both booleans are negative already, they should not be inverted!

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@Kidswiss Kidswiss added the patch label Dec 11, 2024
@Kidswiss Kidswiss requested review from a team, TheBigLee, wejdross and zugao and removed request for a team December 11, 2024 14:00
@Kidswiss Kidswiss force-pushed the fix/default_pgbouncer branch from 5f59224 to 511d7bc Compare December 11, 2024 14:05
Unfortunately we inverted the boolean that enables/disables the
pgbouncer.

Currently if `service.disablePgBouncer: false` is set, it will result in
`disableConnectionPooling: true` in the sgcluster. Which in fact
disables the pgbouncer, while it should be enabled in that case.

As both booleans are negative already, they should not be inverted!
@wejdross wejdross force-pushed the fix/default_pgbouncer branch from 0cf1185 to c463aba Compare December 16, 2024 10:10
@wejdross
Copy link
Member

Ok, I tested it on LAB cluster and since this setting is managed by Stackgres itself, we won't be affected by restarts unless maintenance job is run.

Current state:

with settings: 
    service:
      disablePgBouncer: false

result is => PgBouncer ENABLED

with settings:

    service:
      disablePgBouncer: true

result is PgBouncer => DISABLED

I'd say we're good to go with merge

@wejdross wejdross merged commit 6efad7c into master Dec 16, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants