redis-rb / redis-cluster-client

Redis cluster-aware client for Ruby
https://rubygems.org/gems/redis-cluster-client
MIT License
21 stars 9 forks source link

feat: introduce max_startup_sample in ClusterConfig #369

Closed slai11 closed 3 months ago

slai11 commented 3 months ago

This PR proposes to let users configure individual RedisClient::Cluster instances using max_startup_sample.

A single application could connect to multiple Redis Clusters of different sizes. Using a single global envvar would mean we either over-sample on small clusters or under-sample on large clusters.