-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Disable automaxprocs log #13800
Disable automaxprocs log #13800
Conversation
Signed-off-by: tennix <ztennix@gmail.com>
/run-check_dev |
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
/bench +tpch
|
Benchmark Report
@@ Benchmark Diff @@
================================================================================
--- tidb: 18fbe2d483dbbf8bdea4735e579d7914ebc8ac42
+++ tidb: f20fa88ce4b1c298df4756d2c1589737278299e7
tikv: 61af99da5a3760b4a4ae8c432e1b7953e10531c2
pd: be73a29742cf3cc8d7cc401e169372254ca12bcb
================================================================================
10.sql duration: 9882.88 ms ± 3.15% (std=224.72) delta: 0.88% (p=0.313) |
Signed-off-by: tennix <ztennix@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #13800 +/- ##
===========================================
Coverage 80.1665% 80.1665%
===========================================
Files 474 474
Lines 117075 117075
===========================================
Hits 93855 93855
Misses 15820 15820
Partials 7400 7400 |
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
/run-all-tests |
/run-all-tests |
@tennix merge failed. |
Signed-off-by: tennix ztennix@gmail.com
What problem does this PR solve?
After introducing automaxprocs in #13340, now tidb-server will always log a message
2019/11/28 14:18:22 maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined
at startup which is annoying. This PR resolves this problem.What is changed and how it works?
According to this uber-go/automaxprocs#18 and uber-go/automaxprocs#19. We can disable this annoying log by importing
go.uber.org/automaxprocs/maxprocs
and set the logger to a noplog.Check List
Tests
Now the annoying log disappears whenever runs tidb-server. And the
GOMAXPROCS
is still set automatically.Code changes
None
Side effects
None
Related changes
Release note