Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce max_startup_sample in ClusterConfig #369

Merged

Conversation

slai11
Copy link
Contributor

@slai11 slai11 commented Aug 15, 2024

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.

Sylvester Chin added 2 commits August 15, 2024 13:05
This allows individual `RedisClient::Cluster` instances to have its own
max startup sample size. This is useful if a single application connects
to multiple Redis Clusters of different sizes.
@supercaracal supercaracal self-requested a review August 15, 2024 11:14
@supercaracal supercaracal merged commit e268a51 into redis-rb:master Aug 19, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants