-
Notifications
You must be signed in to change notification settings - Fork 261
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
Plumb CLI arg to control number of TVU receive threads/sockets #550
Conversation
1f09442
to
1824566
Compare
The parameter directly controls the number of sockets that are created; the sockets later have one thread created per socket to listen.
1824566
to
b33f88f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #550 +/- ##
=======================================
Coverage 81.8% 81.8%
=======================================
Files 846 846
Lines 229148 229158 +10
=======================================
+ Hits 187552 187569 +17
+ Misses 41596 41589 -7 |
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.
looks good for the most part. just some questions about unsafe
and naming
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!
Can this tuning be done by modifying the source and building from the source? The downside I see with exposing these as the validator flags is that a) it makes validator flags even more crowded b) it makes it possible for node operators misspecifying these flags and causing more support burden. |
Fair point. However, I'll add this flag is currently hidden, as are the other num-thread arguments (such as the IP echo server one I pushed not too long ago).
I think the argument being hidden mitigates some of this concern;
Hypothetically, yes. Even though I'm creating this as a CLI arg, a subsequent PR would be to adjust the default to a well-tuned value after sufficient testing. That tuning could be done by adjusting the value and rebuilding from source as you mentioned That being said, I still think there are some pros to having it configurable on the CLI (even if it is hidden and we have a "tuned" value as the default):
|
@behzadnouri - Did my latest response about the CLI arg being hidden address your concern ? |
No objections to merging. |
…xyz#550) The parameter directly controls the number of sockets that are created; the sockets later have one thread created per socket to listen.
Problem
Want to be able to tune the number of sockets / streamer receiver threads we use to listen on the TVU port.
See #105 for more context
Summary of Changes
Plumb the number of TVU sockets to create from validator CLI. No change in behavior by default, the new named constant
DEFAULT_NUM_TVU_SOCKETS
has the same value (8) as a constant that previously resided withinNode::new_with_external_ip()