From 9a83d7f05d02972d54aeec8440211ae8254705fd Mon Sep 17 00:00:00 2001 From: Daniil Kashapov Date: Fri, 12 Apr 2024 16:07:41 +0500 Subject: [PATCH 1/3] fix router.yaml config file --- examples/router.yaml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/examples/router.yaml b/examples/router.yaml index c067b499b..e1f17288c 100644 --- a/examples/router.yaml +++ b/examples/router.yaml @@ -1,4 +1,4 @@ -host: '[spqr_router_1_1]' +host: '[localhost]' router_port: '8432' admin_console_port: '8433' grpc_api_port: '7001' @@ -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 @@ -42,6 +45,9 @@ backend_rules: auth_method: md5 password: strong + +log_level: debug + shards: sh1: tls: @@ -49,24 +55,13 @@ shards: 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' From 1655bdf177cfdf624687f313ae655382fccf62ec Mon Sep 17 00:00:00 2001 From: Daniil Kashapov Date: Fri, 12 Apr 2024 16:15:12 +0500 Subject: [PATCH 2/3] fix router.yaml config file --- examples/router.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/router.yaml b/examples/router.yaml index e1f17288c..171dc97aa 100644 --- a/examples/router.yaml +++ b/examples/router.yaml @@ -55,6 +55,7 @@ shards: sslmode: disable db: db1 usr: user1 + pwd: 12345678 type: DATA hosts: - 'localhost:5550' From b09e8545b93e3134cdd95bacad394ed9c89bdf43 Mon Sep 17 00:00:00 2001 From: Daniil Kashapov Date: Fri, 12 Apr 2024 16:29:37 +0500 Subject: [PATCH 3/3] add user and password to router.yaml --- examples/router.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/router.yaml b/examples/router.yaml index 171dc97aa..8592791c8 100644 --- a/examples/router.yaml +++ b/examples/router.yaml @@ -63,6 +63,8 @@ shards: tls: root_cert_file: /path/to/root.ca sslmode: disable + usr: user1 + pwd: 12345678 type: DATA hosts: - 'localhost:5551'