Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@ The following table lists the configurable parameters of the Trino chart and the
| `server.exchangeManager.baseDir` | | `"/tmp/trino-local-file-system-exchange-manager"` |
| `server.workerExtraConfig` | | `""` |
| `server.coordinatorExtraConfig` | | `""` |
| `server.jvm.maxHeapSize` | | `"8G"` |
| `server.jvm.gcMethod.type` | | `"UseG1GC"` |
| `server.jvm.gcMethod.g1.heapRegionSize` | | `"32M"` |
| `server.autoscaling.enabled` | | `false` |
| `server.autoscaling.maxReplicas` | | `5` |
| `server.autoscaling.targetCPUUtilizationPercentage` | | `50` |
| `additionalNodeProperties` | | `{}` |
| `additionalJVMConfig` | | `{}` |
| `additionalConfigProperties` | | `{}` |
| `additionalLogProperties` | | `{}` |
| `additionalExchangeManagerProperties` | | `{}` |
Expand All @@ -49,7 +45,6 @@ The following table lists the configurable parameters of the Trino chart and the
| `securityContext.runAsGroup` | | `1000` |
| `service.type` | | `"ClusterIP"` |
| `service.port` | | `8080` |
| `resources` | | `{}` |
| `nodeSelector` | | `{}` |
| `tolerations` | | `[]` |
| `affinity` | | `{}` |
Expand Down
19 changes: 19 additions & 0 deletions charts/trino/ci/custom-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# All custom values belong here during testing.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

coordinator:
jvm:
maxHeapSize: "8G"
gcMethod:
type: "UseG1GC"
g1:
heapRegionSize: "32M"

worker:
jvm:
maxHeapSize: "8G"
gcMethod:
type: "UseG1GC"
g1:
heapRegionSize: "32M"
8 changes: 4 additions & 4 deletions charts/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ data:

jvm.config: |
-server
-Xmx{{ .Values.server.jvm.maxHeapSize }}
-XX:+{{ .Values.server.jvm.gcMethod.type }}
-XX:G1HeapRegionSize={{ .Values.server.jvm.gcMethod.g1.heapRegionSize }}
-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
Expand All @@ -32,7 +32,7 @@ data:
-XX:PerMethodRecompilationCutoff=10000
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.nio.maxCachedBufferSize=2000000
{{- range $configValue := .Values.additionalJVMConfig }}
{{- range $configValue := .Values.coordinator.additionalJVMConfig }}
{{ $configValue }}
{{- end }}

Expand Down
8 changes: 4 additions & 4 deletions charts/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ data:

jvm.config: |
-server
-Xmx{{ .Values.server.jvm.maxHeapSize }}
-XX:+{{ .Values.server.jvm.gcMethod.type }}
-XX:G1HeapRegionSize={{ .Values.server.jvm.gcMethod.g1.heapRegionSize }}
-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
Expand All @@ -33,7 +33,7 @@ data:
-XX:PerMethodRecompilationCutoff=10000
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.nio.maxCachedBufferSize=2000000
{{- range $configValue := .Values.additionalJVMConfig }}
{{- range $configValue := .Values.worker.additionalJVMConfig }}
{{ $configValue }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
path: /v1/info
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.coordinator.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
path: /v1/info
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.worker.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
25 changes: 25 additions & 0 deletions charts/trino/values-coordinator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Default values for trino coordinator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

coordinator:
jvm:
maxHeapSize: "8G"
gcMethod:
type: "UseG1GC"
g1:
heapRegionSize: "32M"

additionalJVMConfig: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
25 changes: 25 additions & 0 deletions charts/trino/values-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Default values for trino worker.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

worker:
jvm:
maxHeapSize: "8G"
gcMethod:
type: "UseG1GC"
g1:
heapRegionSize: "32M"

additionalJVMConfig: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
20 changes: 0 additions & 20 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,13 @@ server:
baseDir: "/tmp/trino-local-file-system-exchange-manager"
workerExtraConfig: ""
coordinatorExtraConfig: ""
jvm:
maxHeapSize: "8G"
gcMethod:
type: "UseG1GC"
g1:
heapRegionSize: "32M"
autoscaling:
enabled: false
maxReplicas: 5
targetCPUUtilizationPercentage: 50

additionalNodeProperties: {}

additionalJVMConfig: {}

additionalConfigProperties: {}

additionalLogProperties: {}
Expand Down Expand Up @@ -81,18 +73,6 @@ service:
type: ClusterIP
port: 8080

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []
Expand Down