• k8s-merge-robot's avatar
    Merge pull request #23948 from derekwaynecarr/memory_available · 75b49f59
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Add memory available to summary stats provider
    
    To support out of resource killing when low on memory, we want to let operators specify eviction thresholds based on available memory instead of memory usage for ease of use when working with heterogeneous nodes.  
    
    So for example, a valid eviction threshold would be the following: 
    * If node.memory.available < 200Mi for 30s, then evict pod(s)
    
    For the node, `memory.availableBytes` is always known since the `memory.limit_in_bytes` is always known for root cgroup.  For individual containers in pods, we only populate the `availableBytes` if the container was launched with a memory limit specified.  When no memory limit is specified, the cgroupfs sets a value of 1 << 63 in the `memory.limit_in_bytes` so we look for a similar max value to handle unbounded limits, and ignore setting `memory.availableBytes`.
    
    FYI @vishh @timstclair - as discussed on Slack.
    
    /cc @kubernetes/sig-node @kubernetes/rh-cluster-infra 
    75b49f59
Name
Last commit
Last update
..
v1alpha1/stats Loading commit data...