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
Fixed detecting number of NICs in EC2 #14252
Fixed detecting number of NICs in EC2 #14252
Conversation
// Check the type to make sure it's ethernet (type "1") | ||
try { | ||
String type = new String(Files.readAllBytes(path.resolve("type")), StandardCharsets.UTF_8).trim(); | ||
return Integer.parseInt(type) == 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.
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.
When that happens, we're ignoring that NIC and it causes that we cannot even manually override the NIC capacity in broker.conf
I see now that the point was to make it so it could be overridden.
Given that this change can lead to new and verbose error logs, we should highlight in the release notes how to mitigate this error. |
Motivation
In some EC2 instances we get an error when trying to read the NIC speed:
When that happens, we're ignoring that NIC and it causes that we cannot even manually override the NIC capacity in broker.conf, since the value that is configured is adjusted on the number of NICs. When we ignore that, the number gets then multiplied by 0.