@mannyv that’s a great question.
So when you override those system resources, it only affects ray’s scheduler (so it won’t schedule more than 4 tasks if the node is allocated with 4cpus) ; but it doesn’t prevent your task (i.e. if you started multiple threads in a single task) to use more resources than needed.
Yeah this is not possible at the Ray level. If you’d like to achieve it, you can probably deploy ray within a container (with CPU restriction on a container).