Skip to content

Commit

Permalink
Adjusting head nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria committed Oct 24, 2023
1 parent 5c5bc46 commit 152da18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions tests/integration/ray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ func createRayCluster(test support.Test, namespace string, mnist *corev1.ConfigM
},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("250m"),
corev1.ResourceMemory: resource.MustParse("512Mi"),
corev1.ResourceCPU: resource.MustParse("2"),
corev1.ResourceMemory: resource.MustParse("8G"),
},
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("1"),
corev1.ResourceMemory: resource.MustParse("1G"),
corev1.ResourceCPU: resource.MustParse("2"),
corev1.ResourceMemory: resource.MustParse("8G"),
},
},
VolumeMounts: []corev1.VolumeMount{
Expand Down Expand Up @@ -336,12 +336,12 @@ func createRayCluster(test support.Test, namespace string, mnist *corev1.ConfigM
},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("250m"),
corev1.ResourceMemory: resource.MustParse("256Mi"),
corev1.ResourceCPU: resource.MustParse("500m"),
corev1.ResourceMemory: resource.MustParse("512Mi"),
},
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("1"),
corev1.ResourceMemory: resource.MustParse("512Mi"),
corev1.ResourceCPU: resource.MustParse("2"),
corev1.ResourceMemory: resource.MustParse("1Gi"),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/resources/mnist_ray_mini.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"outputs": [],
"source": [
"# Create our cluster and submit appwrapper\n",
"cluster = Cluster(ClusterConfiguration(namespace=namespace, name='mnisttest', num_workers=4, min_cpus=4, max_cpus=4, min_memory=8, max_memory=8, num_gpus=0, instascale=False))"
"cluster = Cluster(ClusterConfiguration(namespace=namespace, name='mnisttest', head_cpus=2, head_memory=8, num_workers=1, min_cpus=1, max_cpus=1, min_memory=4, max_memory=4, num_gpus=0, instascale=False))"
]
},
{
Expand Down

0 comments on commit 152da18

Please sign in to comment.