Skip to content
  • Klaus Aehlig's avatar
    CanTieredAlloc test: make instances big enough · 5b181e29
    Klaus Aehlig authored
    
    
    Fix a subtle bug in the CanTieredAlloc test. The property we were
    testing for was actually not valid with the addition of an ipolicy.
    The lower policy bound for disk was 4 times the unit for disks (256M).
    So, a valid node have free disk only slightly larger than the ipolicy
    lower bound. When shrinking disks, however, we go in steps of full
    units---and thus might miss the window of opportunity if that is smaller
    that a full unit. So, only use nodes that have at least 5 units worth
    of resources for every resource.
    
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
    5b181e29