-
Notifications
You must be signed in to change notification settings - Fork 4.6k
check OS network limits when starting validator #20874
Conversation
validator/src/main.rs
Outdated
let err_msg = "OS network limit test failed. If you wish to continue, try --no-os-network-limits-test"; | ||
error!("{}", err_msg); | ||
eprintln!("{}", err_msg); | ||
exit(1); |
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.
I'm a little worried this is too aggressive. How about emitting a datapoint instead of failing here, so we can see how many validators get snagged here first
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.
Same. If the metric is out of control we can remediate it down to a more comfortable level before adding the boot
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.
Wanted to get an opinion on this. Changed to log a datapoint.
validator/src/main.rs
Outdated
let err_msg = "OS network limit test failed. If you wish to continue, try --no-os-network-limits-test"; | ||
error!("{}", err_msg); | ||
eprintln!("{}", err_msg); | ||
exit(1); |
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.
Same. If the metric is out of control we can remediate it down to a more comfortable level before adding the boot
Codecov Report
@@ Coverage Diff @@
## master #20874 +/- ##
=========================================
+ Coverage 81.4% 81.5% +0.1%
=========================================
Files 531 496 -35
Lines 141636 139627 -2009
Branches 295 0 -295
=========================================
- Hits 115312 113928 -1384
+ Misses 26224 25699 -525
+ Partials 100 0 -100 |
Problem
solana-sys-tuner
can be used to increase linux network buffer sizes, but we do not check that these values have been applied.Summary of Changes
Check that linux network buffer sizes have been increased in validator start. Checks can be bypassed with
--no-os-network-limits-test
.Fixes #