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

Creating multiple cluster clients versus higher connections per host #23

Open
konradreiche opened this issue Jun 23, 2022 · 0 comments
Open

Comments

@konradreiche
Copy link
Contributor

In a recent refactor I changed code to instantiate one Redis cluster client but configure it to use more connections per host with the connsPerHost setting. I noticed performance was regressing a lot. Is this expected?

I read through the source code and evidently the more connections per host, the more goroutines are running. I couldn't explain why the performance was regressing, maybe more locking? In my case there are different implementations making use of the Redis client going to the same cluster. Overall performance is much better when instantiating a client per use case.

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

No branches or pull requests

1 participant