Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: scheduler framework: support simulating cluster changes during autoscaling #120936

Closed

Commits on Sep 29, 2023

  1. scheduler framework: support simulating cluster changes during autosc…

    …aling
    
    The assumption so far was that plugins which are active during cluster
    autoscaling can do their work exclusively based on the information maintained
    by cluster autoscaler about nodes and pods on those nodes. This assumption
    doesn't hold for plugins which need to observe and potentially modified other
    cluster state, like the dynamic resource allocation plugin.
    
    Such plugins need a way to do its own snapshotting of the cluster state at the
    start of a simulation and then update that snapshotting while the cluster
    autoscaler simulates the placement of pods on nodes.
    
    The new ClusterAutoScalerPlugin interface provides a mechanism for this. It is
    not used anywhere in kube-scheduler itself, but has to be defined here because
    plugins cannot get it from k8s.io/autoscaler (circular dependency) and creating
    a new repo seems overkill.
    pohly committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    b541145 View commit details
    Browse the repository at this point in the history