# Resource limit values

**URL:** <https://forum.weaviate.io/t/resource-limit-values/2095>\
**Category:** Support\
**Created:** [April 23, 2024, 9:14am UTC](https://forum.weaviate.io/t/resource-limit-values/2095 "2024-04-23T09:14:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [April 23, 2024, 9:14am UTC](https://forum.weaviate.io/t/resource-limit-values/2095/1 "2024-04-23T09:14:10Z")

</div>

Hi Team.

When configuring a Weaviate cluster for performance improvement, it is believed that the appropriate shard should be expanded.  
In this case, I’d like to know if there are any limitations on setting limits per pod?  
I would like to know the maximum or appropriate limit values that one Pod can use for the next items.

- CPU
- Memory
- PV size

Thank you.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 23, 2024, 12:30pm UTC](https://forum.weaviate.io/t/resource-limit-values/2095/2 "2024-04-23T12:30:40Z")

</div>

Hi!

This will depend on the machine you have available.

As long as it supports more memory and more CPU, Weaviate will use it.

So the limit here is more on the machine/hardware side, not on Weaviate.

---

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [April 25, 2024, 5:55am UTC](https://forum.weaviate.io/t/resource-limit-values/2095/3 "2024-04-25T05:55:35Z")

</div>

Hi @DudaNogueira

As you suggested, I will not set the CPU and memory limits when creating Weaviate with Helm Chart. In the case of PV, the default is set to 32Gi, which is appropriate in most cases? If the initially planned space is insufficient, how should it be expanded?

1. Create additional replicas
2. Expand PV space

Which method would you recommend more?

Thank you.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 29, 2024, 4:56pm UTC](https://forum.weaviate.io/t/resource-limit-values/2095/4 "2024-04-29T16:56:17Z")

</div>

hi @Rio !

You can just increase the PV for that cluster. If using our oficial helm, just changing the corresponding parameter in values.yaml

Let me know if this help!

---

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [June 5, 2024, 4:36am UTC](https://forum.weaviate.io/t/resource-limit-values/2095/5 "2024-06-05T04:36:43Z")

</div>

Hello. @DudaNogueira

As you told me, I modified the corresponding part of the values.yaml file and executed the helm upgrade command, and the following error occurs.

[values.yaml]  
storage:  
size: 40Gi  
storageClassName: “”

[Error Message]  
Error: UPGRADE FAILED: cannot patch “weaviate” with kind StatefulSet: StatefulSet.apps “weaviate” is invalid: spec: Forbidden: updates to statefulset spec for fields other than ‘replicas’, ‘ordinals’, ‘template’, ‘updateStrategy’, ‘persistentVolumeClaimRetentionPolicy’ and ‘minReadySeconds’ are forbidden

My helm chart version is ‘weaviate-16.8.0’  
What’s the problem?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [June 10, 2024, 8:30pm UTC](https://forum.weaviate.io/t/resource-limit-values/2095/6 "2024-06-10T20:30:24Z")

</div>

Hi!

I believe this can be something you will need to check with the k8s provider. 🤔

You probably will get a similar issue for other apps.

This is where that value from the helm is used:

> <https://github.com/weaviate/weaviate-helm/blob/c748e6d66771e1bdc9eab78f2b3ac2dc88c0db2b/weaviate/templates/weaviateStatefulset.yaml#L484>

Let me know if this helps.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rio](https://forum.weaviate.io/u/Rio)\
**Post date:** [June 11, 2024, 4:59am UTC](https://forum.weaviate.io/t/resource-limit-values/2095/7 "2024-06-11T04:59:06Z")

</div>

ok. I will check it.

thank you.
