-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Agent-scheduler: metrics.UpdateE2eDuration are inaccurate #5152
Copy link
Copy link
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Description
In function runOnce:
- scheduleStartTime := time.Now()
- schedCtx, err := worker.generateNextSchedulingContext() : get and wait for a pod.
- metrics.UpdateE2eDuration(metrics.Duration(scheduleStartTime))
scheduleStartTimethis time include wait time , not only scheduler time .
Steps to reproduce the issue
Describe the results you received and expected
expected: metrics.UpdateE2eDuration(dura) only incluster : 1. GetSnapshot time() 2. executeAction Time()
What version of Volcano are you using?
master
Any other relevant information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.