File tree 6 files changed +9
-9
lines changed
src/test/java/io/trino/gateway
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ verified and may run into unexpected issues.
27
27
Run ` ./mvnw clean install ` to build ` trino-gateway ` . VM options required for
28
28
compilation and testing are specified in ` .mvn/jvm.config ` .
29
29
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
31
31
and update the mysql db information.
32
32
33
33
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.
36
36
37
37
``` shell
38
38
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
40
40
```
41
41
42
42
#### In Docker
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Find more information in [the related Trino documentation](https://trino.io/docs
123
123
After downloading or building the JAR, rename it to `gateway-ha.jar`,
124
124
and place it in a directory with read and write access such as `/opt/trinogateway`.
125
125
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/`
127
127
directory into the same directory, and update the configuration as needed.
128
128
129
129
Each component of the Trino Gateway has a corresponding node in the
@@ -229,7 +229,7 @@ JAR and YAML files:
229
229
230
230
` ` ` shell
231
231
java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 \
232
- -jar gateway-ha.jar gateway-ha- config.yml
232
+ -jar gateway-ha.jar config.yaml
233
233
` ` `
234
234
235
235
# ## Helm <a name="helm"></a>
@@ -299,7 +299,7 @@ configuration.
299
299
By default, the Trino Gateway process is started with the following command :
300
300
301
301
` ` ` 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
303
303
` ` `
304
304
305
305
You can customize details with the `command` node. It accepts a list, that must
Original file line number Diff line number Diff line change @@ -139,12 +139,12 @@ The first arg `server` has been removed.
139
139
140
140
Old config :
141
141
` ` ` bash
142
- java -jar gateway-ha.jar server gateway-ha- config.yml
142
+ java -jar gateway-ha.jar server config.yaml
143
143
` ` `
144
144
145
145
New config :
146
146
` ` ` bash
147
- java -jar gateway-ha.jar gateway-ha- config.yml
147
+ java -jar gateway-ha.jar config.yaml
148
148
` ` `
149
149
150
150
# ## Format of `extraWhitelistPaths`
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ as a URL. It can implement any dynamic rule changes or other behavior.
19
19
### Enabling the routing rules engine
20
20
21
21
To enable the routing rules engine, find the following lines in
22
- ` gateway-ha- config.yml ` :
22
+ ` config.yaml ` :
23
23
24
24
* Set ` rulesEngineEnabled ` to ` true ` , then ` rulesType ` as ` FILE ` or ` EXTERNAL ` .
25
25
* If you set ` rulesType: FILE ` , then set ` rulesConfigPath ` to the path to your
File renamed without changes.
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static void main(String[] args)
58
58
mysql .withCopyFileToContainer (forClasspathResource ("add_backends_mysql.sql" ), "/docker-entrypoint-initdb.d/2-add_backends_mysql.sql" );
59
59
mysql .setPortBindings (List .of ("3306:3306" ));
60
60
mysql .start ();
61
- HaGatewayLauncher .main (new String [] {"gateway-ha/gateway-ha- config.yml " });
61
+ HaGatewayLauncher .main (new String [] {"gateway-ha/config.yaml " });
62
62
63
63
log .info ("======== SERVER STARTED ========" );
64
64
}
You can’t perform that action at this time.
0 commit comments