Skip to content

Commit

Permalink
changed yaml structure to support multiple proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
sinadarbouy committed Jul 16, 2024
1 parent 5717cad commit b0d5036
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions gatewayd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,7 +33,7 @@ metrics:
clients:
default:
network: tcp
address: localhost:5434
address: localhost:5432
tcpKeepAlive: False
tcpKeepAlivePeriod: 30s # duration
receiveChunkSize: 8192
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit b0d5036

Please sign in to comment.