-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 the http api and new configuration members for ballast object #29121
Conversation
Signed-off-by: Sen Han <00hnes@gmail.com>
A better error description when the input ballast-object-sz from the POST body is negative. Co-authored-by: Lei Zhao <zlwgx1023@gmail.com>
[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. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b31be95
|
What problem does this PR solve?
Try to reduce the GC frequency on some occasions.
What is changed and how it works?
Add a ballast object.
Here are some articles and documentation.
SetGCPercent
Go memory ballast: How I learned to stop worrying and love the heap
proposal: runtime: add a mechanism for specifying a minimum target heap size
In a typical OLTP scenario, 2GB ballast could bring tps ~+16.8%, latency ~-13.5%, cpu ~-16.3%.
Check List
Tests
Side effects
Documentation
Release note