Page MenuHomePhabricator

Tweak Spark History memory settings
Closed, ResolvedPublic

Description

We currently request 4GB of RAM, with a limit set to 8GB, but we currently sit at 2GB RAM usage due to SPARK_DAEMON_MEMORY being hardcoded to 2g.

image.png (305×3 px, 45 KB)

We should probably set Xms to a value related to $.Values.app.requests.memory and Xmx to a value related to $.Values.app.limits.memory instead, to make sure that the JVM memory constraint is tied to what we request the scheduler and set in the cgroup, while keeping space for off-heap data.

Event Timeline

Change 990033 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] spark-history: align Xmx/Xms valuea with amount of requested memory

https://gerrit.wikimedia.org/r/990033

Change 990033 merged by Brouberol:

[operations/deployment-charts@master] spark-history: align Xmx/Xms values with amount of requested memory

https://gerrit.wikimedia.org/r/990033