Skip to content

Commit 4bf1528

Browse files
authored
fix: allow configurable max startup samples (#243)
2 parents e3c6643 + 4703541 commit 4bf1528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis_client/cluster/node.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Node
1515
SLOT_SIZE = 16_384
1616
MIN_SLOT = 0
1717
MAX_SLOT = SLOT_SIZE - 1
18-
MAX_STARTUP_SAMPLE = 37
18+
MAX_STARTUP_SAMPLE = Integer(ENV.fetch('REDIS_CLIENT_MAX_STARTUP_SAMPLE', 3))
1919
MAX_THREADS = Integer(ENV.fetch('REDIS_CLIENT_MAX_THREADS', 5))
2020
IGNORE_GENERIC_CONFIG_KEYS = %i[url host port path].freeze
2121
DEAD_FLAGS = %w[fail? fail handshake noaddr noflags].freeze

0 commit comments

Comments
 (0)