Move the RegisterScaleUp metric calls to NodeGroupChangeMetricsProducer.#9667
Move the RegisterScaleUp metric calls to NodeGroupChangeMetricsProducer.#9667shaikenov wants to merge 2 commits into
Conversation
|
This issue is currently awaiting triage. If SIG Autoscaling contributors determines this is a relevant issue, they will accept it by applying the The DetailsInstructions 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shaikenov The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @shaikenov. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
Hi @elmiko, @jackfrancis, I am working towards applying for the K8s membership and I would like to ask for a review from some folks outside Google. Would you be able to take a look at this PR? |
534f1a8 to
3ee5f27
Compare
3ee5f27 to
85857f8
Compare
|
Hi @elmiko, @jackfrancis, I am working towards applying for the K8s membership and I would like to ask for a review from some folks outside Google. Would you be open to take a look at this PR? |
85857f8 to
0b6d02c
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shaikenov The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
The e2e test was fixed in master, so it is passing now after rebasing. @elmiko, thanks for the review! it looks like the lgtm label was removed because of the rebase :( Also would you be open for sponsoring my k8s membership? Thanks! |
elmiko
left a comment
There was a problem hiding this comment.
/lgtm
happy to help sponsor @shaikenov =)
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow up of #9136. In this PR I retrieved the
scaled_up_nodes_totalmetrics generation inNodeGroupChangeMetricsProducer. I also evaluated the possibility of movingscaled_down_nodes_total, but it requires a bit more work for which I have no capacity right now. It might be prioritized further down the line.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
During the implementation I figured out that we do not have a single test which covers the
RegisterScaleUpmetric emission. So I decided to have two commits here:scaleUpExecutor). Ensure that the metric is correctly called in there.NodeGroupChangeMetricsProducerand adjusted a little bit the test to the new implementation - double checked it by checking that tests from point 1 are still passing.That is the reason that you will see some lines introduced in commit 1 getting deleted in commit 2.
Also since now metric is emitted from a single place -
NodeGroupChangeMetricsProducer- there is no need to passnodeInfosaround as we already have a logic forgpuanddrainfo retrieval in theNodeGroupChangeMetricsProducerDoes this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: