Skip to content

Commit c2b7c18

Browse files
willmostlymosabua
andcommitted
Document command node
Co-authored-by: Manfred Moser <[email protected]>
1 parent 536c396 commit c2b7c18

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

docs/installation.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,23 @@ helm install tg --values values-override.yaml helm/trino-gateway
248248
Secrets for `authenticationSecret` and `backendState` can be provisioned
249249
similarly. Alternatively, you can directly define the `config.backEndState`
250250
node in `values-override.yaml` and leave `backendStateSecret` undefined.
251-
However, a [Secret](https://kubernetes.
252-
io/docs/concepts/configuration/secret/)
253-
is recommended to protect the database credentials required for this
251+
However, a [Secret](https://kubernetes.io/docs/concepts/configuration/secret/)
252+
is recommended to protect the database credentials required for this
254253
configuration.
255254

255+
By default, the Trino Gateway process is started with the following command:
256+
257+
```shell
258+
java -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar /etc/gateway/config.yaml
259+
```
260+
261+
You can customize details with the `command` node. It accepts a list, that must
262+
begin with an executable such as `java` or `bash` that is available on the PATH.
263+
The following list elements are provided as arguments to the executable. It is
264+
not typically necessary to modify this node. You can use it to change of JVM
265+
startup parameters to control memory settings and other aspects, or to use other
266+
configuration file names.
267+
256268
#### Additional options
257269

258270
To implement routing rules, create a ConfigMap from your routing rules yaml

helm/trino-gateway/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ config:
5252
managedApps:
5353
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor
5454

55-
# Startup command for Trino Gateway process. Add additional java options here if required
55+
# Startup command for Trino Gateway process. Add additional Java options and other modifications as desired.
5656
command:
5757
- "java"
5858
- "-XX:MinRAMPercentage=80.0"

0 commit comments

Comments
 (0)