-
Notifications
You must be signed in to change notification settings - Fork 43.2k
pod_scheduling_durating_seconds includes the time a Pod fails PreEnqueue #117979
Copy link
Copy link
Closed
Closed
Copy link
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.Categorizes an issue or PR as relevant to SIG Scheduling.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Milestone
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.Categorizes an issue or PR as relevant to SIG Scheduling.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
What happened?
pod_scheduling_durating_secondsis recording the time that a Pod is gated.We use the timestamp when the scheduler inserts the pod into the queue:
kubernetes/pkg/scheduler/internal/queue/scheduling_queue.go
Line 402 in 84c8abf
What did you expect to happen?
The period of time when a Pod fails PreEnque (like being gated) shouldn't be accounted in the pod_scheduling_duration_seconds.
How can we reproduce it (as minimally and precisely as possible)?
Create a Pod with scheduling gates.
Wait some time before removing the gate.
Observe the
pod_scheduling_duration_secondsmetricAnything else we need to know?
No response
Kubernetes version
Details
1.26+Cloud provider
Details
AnyOS version
Details
Install tools
Details
Container runtime (CRI) and version (if applicable)
Details
Related plugins (CNI, CSI, ...) and versions (if applicable)
Details