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
tidb-server: make max-procs in config file take effect under cgroups #17706
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17706 +/- ##
===========================================
Coverage 79.4719% 79.4719%
===========================================
Files 524 524
Lines 141436 141436
===========================================
Hits 112402 112402
Misses 19963 19963
Partials 9071 9071 |
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.
LGTM
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.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@bobotu merge failed. |
/merge |
/run-all-tests |
@bobotu merge failed. |
/merge |
/run-all-tests |
/run-cherry-picker |
cherry pick to release-4.0 in PR #19094 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
What problem does this PR solve?
Problem Summary:
In case the user wants to change this value under cgroups, the
maxprocs.Set
will overwrite the user's settings in the config file.What is changed and how it works?
Call
runtime.GOMAXPROCS(int(cfg.Performance.MaxProcs))
aftermaxprocs.Set
.Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tidb-ansible
:Release note