This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new a81a923 [SPARK-52668] Set `(Initial|Max)RAMPercentage` to 80% by
default
a81a923 is described below
commit a81a92399a48150fe816448c9c3a429733ac10a3
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Jul 2 23:54:26 2025 -0700
[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 #276 from dongjoon-hyun/SPARK-52668.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
build-tools/helm/spark-kubernetes-operator/values.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-tools/helm/spark-kubernetes-operator/values.yaml
b/build-tools/helm/spark-kubernetes-operator/values.yaml
index 3fb3b95..ecffa44 100644
--- a/build-tools/helm/spark-kubernetes-operator/values.yaml
+++ b/build-tools/helm/spark-kubernetes-operator/values.yaml
@@ -41,7 +41,7 @@ operatorDeployment:
#
https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: [ ]
operatorContainer:
- jvmArgs: "-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError
-XX:+UseParallelGC"
+ jvmArgs: "-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError
-XX:+UseParallelGC -XX:InitialRAMPercentage=80 -XX:MaxRAMPercentage=80"
env:
- name: "SPARK_USER"
value: "spark"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]