From fb364847007816696662640e60ac51674a14d5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Fri, 3 Nov 2023 15:31:15 +0100 Subject: [PATCH 1/2] Update jvm.config to match the latest Trino docker image --- charts/trino/templates/configmap-coordinator.yaml | 9 +++++---- charts/trino/templates/configmap-worker.yaml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/charts/trino/templates/configmap-coordinator.yaml b/charts/trino/templates/configmap-coordinator.yaml index 6821f306..0af61dfa 100644 --- a/charts/trino/templates/configmap-coordinator.yaml +++ b/charts/trino/templates/configmap-coordinator.yaml @@ -22,21 +22,22 @@ data: jvm.config: | -server + -agentpath:/usr/lib/trino/bin/libjvmkill.so -Xmx{{ .Values.coordinator.jvm.maxHeapSize }} -XX:+{{ .Values.coordinator.jvm.gcMethod.type }} -XX:G1HeapRegionSize={{ .Values.coordinator.jvm.gcMethod.g1.heapRegionSize }} - -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:+ExitOnOutOfMemoryError - -Djdk.attach.allowAttachSelf=true - -XX:-UseBiasedLocking + -XX:-OmitStackTraceInFastThrow -XX:ReservedCodeCacheSize=512M -XX:PerMethodRecompilationCutoff=10000 -XX:PerBytecodeRecompilationCutoff=10000 + -Djdk.attach.allowAttachSelf=true -Djdk.nio.maxCachedBufferSize=2000000 -XX:+UnlockDiagnosticVMOptions - -XX:+UseAESCTRIntrinsics + # Reduce starvation of threads by GClocker, recommend to set about the number of cpu cores (JDK-8192647) + -XX:GCLockerRetryAllocationCount=32 {{- range $configValue := .Values.coordinator.additionalJVMConfig }} {{ $configValue }} {{- end }} diff --git a/charts/trino/templates/configmap-worker.yaml b/charts/trino/templates/configmap-worker.yaml index 36fc1511..03617a9b 100644 --- a/charts/trino/templates/configmap-worker.yaml +++ b/charts/trino/templates/configmap-worker.yaml @@ -23,21 +23,22 @@ data: jvm.config: | -server + -agentpath:/usr/lib/trino/bin/libjvmkill.so -Xmx{{ .Values.worker.jvm.maxHeapSize }} -XX:+{{ .Values.worker.jvm.gcMethod.type }} -XX:G1HeapRegionSize={{ .Values.worker.jvm.gcMethod.g1.heapRegionSize }} - -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:+ExitOnOutOfMemoryError - -Djdk.attach.allowAttachSelf=true - -XX:-UseBiasedLocking + -XX:-OmitStackTraceInFastThrow -XX:ReservedCodeCacheSize=512M -XX:PerMethodRecompilationCutoff=10000 -XX:PerBytecodeRecompilationCutoff=10000 + -Djdk.attach.allowAttachSelf=true -Djdk.nio.maxCachedBufferSize=2000000 -XX:+UnlockDiagnosticVMOptions - -XX:+UseAESCTRIntrinsics + # Reduce starvation of threads by GClocker, recommend to set about the number of cpu cores (JDK-8192647) + -XX:GCLockerRetryAllocationCount=32 {{- range $configValue := .Values.worker.additionalJVMConfig }} {{ $configValue }} {{- end }} From 4c9356cae0a3ddcc1d9c7e3c369e2f5c6e8e5db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Fri, 3 Nov 2023 15:33:45 +0100 Subject: [PATCH 2/2] Set appVersion and tag to 432 --- charts/trino/Chart.yaml | 4 ++-- charts/trino/README.md | 2 +- charts/trino/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/trino/Chart.yaml b/charts/trino/Chart.yaml index e77c2838..0d53067f 100644 --- a/charts/trino/Chart.yaml +++ b/charts/trino/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.13.0 +version: 0.14.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # Same value as in values.yml#image.tag -appVersion: "423" +appVersion: "432" icon: https://trino.io/assets/trino.png diff --git a/charts/trino/README.md b/charts/trino/README.md index 18c89fe8..4f63c873 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -13,7 +13,7 @@ The following table lists the configurable parameters of the Trino chart and the | ------------------------ | ----------------------- | -------------- | | `image.repository` | | `"trinodb/trino"` | | `image.pullPolicy` | | `"IfNotPresent"` | -| `image.tag` | | `423` | +| `image.tag` | | `432` | | `imagePullSecrets` | | `[{"name": "registry-credentials"}]` | | `server.workers` | | `2` | | `server.node.environment` | | `"production"` | diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 3e496207..fb0a7f63 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -7,7 +7,7 @@ image: pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart version. # Same value as Chart.yaml#appVersion - tag: 423 + tag: 432 imagePullSecrets: - name: registry-credentials