Skip to content

Why connect number can big than poolSize? #1808

Answered by monkey92t
codergma asked this question in Q&A
Discussion options

You must be logged in to vote

You can see here

https://github.com/go-redis/redis/blob/dd4b7eb3b41c39c4f74ca016f09c55770df449c4/internal/pool/pool.go#L270-L304

Under normal circumstances, it needs to enter a queue first (length is poolsize). In special cases (such as PubSub), it may create a connection that is not in the connection pool (pooled=false)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@codergma
Comment options

Answer selected by codergma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants