-
Notifications
You must be signed in to change notification settings - Fork 38.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
Add metrics for cloud controller manager initial node sync #119241
Add metrics for cloud controller manager initial node sync #119241
Conversation
Hi @cartermckinnon. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
bd86b1f
to
cd1ee2f
Compare
/sig instrumentation |
/ok-to-test |
ab1248d
to
4ad2576
Compare
4ad2576
to
95c1c62
Compare
staging/src/k8s.io/cloud-provider/controllers/node/node_controller.go
Outdated
Show resolved
Hide resolved
Updated release note with some more details. Thanks for reviewing @aojea! |
/triage accepted |
staging/src/k8s.io/cloud-provider/controllers/node/node_controller.go
Outdated
Show resolved
Hide resolved
e19f0e9
to
e3cef24
Compare
I pulled out the metric for |
e3cef24
to
77cbd86
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 from SIG Instrumentation
/lgtm
LGTM label has been added. Git tree hash: edfd700f250e10c56adeb6386248e3bd0bd1b8df
|
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
/assign @cheftako
@@ -489,6 +493,8 @@ func (cnc *CloudNodeController) syncNode(ctx context.Context, nodeName string) e | |||
return err | |||
} | |||
|
|||
removeCloudProviderTaintDelay.Observe(time.Since(newNode.ObjectMeta.CreationTimestamp.Time).Seconds()) |
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 like.
One small issue is we get nothing if there is a failure with the update or any of the precursor steps. Would be good to have a nodeInitializeFailure metric.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cartermckinnon, cheftako, dgrisonnet, logicalhan 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
In 1.27, cloud controller manager's node controller has a new flag,
--concurrent-node-syncs
, that controls the parallelism of node controller's actions; such as the handlers that remove the node's initial cloud provider taint. This flag is useful for reducing the amount of time that a new node remains tainted before it can be scheduled work (for example).The default value is
1
(serial). There is currently no guidance on tuning this value in different environments.This PR adds metrics to better understand the performance of the node controller's, with a goal of tuning the value for
--concurrent-node-syncs
in a specific environment and potentially increasng the default value.Which issue(s) this PR fixes:
Special notes for your reviewer:
I've mostly copied this from the node lifecycle controller's metric setup, let me know if there's a new pattern I should be following: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/nodelifecycle/metrics.go
Does this PR introduce a user-facing change?
Yes.
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: