# How to disable spill object on disk and just let app failed?

**URL:** <https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027>\
**Category:** Ray Core\
**Created:** [September 5, 2023, 1:43am UTC](https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027 "2023-09-05T01:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarjintor](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/tarjintor/32/3552_2.png) [@tarjintor](https://discuss.ray.io/u/tarjintor)\
**Post date:** [September 5, 2023, 1:43am UTC](https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027/1 "2023-09-05T01:43:43Z")

</div>

Hello,my ray version is 2.3.0  
Our server’s disk is very small,in fact, only about 50G，while our memory is 512G or more.  
So it meaningless to spill objects on disk,let the app fail is more appropriate.

I already did some search,find two ways,and both doesn’t work

1. `ray start --head --system-config='{"automatic_object_spilling_enabled":false}'`  
error msg is

> (raylet) file\_system\_monitor.cc:135: Failed to parse spilling config, error message: [json.exception.parse\_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected ‘[’, ‘{’, or a literalThe config string is probably invalid json:

then I read the source code,and find this msg seems not important,the ParseSpillingPaths will return a empty vector

1. I set RAY\_automatic\_object\_spilling\_enabled env to false

neither works，so I need some help, thanks a lot!

---

<div class="post-metadata">

**Author:** ![Chen\_Shen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/chen_shen/32/1486_2.png) [@Chen\_Shen](https://discuss.ray.io/u/Chen_Shen)\
**Post date:** [September 13, 2023, 10:31pm UTC](https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027/2 "2023-09-13T22:31:13Z")

</div>

can you try RAY\_object\_spilling\_threshold=1.0 ?

---

<div class="post-metadata">

**Author:** ![tarjintor](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/tarjintor/32/3552_2.png) [@tarjintor](https://discuss.ray.io/u/tarjintor)\
**Post date:** [September 14, 2023, 9:06am UTC](https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027/3 "2023-09-14T09:06:43Z")

</div>

It works,thanks a lot,this really help!

---

<div class="post-metadata">

**Author:** ![shiranbi](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@shiranbi](https://discuss.ray.io/u/shiranbi)\
**Post date:** [April 15, 2025, 12:19pm UTC](https://discuss.ray.io/t/how-to-disable-spill-object-on-disk-and-just-let-app-failed/12027/4 "2025-04-15T12:19:37Z")

</div>

does this still work?  
i am working with ray 2.44.0 and with no combination of these am i able to disble spilling
