-
Notifications
You must be signed in to change notification settings - Fork 91
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(redis): Allow configuring Redis pools individually #3859
Conversation
let pool = create_redis_pool(pool)?; | ||
Ok(RedisPools { | ||
project_configs: pool.clone(), | ||
cardinality: pool.clone(), | ||
quotas: pool.clone(), | ||
misc: pool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the part that's different from the first PR: we only create one pool, then clone it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I might have introduced some merge conflicts with min_idle
, should be straight forward to update.
Second attempt at #3843. Implements #3829.
This time around, if there is only one Redis pool configuration, we only create one pool and clone it 4 ways (instead of creating 4 identical pools like last time). This means that the case of only one configuration preserves the current behavior, modulo the bug fix related to
DEFAULT_MIN_MAX_CONNECTIONS
.