Skip to content

Commit

Permalink
added required parameters to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
sinadarbouy committed Jul 28, 2024
1 parent 38744ab commit 754a426
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
25 changes: 25 additions & 0 deletions cmd/testdata/gatewayd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,34 @@ clients:
default:
active-writes:
address: localhost:5432
network: tcp
tcpKeepAlive: False
tcpKeepAlivePeriod: 30s # duration
receiveChunkSize: 8192
receiveDeadline: 0s # duration, 0ms/0s means no deadline
receiveTimeout: 0s # duration, 0ms/0s means no timeout
sendDeadline: 0s # duration, 0ms/0s means no deadline
dialTimeout: 60s # duration
# Retry configuration
retries: 3 # 0 means no retry and fail immediately on the first attempt
backoff: 1s # duration
backoffMultiplier: 2.0 # 0 means no backoff
disableBackoffCaps: false
test:
write:
address: localhost:5433
network: tcp
tcpKeepAlive: False
tcpKeepAlivePeriod: 30s # duration
receiveChunkSize: 8192
receiveDeadline: 0s # duration, 0ms/0s means no deadline
receiveTimeout: 0s # duration, 0ms/0s means no timeout
sendDeadline: 0s # duration, 0ms/0s means no deadline
dialTimeout: 60s # duration
retries: 3 # 0 means no retry and fail immediately on the first attempt
backoff: 1s # duration
backoffMultiplier: 2.0 # 0 means no backoff
disableBackoffCaps: false

pools:
default:
Expand Down
21 changes: 18 additions & 3 deletions cmd/testdata/gatewayd_tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,30 @@ metrics:

clients:
default:
address: localhost:5432
active-writes:
address: localhost:5432
network: tcp
tcpKeepAlive: False
tcpKeepAlivePeriod: 30s
receiveChunkSize: 8192
receiveDeadline: 0s
receiveTimeout: 0s
sendDeadline: 0s
dialTimeout: 60s
retries: 3
backoff: 1s
backoffMultiplier: 2.0
disableBackoffCaps: false

pools:
default:
size: 10
active-writes:
size: 10

proxies:
default:
healthCheckPeriod: 60s # duration
active-writes:
healthCheckPeriod: 60s # duration

servers:
default:
Expand Down

0 comments on commit 754a426

Please sign in to comment.