Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[helm] Add memory limits and resource documentation. #789

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 36 additions & 11 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,21 @@ head:
# ports: []
# resource requests and limits for the Ray head container.
# Modify as needed for your application.
# Note that the resources in this example are much too small for production.
# Note that the resources in this example are much too small for production;
# we don't recommend allocating less than 8G memory for a Ray pod in production.
# Ray pods should be sized to take up entire K8s nodes when possible.
# Always set CPU and memory limits for Ray pods.
# It is usually best to set requests equal to limits.
# See https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/config.html#resources
# for further guidance.
resources:
limits:
cpu: 1
cpu: "1"
# To avoid out-of-memory issues, never allocate less than 2G memory for the Ray head.
memory: "2G"
requests:
cpu: 1
cpu: "1"
memory: "2G"
annotations: {}
nodeSelector: {}
tolerations: []
Expand All @@ -72,6 +80,7 @@ head:
volumes:
- name: log-volume
emptyDir: {}
# Ray writes logs to /tmp/ray/session_latests/logs
volumeMounts:
- mountPath: /tmp/ray
name: log-volume
Expand Down Expand Up @@ -106,13 +115,20 @@ worker:
# ports: []
# resource requests and limits for the Ray head container.
# Modify as needed for your application.
# Note that the resources in this example are much too small for production.
# Note that the resources in this example are much too small for production;
# we don't recommend allocating less than 8G memory for a Ray pod in production.
# Ray pods should be sized to take up entire K8s nodes when possible.
# Always set CPU and memory limits for Ray pods.
# It is usually best to set requests equal to limits.
# See https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/config.html#resources
# for further guidance.
resources:
limits:
cpu: 1
cpu: "1"
memory: "1G"
requests:
cpu: 200m
cpu: "1"
memory: "1G"
annotations:
key: value
nodeSelector: {}
Expand All @@ -123,6 +139,7 @@ worker:
volumes:
- name: log-volume
emptyDir: {}
# Ray writes logs to /tmp/ray/session_latests/logs
volumeMounts:
- mountPath: /tmp/ray
name: log-volume
Expand Down Expand Up @@ -157,15 +174,22 @@ additionalWorkerGroups:
# name: my-env-secret
# ports optionally allows specifying ports for the Ray container.
# ports: []
# resource requests and limits for the Ray head container.
# Modify as needed for your application.
# Note that the resources in this example are much too small for production.
# Ray pods should be sized to take up entire K8s nodes when possible.
# resource requests and limits for the Ray head container.
# Modify as needed for your application.
# Note that the resources in this example are much too small for production;
# we don't recommend allocating less than 8G memory for a Ray pod in production.
# Ray pods should be sized to take up entire K8s nodes when possible.
# Always set CPU and memory limits for Ray pods.
# It is usually best to set requests equal to limits.
# See https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/config.html#resources
# for further guidance.
resources:
limits:
cpu: 1
memory: "1G"
requests:
cpu: 200m
cpu: 1
memory: "1G"
annotations:
key: value
nodeSelector: {}
Expand All @@ -176,6 +200,7 @@ additionalWorkerGroups:
volumes:
- name: log-volume
emptyDir: {}
# Ray writes logs to /tmp/ray/session_latests/logs
volumeMounts:
- mountPath: /tmp/ray
name: log-volume
Expand Down