Skip to content

reduce the min number of db conn#222

Merged
vincentsarago merged 3 commits intomainfrom
patch/reduce-min-db-conn
Apr 7, 2025
Merged

reduce the min number of db conn#222
vincentsarago merged 3 commits intomainfrom
patch/reduce-min-db-conn

Conversation

@vincentsarago
Copy link
Copy Markdown
Member

closes #219

@vincentsarago vincentsarago requested review from bitner and hrodmn April 3, 2025 21:44
Copy link
Copy Markdown
Collaborator

@hrodmn hrodmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense as a default setting for this application but I will have to investigate how it interacts with pgbouncer in eoapi-cdk.

@vincentsarago
Copy link
Copy Markdown
Member Author

@hrodmn in eoapi-cdk we set the min/max db conn to 1 because each lambda function will be used only by one request

@bitner
Copy link
Copy Markdown
Collaborator

bitner commented Apr 7, 2025

With pgbouncer, min/max db conn should just be 1 as pgbouncer will be managing any pooling.

@vincentsarago vincentsarago merged commit 34d0fad into main Apr 7, 2025
7 checks passed
@vincentsarago vincentsarago deleted the patch/reduce-min-db-conn branch April 7, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reduce min connection to 1

3 participants