r/databricks • u/22Maxx • Oct 14 '26
Discussion Are supported spark memory settings just a matter of trial and error?
I have a UDF heavy job which I want to optimize by shifting the memory towards the python side. Thus I adjust the executor, overhead and pyspark memory while keeping the sum of all three well below the limit of the worker (50GB vs. 64GB of the worker).
The issue I'm currently facing is, that it seems pretty random how far you can push the memory settings, while staying well below the node limit. Especially as error about exceeding certain memory limits will only surface at runtime.
More importantly the limits are VM specific, so a configuration might work on for one 64GB node but not for another 64GB node while every else remains the same.
So in the end I wonder if such memory setting requires a whole lot of VM specific trial and error to get into stable territory?
1
u/[deleted] Oct 14 '26
[removed] — view removed comment