How severe does this issue affect your experience of using Ray?
High: It blocks me to complete my task.
Hi, I’m trying to change the worker niceness as we are seeing some contention with other processes running on the same system (we use Kuberay so anything outside of Ray ends up with significantly higher priority than the workers). This is bad enough that it’s significantly degrading the throughput of our jobs.
import os
os.environ["RAY_worker_niceness"] = str(0)
For more infos on niceness values (maybe not you personally, but other readers), see e.g. here : UNIX / Linux : How to change the niceness (priority) of a process – The Geek Diary. In the above case, I set niceness to 0, which would be the lowest possible niceness value without sudo rights (the lower, the more important the process).
Same logic for all other variables mentioned in the ray_config_def.h file. E.g.the out of memory threshold (default 0.95) is called “memory_usage_threshold”. So to change it you have to call os.environ[“RAY_memory_usage_threshold”].