-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17861. improve YARN Registry DNS Server qps #8106
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
base: trunk
Are you sure you want to change the base?
Conversation
| if (response.length > output.capacity()) { | ||
| LOG.warn("{}: Response of UDP query {} exceeds limit {}", | ||
| remoteAddress, query.getQuestion(), output.limit()); | ||
| query.getHeader().setFlag(Flags.TC); |
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.
If the response of UDP query exceeds limit, TC(truncated) flag should be set in order for the client to request again with TCP query.
|
💔 -1 overall
This message was automatically generated. |
| byte[] in = null; | ||
| byte[] response = null; | ||
| Message query = null; | ||
| try { |
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.
Two nested try is generally considered a code smell. Sonar will tell you to design differently like using a method etc
Description of PR
There are some points to improve the performance of YARN Registry DNS Server.
In our environment, QPS of original yarn dns server is about 5000 (UDP), 100 (TCP).
Now, QPS of our improved yarn dns server is about 47000 (UDP), 500 (TCP).
I will make a pull request at https://github.com/apache/hadoop soon.
How was this patch tested?
Our team members have tested this manually in our cluster.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?