Skip to content

Commit c0f08cf

Browse files
Upping resources
1 parent 0e71970 commit c0f08cf

File tree

4 files changed

+10
-22
lines changed

4 files changed

+10
-22
lines changed

src/codeflare_sdk/templates/base-template.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ spec:
1818
custompodresources:
1919
- replicas: 1
2020
requests:
21-
cpu: 2
22-
memory: 8G
21+
cpu: 1
22+
memory: 4G
2323
nvidia.com/gpu: 0
2424
limits:
25-
cpu: 2
26-
memory: 8G
25+
cpu: 1
26+
memory: 4G
2727
nvidia.com/gpu: 0
2828
- replicas: 3
2929
requests:
30-
cpu: 2
31-
memory: 12G
30+
cpu: 1
31+
memory: 4G
3232
nvidia.com/gpu: 1
3333
limits:
34-
cpu: 2
35-
memory: 12G
34+
cpu: 1
35+
memory: 4G
3636
nvidia.com/gpu: 1
3737
generictemplate:
3838
# This config demonstrates KubeRay's Ray autoscaler integration.
Binary file not shown.

tests/e2e/mnist_raycluster_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
cluster = Cluster(
1313
ClusterConfiguration(
14-
name="mnist",
14+
name="jobtest",
1515
namespace=namespace,
1616
num_workers=1,
1717
min_cpus="500m",

tests/e2e/mnist_raycluster_sdk_test.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package e2e
1919
import (
2020
"testing"
2121

22-
"k8s.io/apimachinery/pkg/api/resource"
23-
2422
. "github.com/onsi/gomega"
2523
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
2624
rayv1alpha1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1alpha1"
@@ -168,24 +166,14 @@ func TestMNISTRayClusterSDK(t *testing.T) {
168166
Name: "test",
169167
// FIXME: switch to base Python image once the dependency on OpenShift CLI is removed
170168
// See https://github.com/project-codeflare/codeflare-sdk/pull/146
171-
Image: "quay.io/opendatahub/notebooks:jupyter-minimal-ubi8-python-3.8-4c8f26e",
169+
Image: "python:3.8",
172170
Command: []string{"/bin/sh", "-c", "pip install /test/codeflare_sdk-0.0.0.dev0-py3-none-any.whl && cp /test/* . && python mnist_raycluster_sdk.py" + " " + namespace.Name},
173171
VolumeMounts: []corev1.VolumeMount{
174172
{
175173
Name: "test",
176174
MountPath: "/test",
177175
},
178176
},
179-
Resources: corev1.ResourceRequirements{
180-
Requests: corev1.ResourceList{
181-
corev1.ResourceCPU: resource.MustParse("250m"),
182-
corev1.ResourceMemory: resource.MustParse("512Mi"),
183-
},
184-
Limits: corev1.ResourceList{
185-
corev1.ResourceCPU: resource.MustParse("500m"),
186-
corev1.ResourceMemory: resource.MustParse("1G"),
187-
},
188-
},
189177
},
190178
},
191179
Volumes: []corev1.Volume{

0 commit comments

Comments
 (0)