Skip to content

Commit

Permalink
Document command node
Browse files Browse the repository at this point in the history
Co-authored-by: Manfred Moser <[email protected]>
  • Loading branch information
willmostly and mosabua committed Oct 17, 2024
1 parent 536c396 commit c2b7c18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,23 @@ helm install tg --values values-override.yaml helm/trino-gateway
Secrets for `authenticationSecret` and `backendState` can be provisioned
similarly. Alternatively, you can directly define the `config.backEndState`
node in `values-override.yaml` and leave `backendStateSecret` undefined.
However, a [Secret](https://kubernetes.
io/docs/concepts/configuration/secret/)
is recommended to protect the database credentials required for this
However, a [Secret](https://kubernetes.io/docs/concepts/configuration/secret/)
is recommended to protect the database credentials required for this
configuration.

By default, the Trino Gateway process is started with the following command:

```shell
java -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar /etc/gateway/config.yaml
```

You can customize details with the `command` node. It accepts a list, that must
begin with an executable such as `java` or `bash` that is available on the PATH.
The following list elements are provided as arguments to the executable. It is
not typically necessary to modify this node. You can use it to change of JVM
startup parameters to control memory settings and other aspects, or to use other
configuration file names.

#### Additional options

To implement routing rules, create a ConfigMap from your routing rules yaml
Expand Down
2 changes: 1 addition & 1 deletion helm/trino-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ config:
managedApps:
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor

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

0 comments on commit c2b7c18

Please sign in to comment.