mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
increase amount of memory filled by memory allocatable eviction test
This commit is contained in:
parent
ae1fc13aee
commit
395bea9d83
@ -131,8 +131,8 @@ var _ = framework.KubeDescribe("MemoryAllocatableEviction [Slow] [Serial] [Disru
|
|||||||
// Set large system and kube reserved values to trigger allocatable thresholds far before hard eviction thresholds.
|
// Set large system and kube reserved values to trigger allocatable thresholds far before hard eviction thresholds.
|
||||||
kubeReserved := getNodeCPUAndMemoryCapacity(f)[v1.ResourceMemory]
|
kubeReserved := getNodeCPUAndMemoryCapacity(f)[v1.ResourceMemory]
|
||||||
// The default hard eviction threshold is 250Mb, so Allocatable = Capacity - Reserved - 250Mb
|
// The default hard eviction threshold is 250Mb, so Allocatable = Capacity - Reserved - 250Mb
|
||||||
// We want Allocatable = 50Mb, so set Reserved = Capacity - Allocatable - 250Mb = Capacity - 300Mb
|
// We want Allocatable = 150Mb, so set Reserved = Capacity - Allocatable - 250Mb = Capacity - 400Mb
|
||||||
kubeReserved.Sub(resource.MustParse("300Mi"))
|
kubeReserved.Sub(resource.MustParse("400Mi"))
|
||||||
initialConfig.KubeReserved = map[string]string{
|
initialConfig.KubeReserved = map[string]string{
|
||||||
string(v1.ResourceMemory): kubeReserved.String(),
|
string(v1.ResourceMemory): kubeReserved.String(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user