-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][broker][branch-2.10] Backport Linux metrics changes from master branch #20659
[improve][broker][branch-2.10] Backport Linux metrics changes from master branch #20659
Conversation
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.
+1
With the advent of k8s 1.25+ this change must be committed to 2.10 branch
thanks for porting it.
&& config.isLoadBalancerEnabled() | ||
&& LinuxInfoUtils.isLinux() | ||
&& !LinuxInfoUtils.checkHasNicSpeeds()) { | ||
throw new IllegalStateException("Unable to read VM NIC speed. You must set " |
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.
Notice: If we cannot read the NIC speed, the broker cannot be starting.
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.
Yes, this code is just copied over from master branch
… from master branch (apache#20659)" This reverts commit b355d31.
… changes from master branch (apache#20659)"" This reverts commit a47c6ac.
… changes from master branch (apache#20659)"" This reverts commit a47c6ac.
Motivation
branch-2.10 doesn't support cgroup v2 currently. AKS Kubernetes 1.25+ switches to use cgroup v2:
https://github.com/Azure/AKS/releases/tag/2023-03-05
GKE contains to have a way to select between cgroup v1 & cgroup v2:
https://cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#cgroup-mode-options
GKE will default to cgroup v2 in new Kubernetes 1.26 clusters or node pools.
AWS EKS v1.26 nodes will default to cgroup v2.
Modifications
Backport #16832 which fixes #16601 .
This includes multiple other changes which are required dependencies for backporting the pull request.
This was achieved by cherry-picking #14648, #15365, copying over these specific files from master branch, cherry-picking #16832 and resolving merge conflicts on the way.
These are the files that were copied over from master branch (license header was modified to match
JAVADOC_STYLE
:Java 11 has cgroup v2 support since 11.0.16 with https://bugs.openjdk.org/browse/JDK-8230305 changes.
Documentation
doc
doc-required
doc-not-needed
doc-complete