Skip to content

Commit

Permalink
Merge pull request #5621 from kgolab/master
Browse files Browse the repository at this point in the history
Make the "OOMing pods under VPA" test more robust.
  • Loading branch information
k8s-ci-robot authored Mar 27, 2023
2 parents 39e4d59 + 2042098 commit 52f6c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions vertical-pod-autoscaler/e2e/v1/autoscaling_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const (

var (
resourceConsumerImage = imageutils.GetE2EImage(imageutils.ResourceConsumer)
stressCommand = []string{"/stress", "--mem-total", "10000000000", "--logtostderr", "--mem-alloc-size", "50000"}
)

var (
Expand Down Expand Up @@ -436,16 +435,17 @@ func runOomingReplicationController(c clientset.Interface, ns, name string, repl
ginkgo.By(fmt.Sprintf("Running OOMing RC %s with %v replicas", name, replicas))

rcConfig := testutils.RCConfig{
Client: c,
Image: stressImage,
Command: stressCommand,
Client: c,
Image: stressImage,
// request exactly 1025 MiB, in a single chunk (1 MiB above the limit)
Command: []string{"/stress", "--mem-total", "1074790400", "--logtostderr", "--mem-alloc-size", "1074790400"},
Name: name,
Namespace: ns,
Timeout: timeoutRC,
Replicas: replicas,
Annotations: make(map[string]string),
MemRequest: 1024 * 1024 * 300,
MemLimit: 1024 * 1024 * 500,
MemRequest: 1024 * 1024 * 1024,
MemLimit: 1024 * 1024 * 1024,
}

dpConfig := testutils.DeploymentConfig{
Expand Down
2 changes: 1 addition & 1 deletion vertical-pod-autoscaler/e2e/v1/full_vpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
// the initial values should be outside minimal bounds
initialCPU = int64(10) // mCPU
initialMemory = int64(10) // MB
oomTestTimeout = 12 * time.Minute
oomTestTimeout = 8 * time.Minute
)

var _ = FullVpaE2eDescribe("Pods under VPA", func() {
Expand Down

0 comments on commit 52f6c67

Please sign in to comment.