-
Notifications
You must be signed in to change notification settings - Fork 455
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
construct service once and have it shared by tchannel and http servers #1420
Conversation
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.
Mostly LGTM, just two comments:
Hard to tell from C.I but you have these minor lint issues which is why its failing:
src/dbnode/network/server/httpjson/node/server.go:38:2:warning: unused struct field github.com/m3db/m3/src/dbnode/network/server/httpjson/node.server.ttopts (structcheck)
--
| src/dbnode/network/server/httpjson/node/server.go:38:2:warning: field ttopts is unused (U1000) (unused)
Also, now that we've fixed this, could you bump the size of the the constant writeBatchPooledReqPoolSize
from 1024
to 4096
? The reason I discovered this issue is I wanted to make that constant bigger and then I noticed we were allocating the pools twice.
Ideally the pool size would be controlled by config, but changing the constant is good enough for now.
Codecov Report
@@ Coverage Diff @@
## master #1420 +/- ##
========================================
+ Coverage 70.6% 70.8% +0.2%
========================================
Files 835 833 -2
Lines 71788 71492 -296
========================================
- Hits 50695 50650 -45
+ Misses 17782 17534 -248
+ Partials 3311 3308 -3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1420 +/- ##
======================================
Coverage 70.9% 70.9%
======================================
Files 834 834
Lines 71677 71677
======================================
Hits 50830 50830
Misses 17526 17526
Partials 3321 3321
Continue to review full report at Codecov.
|
I will make another diff for change default pool size. Maybe also make the pool size configurable. |
No description provided.