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

perf: increase MAX_OVERFLOW of database connection pool. #1921

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

shaohuzhang1
Copy link
Contributor

build: remove pyc compilation.
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
perf: increase MAX_OVERFLOW of database connection pool.

Copy link

f2c-ci-robot bot commented Dec 26, 2024

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

f2c-ci-robot bot commented Dec 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -111,7 +111,7 @@ def get_db_setting(self) -> dict:
"ENGINE": self.get('DB_ENGINE'),
"POOL_OPTIONS": {
"POOL_SIZE": 20,
"MAX_OVERFLOW": 5
"MAX_OVERFLOW": 80
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The provided code has a minor issue with the MAX_OVERFLOW setting. The current value is 5, but you've suggested an increase to 80.

Suggestion: Consider increasing the MAX_OVERFLOW to accommodate potential spikes in database usage. However, adjust this based on your specific application's needs and how often database queries might spike. A higher value means that more connections can be opened when needed, which ensures efficient use of resources without frequent connection creation/destruction cycles.

@liqiang-fit2cloud liqiang-fit2cloud merged commit 0459eed into main Dec 26, 2024
4 checks passed
@liqiang-fit2cloud liqiang-fit2cloud deleted the pr@main@increase_max_overflow branch December 26, 2024 10:36
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