spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Support setting driver/executor `memory` and `memoryLimit` separately

Open peay opened this issue 2 years ago • 4 comments

Spark's kubernetes executor uses the same value for memory request and memory limit, and the current operator API matches that: although we have both cores and coreLimit, there is only memory.

However, in some cases, it can be useful to set a memory request that is lower than the memory limit, as a form of over-subscription, as Spark tasks will not always use all of the requested memory, and it can help increase overall cluster memory utilization.

In extreme cases, this could also be seen as a counter-part to how you can disable memory enforcement in YARN clusters, although kubernetes would give us here the opportunity to tune this much more finely than just enabling or disabling memory enforcement.

My assumption is that the operator could support different limit and request values even though Spark doesn't through the mutating webhook.

peay avatar Feb 25 '22 15:02 peay

+1

pycgo avatar Jul 05 '23 08:07 pycgo

any progress on this issue?

harryzhang2016 avatar Jan 29 '24 06:01 harryzhang2016

Also interesting about progress

mk-raven avatar May 10 '24 12:05 mk-raven

+1

filippomascolo avatar May 10 '24 12:05 filippomascolo

+1

TheDevilDan avatar Jul 22 '24 09:07 TheDevilDan

+1

catinwarmhands avatar Aug 08 '24 14:08 catinwarmhands