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

get session error #406

Closed
funs690 opened this issue Dec 20, 2021 · 5 comments
Closed

get session error #406

funs690 opened this issue Dec 20, 2021 · 5 comments
Labels
type/question Type: question about the product

Comments

@funs690
Copy link

funs690 commented Dec 20, 2021

  1. nebula pool init success
  2. for long time not to use the connection
  3. then to get the connetion will cost long time to get the session

minConnsSize: 3
maxConnsSize: 10

@funs690
Copy link
Author

funs690 commented Dec 20, 2021

Version 2.6.1

@vchangpengfei
Copy link
Contributor

This should be not enough connections available, if you want to return, the waitTime parameter you can set NebulaPoolConfig

@funs690
Copy link
Author

funs690 commented Dec 21, 2021

set the "minConnsSize:3" means the pool will keep least 3 connections or need keepalive ?

@Nicole00
Copy link
Contributor

Nicole00 commented Feb 23, 2023

set the "minConnsSize:3" means the pool will keep least 3 connections or need keepalive ?

yeah, the pool will evict connections when the size of idle connections larger than minConnsSize. But it allows the size of connection less than minConnsSize. And please notice that, when init pool, it will not create minConnsSize connections for you , it creates connection object only when you need.
refer to https://commons.apache.org/proper/commons-pool/apidocs/org/apache/commons/pool2/impl/GenericObjectPoolConfig.html#setMinIdle-int-

@QingZ11
Copy link

QingZ11 commented Mar 30, 2023

I have noticed that the issue you created hasn’t been updated for nearly a month, so I have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime.

Thanks a lot for your contribution anyway 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

5 participants