Skip to content

Commit

Permalink
lower default values for CACHE_ELECTION_TIMEOUT, `CACHE_RECONNECT_T…
Browse files Browse the repository at this point in the history
…IMEOUT_LOWER` and `CACHE_RECONNECT_TIMEOUT_UPPER`
  • Loading branch information
sebadob committed May 17, 2024
1 parent 0c7ef41 commit a83789f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ CACHE_KEEPALIVE_TIMEOUT=5
# The timeout for the leader election. If a newly saved leader request has not reached quorum after the timeout, the
# leader will be reset and a new request will be sent out.
# CAUTION: This should not be below CACHE_RECONNECT_TIMEOUT_UPPER, since cold starts and elections will be problematic in that case.
# value in seconds, default: 5
CACHE_ELECTION_TIMEOUT=5
# value in seconds, default: 2
CACHE_ELECTION_TIMEOUT=2

# These 2 values define the reconnect timeout for the HA Cache Clients.
# The values are in ms and a random between these 2 will be chosen each time to avoid conflicts and race conditions
# (default: 2500)
CACHE_RECONNECT_TIMEOUT_LOWER=2500
# (default: 5000)
CACHE_RECONNECT_TIMEOUT_UPPER=5000
# (default: 500)
CACHE_RECONNECT_TIMEOUT_LOWER=500
# (default: 2000)
CACHE_RECONNECT_TIMEOUT_UPPER=2000

RUST_LOG=info

0 comments on commit a83789f

Please sign in to comment.