Skip to content

Commit 7e8ab2c

Browse files
committed
Sync JVM options with Trino defaults
1 parent e036268 commit 7e8ab2c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

charts/trino/templates/configmap-coordinator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ data:
3232
-Djdk.nio.maxCachedBufferSize=2000000
3333
# Allow loading dynamic agent used by JOL
3434
-XX:+EnableDynamicAgentLoading
35+
{{/* only check the version number if the image is not overriden in any way */}}
36+
{{- with .Values.image -}}
37+
{{- if and (eq .repository "trinodb/trino") (not .useRepositoryAsSoleImageReference) (not .registry) (not .digest) (gt (default $.Chart.AppVersion .tag | int ) 447 ) }}
38+
# https://bugs.openjdk.org/browse/JDK-8329528
39+
-XX:+UnlockDiagnosticVMOptions
40+
-XX:G1NumCollectionsKeepPinned=10000000
41+
{{- end }}{{/* if */}}
42+
{{- end }}{{/* with */}}
3543
{{- range $configValue := .Values.coordinator.additionalJVMConfig }}
3644
{{ $configValue }}
3745
{{- end }}

charts/trino/templates/configmap-worker.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ data:
3333
-Djdk.nio.maxCachedBufferSize=2000000
3434
# Allow loading dynamic agent used by JOL
3535
-XX:+EnableDynamicAgentLoading
36+
{{/* only check the version number if the image is not overriden in any way */}}
37+
{{- with .Values.image -}}
38+
{{- if and (eq .repository "trinodb/trino") (not .useRepositoryAsSoleImageReference) (not .registry) (not .digest) (gt (default $.Chart.AppVersion .tag | int ) 447 ) }}
39+
# https://bugs.openjdk.org/browse/JDK-8329528
40+
-XX:+UnlockDiagnosticVMOptions
41+
-XX:G1NumCollectionsKeepPinned=10000000
42+
{{- end }}{{/* if */}}
43+
{{- end }}{{/* with */}}
3644
{{- range $configValue := .Values.worker.additionalJVMConfig }}
3745
{{ $configValue }}
3846
{{- end }}

0 commit comments

Comments
 (0)