-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-31627 Remove legacy central node delay #18775
HPCC-31627 Remove legacy central node delay #18775
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31627 Jirabot Action Result: |
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. Do you want to also delete the #define in jsocket.cpp(75)
By my preliminary tests, this changes improve the performance significantly. |
Some very old redundant code that was not being hit until the HPCC-18382 changes were introduced caused random delays when sockets were connecting in Thor. This was spuriously seen when SORT was connecting merge streams, introducing significant delays overall. Signed-off-by: Jake Smith <[email protected]>
57a8ce6
to
d5574ac
Compare
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 will merge when smoke tests have passed.
unsigned sleeptime = getRandom() % 1000; | ||
StringBuffer s; | ||
ep.getHostText(s); | ||
DBGLOG("Connection to central node %s - sleeping %d milliseconds", s.str(), sleeptime); |
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 don't think I've ever seen this log message before ?
Probably there to avoid dropping SYNs when many connects at the same time ??
Increasing kernel somaxconn and application listen queues should help this.
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.
Approved also.
Some very old redundant code that was not being hit until the HPCC-18382 changes were introduced caused random delays when sockets were connecting in Thor.
This was spuriously seen when SORT was connecting merge streams, introducing significant delays overall.
Type of change:
Checklist:
Smoketest:
Testing: