Conversation
|
Welcome @amrmahdi! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amrmahdi 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 @amrmahdi. 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 Regular contributors should join the org to skip this step. 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. |
Bucket pods by their PodScheduled LastTransitionTime instead of polling and diffing counts. The bind time is stamped by the scheduler, so the per-second throughput is accurate and not subject to client watch-delivery lag. Output keeps perc50/90/99/max and adds the per-second series; it reads only the pod object, so it also works where the scheduler /metrics isn't reachable. Pods scheduled before the measurement starts are ignored. The core is now a pure function with unit-test coverage.
46eb7c0 to
a4b1090
Compare
Computes
SchedulingThroughputfrom each pod'sPodScheduledLastTransitionTime(the scheduler-stamped bind time) instead of polling and diffing pod counts on the client's clock. The bind time is accurate and not subject to client watch-delivery lag, and because it only reads the pod object it also works where the scheduler/metricsisn't reachable.Output keeps
perc50/90/99/maxand adds aperSecondseries. Unit test included.Fixes #1027