Skip to content

Commit a81a923

Browse files
committed
[SPARK-52668] Set (Initial|Max)RAMPercentage to 80% by default
### What changes were proposed in this pull request? This PR aims to set `(Initial|Max)RAMPercentage` Java option to `80%` by default. ### Why are the changes needed? 1. Af the pod creation time, this will be determined automatically based on the user-provided pod memory size. 2. During runtime, this will reduce GC resizing overhead because we have a fixed size. ### Does this PR introduce _any_ user-facing change? Only JVM GC behavior changes. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#276 from dongjoon-hyun/SPARK-52668. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent ddefa44 commit a81a923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/helm/spark-kubernetes-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ operatorDeployment:
4141
# https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
4242
topologySpreadConstraints: [ ]
4343
operatorContainer:
44-
jvmArgs: "-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError -XX:+UseParallelGC"
44+
jvmArgs: "-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError -XX:+UseParallelGC -XX:InitialRAMPercentage=80 -XX:MaxRAMPercentage=80"
4545
env:
4646
- name: "SPARK_USER"
4747
value: "spark"

0 commit comments

Comments
 (0)