memory, config: reject connections when memory usage is high (#1120)#1136
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@djshow832 This PR has conflicts, I have hold it. |
|
/unhold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djshow832 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:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-1.3 #1136 +/- ##
==============================================
Coverage ? 65.61%
==============================================
Files ? 124
Lines ? 12165
Branches ? 0
==============================================
Hits ? 7982
Misses ? 3641
Partials ? 542
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:
|
This is an automated cherry-pick of #1120
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.