From b0d503652ca06da6b712ac70aa380ca161e9bf65 Mon Sep 17 00:00:00 2001 From: sinadarbouy Date: Tue, 16 Jul 2024 22:29:17 +0200 Subject: [PATCH] changed yaml structure to support multiple proxies --- gatewayd.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gatewayd.yaml b/gatewayd.yaml index 90fa2d73..65356412 100644 --- a/gatewayd.yaml +++ b/gatewayd.yaml @@ -3,7 +3,7 @@ loggers: default: output: ["console"] # "stdout", "stderr", "syslog", "rsyslog" and "file" - level: "debug" # panic, fatal, error, warn, info (default), debug, trace + level: "info" # panic, fatal, error, warn, info (default), debug, trace noColor: False timeFormat: "unix" # unixms, unixmicro and unixnano consoleTimeFormat: "RFC3339" # Go time format string @@ -33,7 +33,7 @@ metrics: clients: default: network: tcp - address: localhost:5434 + address: localhost:5432 tcpKeepAlive: False tcpKeepAlivePeriod: 30s # duration receiveChunkSize: 8192 @@ -46,7 +46,7 @@ clients: backoff: 1s # duration backoffMultiplier: 2.0 # 0 means no backoff disableBackoffCaps: false - read-db: + default-2: network: tcp address: localhost:5433 tcpKeepAlive: False @@ -65,13 +65,13 @@ clients: pools: default: size: 10 - read-db: + default-2: size: 10 proxies: default: healthCheckPeriod: 60s # duration - read-db: + default-2: healthCheckPeriod: 60s # duration servers: @@ -80,9 +80,17 @@ servers: address: 0.0.0.0:15432 proxies: - "default" - - "read-db" + - "default-2" loadBalancer: strategy: ROUND_ROBIN + # Not yet implemented. + # loadBalancingRules: + # - condition: "default" + # percentages: + # - proxy: "default" + # percentage: 70 + # - proxy: "default-2" + # percentage: 30 enableTicker: False tickInterval: 5s # duration enableTLS: False