memory, config: reject connections when memory usage is high#1120
memory, config: reject connections when memory usage is high#1120ti-chi-bot[bot] merged 8 commits intopingcap:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1120 +/- ##
=======================================
Coverage ? 67.29%
=======================================
Files ? 149
Lines ? 16106
Branches ? 0
=======================================
Hits ? 10838
Misses ? 4530
Partials ? 738
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@codex review |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: YangKeao The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/cherry-pick release-nextgen-202603 |
|
@djshow832: new pull request created to branch DetailsIn response to this:
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 ti-community-infra/tichi repository. |
|
/cherry-pick release-1.3 |
|
@djshow832: new pull request created to branch DetailsIn response to this:
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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #1119
Problem Summary:
TiProxy may OOM when the connection count is too large
What is changed and how it works:
Check List
Tests
The memory usage and connection count increased to a fixed value:

The server shows connections are rejected:

The client failed to connect anymore:

After restarting the client, the client can connect again
Notable changes
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.