Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't re-patch pods that are already controlled by current worker (#2…
…6778) After the scheduler has launched many pods, it keeps trying to re-adopt them by patching every pod. Each patch-operation involves a remote API-call which can be be very slow. In the meantime the scheduler can not do anything else. By ignoring the pods that already have the expected label, the list query-result will be shorter and the number of patch-queries much less. We had an unlucky moment in our environment, where each patch-operation started taking 100ms each, with 200 pods in flight it accumulates into 20 seconds of blocked scheduler. (cherry picked from commit 27ec562)
- Loading branch information