-
Notifications
You must be signed in to change notification settings - Fork 1k
[WIP] Connection pooler #799
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
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
fb43ee9
WIP Connection pooler support
erthalion 4c69b2b
Improve cleaning up
erthalion 2b2f29f
Add CRD configuration
erthalion b40ea2c
Add more tests
erthalion 6c37520
Various improvements
erthalion 55873f0
Add test for both ways to enable connection pool
erthalion b66b163
add validation for postgresql CRD
FxKu f2c9905
reflect connectionPool validation in Go code and publish in manifests…
FxKu 6dad833
Cleanup configuration
erthalion be438b7
WIP Connection pooler support
erthalion c028be4
Improve cleaning up
erthalion 7254039
Add CRD configuration
erthalion 8bd2086
Add more tests
erthalion 3ff1147
Various improvements
erthalion 82e9d40
Add test for both ways to enable connection pool
erthalion 17d077e
add validation for postgresql CRD
FxKu f0ceafa
reflect connectionPool validation in Go code and publish in manifests…
FxKu 2384e1e
Cleanup configuration
erthalion c9a1c8e
add enableConnectionPool to validation and some nior fixes
FxKu 99f2b03
add enableConnectionPool to validation and some nior fixes
FxKu 4f2457b
clean up merge conflict
FxKu 6ddac2f
update codegen
FxKu e266484
Add a real pgbouncer image
erthalion e11f787
Rename replicas to avoid potential confusion about terminology
erthalion 8a81bc7
Capture output for debugging purposes
erthalion 898d441
And output the resulting completed process
erthalion 447a659
Report status in e2e
erthalion 0095be0
Fix uninitialized ConnectionPool structure usage
erthalion a9d02ba
Address review
erthalion 515bb2d
Address review, add ConnectionPool init for sync
erthalion 4add317
Merge branch 'master' into feature/connection-pooler
erthalion 35d82e5
Do sync also when there are no deployment
erthalion 97217e2
Delete if a new specification is nil
erthalion 6612933
Adjust sync logic
erthalion 2afaa59
update code-gen
FxKu cf85db5
merge with master and resolve conflict
FxKu 619c543
E2E tests for connection pool
erthalion 3e98832
Add more tests
erthalion 037d712
Sync due to defaults
erthalion 918df14
Add possibility to set max db connections
erthalion 2bba673
update codegen
FxKu 4d12615
reflect new pooler parameter in validation + define same pooler image…
FxKu e0df9de
Sync in case of missing deployment
erthalion a38a5aa
Add test for sync with flag
erthalion 07adaf2
Extend labels for connection pool
erthalion f1646c8
minor changes to docs and manifests
FxKu e645ca5
Prevent original labels from update
erthalion ab118dd
Prevent operator from wrongly syncing pooler user
erthalion 80fee17
Various fixes
erthalion e6f1e8b
Merge branch 'master' into feature/connection-pooler
erthalion 2e02379
Fix tests
erthalion c0a840c
Sync other way around
erthalion 6d1a1ea
Fix role sync if default pool user/schema changed
erthalion 4d61adf
Merge branch 'master' into feature/connection-pooler
erthalion cf6541b
Address feedback
erthalion 1c7065e
Address feedback
erthalion 48cdbb6
Minor improvements
erthalion 20b2fb4
Defaults for user/schema fix
erthalion 6ae3c3d
Adjust default resource configuration
erthalion f839806
Address feedback
erthalion 7a9d898
Set min number of instances to 2
erthalion 1ca8028
use min instances 2 everywhere and update reference docs
FxKu 0aff65e
fix typo
FxKu bdb3eaf
some more minor changes
FxKu b0f5347
update pooler default image and add explanation for maxDBConnections …
FxKu 21af410
lower CPU request and update docs
FxKu 9f51d73
Use connection pool labels
erthalion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ rules: | |
- apps | ||
resources: | ||
- statefulsets | ||
- deployments | ||
verbs: | ||
- create | ||
- delete | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do these params take into account the
set_memory_request_to_limit
parameter ?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.
No, but I don't think they need to - probably it makes sense to make those always equal just by default, since connection pooler resource requirements are usually rather stable.