Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix router.yaml config file #612

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
JoBeR007 marked this conversation as resolved.
Show resolved Hide resolved
- '192.168.233.8:6432'
- 'localhost:5551'
Loading