Skip to content

Commit f4769b7

Browse files
przemekaksopel39
authored andcommitted
Split nodeSelectors configs between worker and coordinator.
1 parent 7065c1a commit f4769b7

File tree

7 files changed

+33
-20
lines changed

7 files changed

+33
-20
lines changed

charts/trino/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.9.0
18+
version: 0.10.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/trino/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The following table lists the configurable parameters of the Trino chart and the
2727
| `server.config.https.keystore.path` | | `""` |
2828
| `server.config.authenticationType` | | `""` |
2929
| `server.config.query.maxMemory` | | `"4GB"` |
30-
| `server.config.query.maxMemoryPerNode` | | `"1GB"` |
3130
| `server.exchangeManager.name` | | `"filesystem"` |
3231
| `server.exchangeManager.baseDir` | | `"/tmp/trino-local-file-system-exchange-manager"` |
3332
| `server.workerExtraConfig` | | `""` |
@@ -48,9 +47,6 @@ The following table lists the configurable parameters of the Trino chart and the
4847
| `securityContext.runAsGroup` | | `1000` |
4948
| `service.type` | | `"ClusterIP"` |
5049
| `service.port` | | `8080` |
51-
| `nodeSelector` | | `{}` |
52-
| `tolerations` | | `[]` |
53-
| `affinity` | | `{}` |
5450
| `auth` | | `{}` |
5551
| `serviceAccount.create` | | `false` |
5652
| `serviceAccount.name` | | `""` |
@@ -60,18 +56,26 @@ The following table lists the configurable parameters of the Trino chart and the
6056
| `coordinator.jvm.gcMethod.type` | | `"UseG1GC"` |
6157
| `coordinator.jvm.gcMethod.g1.heapRegionSize` | | `"32M"` |
6258
| `coordinator.config.memory.heapHeadroomPerNode` | | `""` |
59+
| `coordinator.config.query.maxMemoryPerNode` | | `"1GB"` |
6360
| `coordinator.additionalJVMConfig` | | `{}` |
6461
| `coordinator.resources` | | `{}` |
6562
| `coordinator.livenessProbe` | | `{}` |
6663
| `coordinator.readinessProbe` | | `{}` |
64+
| `coordinator.nodeSelector` | | `{}` |
65+
| `coordinator.tolerations` | | `[]` |
66+
| `coordinator.affinity` | | `{}` |
6767
| `worker.jvm.maxHeapSize` | | `"8G"` |
6868
| `worker.jvm.gcMethod.type` | | `"UseG1GC"` |
6969
| `worker.jvm.gcMethod.g1.heapRegionSize` | | `"32M"` |
7070
| `worker.config.memory.heapHeadroomPerNode` | | `""` |
71+
| `worker.config.query.maxMemoryPerNode` | | `"1GB"` |
7172
| `worker.additionalJVMConfig` | | `{}` |
7273
| `worker.resources` | | `{}` |
7374
| `worker.livenessProbe` | | `{}` |
7475
| `worker.readinessProbe` | | `{}` |
76+
| `worker.nodeSelector` | | `{}` |
77+
| `worker.tolerations` | | `[]` |
78+
| `worker.affinity` | | `{}` |
7579
| `kafka.mountPath` | | `"/etc/trino/schemas"` |
7680
| `kafka.tableDescriptions` | | `{}` |
7781

charts/trino/templates/configmap-coordinator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data:
4747
{{- end }}
4848
http-server.http.port={{ .Values.service.port }}
4949
query.max-memory={{ .Values.server.config.query.maxMemory }}
50-
query.max-memory-per-node={{ .Values.server.config.query.maxMemoryPerNode }}
50+
query.max-memory-per-node={{ .Values.coordinator.config.query.maxMemoryPerNode }}
5151
{{- if .Values.coordinator.config.memory.heapHeadroomPerNode }}
5252
memory.heap-headroom-per-node={{ .Values.coordinator.config.memory.heapHeadroomPerNode }}
5353
{{- end }}

charts/trino/templates/configmap-worker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ data:
4343
coordinator=false
4444
http-server.http.port={{ .Values.service.port }}
4545
query.max-memory={{ .Values.server.config.query.maxMemory }}
46-
query.max-memory-per-node={{ .Values.server.config.query.maxMemoryPerNode }}
46+
query.max-memory-per-node={{ .Values.worker.config.query.maxMemoryPerNode }}
4747
{{- if .Values.worker.config.memory.heapHeadroomPerNode }}
4848
memory.heap-headroom-per-node={{ .Values.worker.config.memory.heapHeadroomPerNode }}
4949
{{- end }}

charts/trino/templates/deployment-coordinator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ spec:
107107
successThreshold: {{ .Values.coordinator.readinessProbe.successThreshold | default 1 }}
108108
resources:
109109
{{- toYaml .Values.coordinator.resources | nindent 12 }}
110-
{{- with .Values.nodeSelector }}
110+
{{- with .Values.coordinator.nodeSelector }}
111111
nodeSelector:
112112
{{- toYaml . | nindent 8 }}
113113
{{- end }}
114-
{{- with .Values.affinity }}
114+
{{- with .Values.coordinator.affinity }}
115115
affinity:
116116
{{- toYaml . | nindent 8 }}
117117
{{- end }}
118-
{{- with .Values.tolerations }}
118+
{{- with .Values.coordinator.tolerations }}
119119
tolerations:
120120
{{- toYaml . | nindent 8 }}
121121
{{- end }}

charts/trino/templates/deployment-worker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ spec:
7777
successThreshold: {{ .Values.worker.readinessProbe.successThreshold | default 1 }}
7878
resources:
7979
{{- toYaml .Values.worker.resources | nindent 12 }}
80-
{{- with .Values.nodeSelector }}
80+
{{- with .Values.worker.nodeSelector }}
8181
nodeSelector:
8282
{{- toYaml . | nindent 8 }}
8383
{{- end }}
84-
{{- with .Values.affinity }}
84+
{{- with .Values.worker.affinity }}
8585
affinity:
8686
{{- toYaml . | nindent 8 }}
8787
{{- end }}
88-
{{- with .Values.tolerations }}
88+
{{- with .Values.worker.tolerations }}
8989
tolerations:
9090
{{- toYaml . | nindent 8 }}
9191
{{- end }}

charts/trino/values.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ server:
3434
authenticationType: ""
3535
query:
3636
maxMemory: "4GB"
37-
maxMemoryPerNode: "1GB"
3837
exchangeManager:
3938
name: "filesystem"
4039
baseDir: "/tmp/trino-local-file-system-exchange-manager"
@@ -130,12 +129,6 @@ service:
130129
type: ClusterIP
131130
port: 8080
132131

133-
nodeSelector: {}
134-
135-
tolerations: []
136-
137-
affinity: {}
138-
139132
auth: {}
140133
# Set username and password
141134
# https://trino.io/docs/current/security/password-file.html#file-format
@@ -163,6 +156,8 @@ coordinator:
163156
config:
164157
memory:
165158
heapHeadroomPerNode: ""
159+
query:
160+
maxMemoryPerNode: "1GB"
166161

167162
additionalJVMConfig: {}
168163

@@ -191,6 +186,12 @@ coordinator:
191186
# failureThreshold: 6
192187
# successThreshold: 1
193188

189+
nodeSelector: {}
190+
191+
tolerations: []
192+
193+
affinity: {}
194+
194195
worker:
195196
jvm:
196197
maxHeapSize: "8G"
@@ -202,6 +203,8 @@ worker:
202203
config:
203204
memory:
204205
heapHeadroomPerNode: ""
206+
query:
207+
maxMemoryPerNode: "1GB"
205208

206209
additionalJVMConfig: {}
207210

@@ -230,6 +233,12 @@ worker:
230233
# failureThreshold: 6
231234
# successThreshold: 1
232235

236+
nodeSelector: {}
237+
238+
tolerations: []
239+
240+
affinity: {}
241+
233242
kafka:
234243
mountPath: "/etc/trino/schemas"
235244
tableDescriptions: {}

0 commit comments

Comments
 (0)