Skip to content

Commit

Permalink
[Chore] Lower resource requests
Browse files Browse the repository at this point in the history
Closes: #2480
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Nov 1, 2024
1 parent 26db9b2 commit 7a7f407
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 28 deletions.
10 changes: 5 additions & 5 deletions ray-operator/test/e2e/testdata/locust-cluster.burst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ spec:
- name: ray-head
image: rayproject/ray:2.9.0
resources:
limits:
cpu: 3
memory: 4Gi
requests:
cpu: 3
memory: 4Gi
cpu: 300m
memory: 1G
limits:
cpu: 500m
memory: 2G
ports:
- containerPort: 6379
name: gcs-server
Expand Down
10 changes: 5 additions & 5 deletions ray-operator/test/e2e/testdata/locust-cluster.const-rate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ spec:
- name: ray-head
image: rayproject/ray:2.9.0
resources:
limits:
cpu: 3
memory: 4Gi
requests:
cpu: 3
memory: 4Gi
cpu: 300m
memory: 1G
limits:
cpu: 500m
memory: 2G
ports:
- containerPort: 6379
name: gcs-server
Expand Down
16 changes: 8 additions & 8 deletions ray-operator/test/e2e/testdata/rayservice.autoscaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ spec:
image: rayproject/ray:2.9.0
resources:
requests:
cpu: 2
memory: 2Gi
cpu: 300m
memory: 1G
limits:
cpu: 2
memory: 2Gi
cpu: 500m
memory: 2G
ports:
- containerPort: 6379
name: gcs-server
Expand All @@ -66,8 +66,8 @@ spec:
command: ["/bin/sh","-c","ray stop"]
resources:
requests:
cpu: 1
memory: 2Gi
cpu: 300m
memory: 1G
limits:
cpu: 1
memory: 2Gi
cpu: 500m
memory: 1G
12 changes: 6 additions & 6 deletions ray-operator/test/e2e/testdata/rayservice.static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ spec:
resources:
requests:
cpu: 300m
memory: 1Gi
memory: 1G
limits:
cpu: 500m
memory: 2Gi
memory: 2G
ports:
- containerPort: 6379
name: gcs-server
Expand All @@ -59,8 +59,8 @@ spec:
image: rayproject/ray:2.9.0
resources:
requests:
cpu: "300m"
memory: "1Gi"
cpu: 300m
memory: 1G
limits:
cpu: "500m"
memory: "1Gi"
cpu: 500m
memory: 1G
4 changes: 0 additions & 4 deletions ray-operator/test/support/ray.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ func GetRayCluster(t Test, namespace, name string) (*rayv1.RayCluster, error) {
return t.Client().Ray().RayV1().RayClusters(namespace).Get(t.Ctx(), name, metav1.GetOptions{})
}

func GetRayService(t Test, namespace, name string) (*rayv1.RayService, error) {
return t.Client().Ray().RayV1().RayServices(namespace).Get(t.Ctx(), name, metav1.GetOptions{})
}

func RayClusterState(cluster *rayv1.RayCluster) rayv1.ClusterState {
return cluster.Status.State //nolint:staticcheck // https://github.com/ray-project/kuberay/pull/2288
}
Expand Down

0 comments on commit 7a7f407

Please sign in to comment.