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

Introducing isExclusive field as part of ContainerResources in PodResource API #102989

Closed

Commits on Jun 25, 2021

  1. isexclusive: Introducing isExclusive field as part of ContainerResources

    Rationale behind this change is explained in detail in: kubernetes#102190
    
    A pod with same non-integral CPU request and limit belongs to Guaranteed
    QoS class but obtains CPUs from the shared pool. Currently, in podresource API
    there is no way to distinguish such pods from the pods which have been exclusively
    allocated CPUs.
    
    One of the primary goals of recent enhancements of PodResource API is to allow it to
    enable node monitoring agents to know the allocatable compute resources on a node,
    in order to calculate the node compute resource utilization. However, not being
    able to determine if a pod has been exclusively allocated CPUs or CPUs belong to
    the shared pool means that the goal cannot be realized.
    
    We need to enhance the podresource API to give it the ability to determine if a pod
    belongs to the shared pool or exclusive pool to be able to do proper accounting in
    the node monitoring agents.
    
    Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
    swatisehgal committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    60c4a37 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2021

  1. isexclusive: Add ability to check if CPUs are exclusively allocated

    Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
    swatisehgal committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    e8f229c View commit details
    Browse the repository at this point in the history
  2. isexclusive: e2e tests: code refactoring to handle non-integral CPUs

    This patch changes cpuCount to cpuRequest in order to cater to cases
    where guaranteed pods make non-integral CPU Requests.
    
    Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
    swatisehgal committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    8019b39 View commit details
    Browse the repository at this point in the history
  3. isexclusive: e2e tests: Test cases for pods with non-integral CPUs

    Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
    swatisehgal committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    d047a92 View commit details
    Browse the repository at this point in the history