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

Set deadpool config size to 4 conns #39

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

ekzhang
Copy link
Owner

@ekzhang ekzhang commented Nov 7, 2023

This is a change for server connection pool performance. We only use the Redis connection pool to optimize immediate GET and SET operations, which should be very fast, so it doesn't make sense to keeping too many idle connections in the pool.

Deadpool's connection pool only configures the number of slots that are maintained for connections to be recycled, so this is fine. Unlike other pools, this will still create more Redis connections if we hit the max pool size.

This is a change for server connection pool performance. We only use the Redis connection pool to optimize immediate `GET` and `SET` operations, which should be very fast, so it doesn't make sense to keeping too many idle connections in the pool.

Deadpool's connection pool only configures the number of slots that are maintained for connections to be recycled, so this is fine. Unlike other pools, this will still create more Redis connections if we hit the max pool size.
@ekzhang ekzhang merged commit da0b4ac into main Nov 7, 2023
4 checks passed
@ekzhang ekzhang deleted the ekzhang/adjust-max-size branch November 7, 2023 18:59
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.

1 participant