Skip to content

Commit

Permalink
fix router.yaml config file (#612)
Browse files Browse the repository at this point in the history
* fix router.yaml config file

* fix router.yaml config file

* add user and password to router.yaml
  • Loading branch information
JoBeR007 authored Apr 12, 2024
1 parent 865fa1e commit 2637d7a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 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,6 +45,9 @@ backend_rules:
auth_method: md5
password: strong


log_level: debug

shards:
sh1:
tls:
Expand All @@ -52,21 +58,13 @@ shards:
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
type: DATA
hosts:
- '192.168.233.8:6432'
- 'localhost:5551'

0 comments on commit 2637d7a

Please sign in to comment.