-
Notifications
You must be signed in to change notification settings - Fork 725
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
Add pd global memory limiter and gctuner #5848
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Hi @hnes. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
/ok-to-test |
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
Codecov ReportBase: 75.35% // Head: 75.12% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5848 +/- ##
==========================================
- Coverage 75.35% 75.12% -0.23%
==========================================
Files 348 358 +10
Lines 35486 36085 +599
==========================================
+ Hits 26741 27110 +369
- Misses 6414 6593 +179
- Partials 2331 2382 +51
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: Sen Han <[email protected]>
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.
The rest LGTM
Signed-off-by: Sen Han <[email protected]>
server/cluster/cluster.go
Outdated
defer tick.Stop() | ||
totalMem, err := memory.MemTotal() | ||
if err != nil { | ||
log.Fatal("fail to get total-mem:%s", zap.Error(err)) |
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.
log.Fatal("fail to get total-mem:%s", zap.Error(err)) | |
log.Fatal("fail to get total memory", zap.Error(err)) |
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.
Thanks a lot.
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.
rest lgtm
server/cluster/cluster.go
Outdated
defer logutil.LogPanic() | ||
defer c.wg.Done() | ||
|
||
tick := time.NewTicker(10 * time.Second) |
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.
better to be a const.
Signed-off-by: Sen Han <[email protected]>
Signed-off-by: Sen Han <[email protected]>
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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. |
This pull request has been accepted and is ready to merge. Commit hash: 9312795
|
What problem does this PR solve?
Issue Number: Close #5827
What is changed and how does it work?
This PR is mainly based on the former support GC tuner PR from @rleungx and the gctuner implementation in TiDB
Check List
Tests
Code changes
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tiup
:Release note