forked from trinodb/trino-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgateway-ha-config.yml
45 lines (37 loc) · 1.02 KB
/
gateway-ha-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
routingRules:
rulesEngineEnabled: False
# rulesConfigPath: "src/main/resources/rules/routing_rules.yml"
requestRouter:
port: 8080
name: trinoRouter
historySize: 1000
requestBufferSize: 8192
dataStore:
jdbcUrl: jdbc:postgresql://localhost:5432/trino_gateway_db
user: trino_gateway_db_admin
password: P0stG&es
driver: org.postgresql.Driver
queryHistoryHoursRetention: 24
clusterStatsConfiguration:
monitorType: INFO_API
server:
applicationConnectors:
- type: http
port: 8090
useForwardedHeaders: true
adminConnectors:
- type: http
port: 8091
useForwardedHeaders: true
# This can be adjusted based on the coordinator state
monitor:
taskDelaySeconds: 10
modules:
- io.trino.gateway.ha.module.HaGatewayProviderModule
- io.trino.gateway.ha.module.ClusterStateListenerModule
- io.trino.gateway.ha.module.ClusterStatsMonitorModule
managedApps:
- io.trino.gateway.ha.GatewayManagedApp
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor
logging:
type: external