• Shingo Omura's avatar
    change sort function of scheduling queue to avoid starvation when unschedulable… · c67c6c86
    Shingo Omura authored
    change sort function of scheduling queue to avoid starvation when unschedulable pods are in the queue
    
    When starvation heppens:
    - a lot of unschedulable pods exists in the head of queue
    - because condition.LastTransitionTime is updated only when condition.Status changed
    - (this means that once a pod is marked unschedulable, the field never updated until the pod successfuly scheduled.)
    
    What was changed:
    - condition.LastProbeTime is updated everytime when pod is determined
    unschedulable.
    - changed sort function so to use LastProbeTime to avoid starvation
    described above
    
    Consideration:
    - This changes increases k8s API server load because it updates Pod.status whenever scheduler decides it as
    unschedulable.
    Signed-off-by: 's avatarShingo Omura <everpeace@gmail.com>
    c67c6c86
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
hack Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.kazelcfg.json Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG-1.13.md Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
SECURITY_CONTACTS Loading commit data...
SUPPORT.md Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...