Skip to content

Commit

Permalink
fix router.yaml config file
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBeR007 committed Apr 12, 2024
1 parent 865fa1e commit 9a83d7f
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions examples/router.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
host: '[spqr_router_1_1]'
host: '[localhost]'
router_port: '8432'
admin_console_port: '8433'
grpc_api_port: '7001'
Expand All @@ -13,6 +13,9 @@ time_quantiles:
- 0.5
- 0.9

init_sql: "examples/init.sql"
use_init_sql: false

frontend_tls:
key_file: /etc/odyssey/ssl/server.key
cert_file: /etc/odyssey/ssl/server.crt
Expand Down Expand Up @@ -42,31 +45,23 @@ backend_rules:
auth_method: md5
password: strong


log_level: debug

shards:
sh1:
tls:
root_cert_file: /path/to/root.ca
sslmode: disable
db: db1
usr: user1
pwd: 12345678
type: DATA
hosts:
- '192.168.233.2:6432'
- 'localhost:5550'
sh2:
tls:
root_cert_file: /path/to/root.ca
sslmode: disable
type: DATA
hosts:
- '192.168.233.3:6432'
w1:
tls:
root_cert_file: /path/to/root.ca
sslmode: disable
db: db1
usr: user1
pwd: 12345678
type: WORLD
hosts:
- '192.168.233.8:6432'
- 'localhost:5551'

0 comments on commit 9a83d7f

Please sign in to comment.