# Questions for configurations using Helm Chart

**URL:** <https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762>\
**Category:** Kubernetes\
**Created:** [October 3, 2022, 10:08am UTC](https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762 "2022-10-03T10:08:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Li](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/andrew_li/32/2425_2.png) [@Andrew\_Li](https://discuss.ray.io/u/Andrew_Li)\
**Post date:** [October 3, 2022, 10:08am UTC](https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762/1 "2022-10-03T10:08:26Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Low: It annoys or frustrates me for a moment.

I noticed the limits CPU and requests CPU can be set on the `values.yaml` ([kuberay/values.yaml at master · ray-project/kuberay · GitHub](https://github.com/ray-project/kuberay/blob/master/helm-chart/ray-cluster/values.yaml#L37-L41)). I know the legacy K8s operator can only set up one value(both for limits and requests) and it only can be an integer.

For the KubeRay:

1. For CPU, can it be set as non-integer, such as `1500m`?
2. For CPU, is it best practice if I set two different values for limits and requests?
3. For Memory, is it best practice if I set two different values for limits and requests?
4. For Memory, is it ok if I don’t set up the limits and requests? This means the pod can take all memory on the node if the Ray program attempt to.

Related topic: [KubeRay cluster config questions](https://discuss.ray.io/t/kuberay-cluster-config-questions/6437)

---

<div class="post-metadata">

**Author:** ![Andrew\_Li](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/andrew_li/32/2425_2.png) [@Andrew\_Li](https://discuss.ray.io/u/Andrew_Li)\
**Post date:** [October 5, 2022, 4:21am UTC](https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762/2 "2022-10-05T04:21:03Z")

</div>

From some discussion on Slack, I think the answers for 2 and 3 would be `No`.

> I think the way that guarantees the most reliability with Ray is actually to set limits=requests for both memory and CPU.

Ref: [Slack](https://ray-distributed.slack.com/archives/CN2RGCHRR/p1664931333336349?thread_ts=1664521682.156729&cid=CN2RGCHRR)

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [October 5, 2022, 11:25pm UTC](https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762/3 "2022-10-05T23:25:06Z")

</div>

I recommend setting requests and limits equal for both memory and cpu. I wouldn’t omit requests or limits.

I wouldn’t recommend non-integer values for CPU.

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [November 19, 2022, 7:26pm UTC](https://discuss.ray.io/t/questions-for-configurations-using-helm-chart/7762/4 "2022-11-19T19:26:30Z")

</div>

[https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/config.html#resources](https://docs.ray.io/en/latest/cluster/kubernetes/user-guides/config.html#resources)
