Skip to content

Commit 80d058d

Browse files
oneonestarmosabua
authored andcommitted
Simplify config filename to config.yaml
1 parent f06d988 commit 80d058d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/development.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ verified and may run into unexpected issues.
2727
Run `./mvnw clean install` to build `trino-gateway`. VM options required for
2828
compilation and testing are specified in `.mvn/jvm.config`.
2929

30-
Edit the configuration file `gateway-ha-config.yml` in the `gateway-ha` folder
30+
Edit the configuration file `config.yaml` in the `gateway-ha` folder
3131
and update the mysql db information.
3232

3333
Note that tests using Oracle are disabled by default on non-x86_64 CPU architectures.
@@ -36,7 +36,7 @@ will always be run in GitHub CI.
3636

3737
```shell
3838
cd gateway-ha/target/
39-
java -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar ../gateway-ha-config.yml
39+
java -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar ../config.yaml
4040
```
4141

4242
#### In Docker

docs/installation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Find more information in [the related Trino documentation](https://trino.io/docs
123123
After downloading or building the JAR, rename it to `gateway-ha.jar`,
124124
and place it in a directory with read and write access such as `/opt/trinogateway`.
125125

126-
Copy the example config file `gateway-ha-config.yml` from the `gateway-ha/`
126+
Copy the example config file `config.yaml` from the `gateway-ha/`
127127
directory into the same directory, and update the configuration as needed.
128128

129129
Each component of the Trino Gateway has a corresponding node in the
@@ -229,7 +229,7 @@ JAR and YAML files:
229229

230230
```shell
231231
java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 \
232-
-jar gateway-ha.jar gateway-ha-config.yml
232+
-jar gateway-ha.jar config.yaml
233233
```
234234

235235
### Helm <a name="helm"></a>
@@ -299,7 +299,7 @@ configuration.
299299
By default, the Trino Gateway process is started with the following command:
300300

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

305305
You can customize details with the `command` node. It accepts a list, that must

docs/migration-to-airlift.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ The first arg `server` has been removed.
139139

140140
Old config:
141141
```bash
142-
java -jar gateway-ha.jar server gateway-ha-config.yml
142+
java -jar gateway-ha.jar server config.yaml
143143
```
144144

145145
New config:
146146
```bash
147-
java -jar gateway-ha.jar gateway-ha-config.yml
147+
java -jar gateway-ha.jar config.yaml
148148
```
149149

150150
### Format of `extraWhitelistPaths`

docs/routing-rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ as a URL. It can implement any dynamic rule changes or other behavior.
1919
### Enabling the routing rules engine
2020

2121
To enable the routing rules engine, find the following lines in
22-
`gateway-ha-config.yml`:
22+
`config.yaml`:
2323

2424
* Set `rulesEngineEnabled` to `true`, then `rulesType` as `FILE` or `EXTERNAL`.
2525
* If you set `rulesType: FILE`, then set `rulesConfigPath` to the path to your
File renamed without changes.

gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void main(String[] args)
5858
mysql.withCopyFileToContainer(forClasspathResource("add_backends_mysql.sql"), "/docker-entrypoint-initdb.d/2-add_backends_mysql.sql");
5959
mysql.setPortBindings(List.of("3306:3306"));
6060
mysql.start();
61-
HaGatewayLauncher.main(new String[] {"gateway-ha/gateway-ha-config.yml"});
61+
HaGatewayLauncher.main(new String[] {"gateway-ha/config.yaml"});
6262

6363
log.info("======== SERVER STARTED ========");
6464
}

0 commit comments

Comments
 (0)