-
Notifications
You must be signed in to change notification settings - Fork 971
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
Avoid repeatedly creating links to obtain node metrics #3228
Avoid repeatedly creating links to obtain node metrics #3228
Conversation
@@ -36,31 +36,40 @@ const ( | |||
CustomNodeMemUsageAvg = "node_memory_usage_avg" | |||
) | |||
|
|||
type CustomMetricsClient struct { | |||
config *rest.Config | |||
type KMetricsClient struct { |
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.
KMetricsClient
is not a good name. What's the meaning of it?
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.
It means k8s metrics api client.
There is a ci failure @wangyang0616 |
Signed-off-by: wangyang0616 <[email protected]>
e4507f1
to
6f16dc4
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
After enabling the load-aware scheduling capability, Volcano will obtain node monitoring data through the Custom metrics API.
Optimize the logic of the link with the apiserver to avoid repeated link creation, resulting in increased pressure on the apiserver.