8000 Reuse connections used for change feeds · Issue #365 · neumino/rethinkdbdash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Reuse connections used for change feeds #365

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

Open
graphicore opened this issue Dec 17, 2017 · 0 comments
Open

Reuse connections used for change feeds #365

graphicore opened this issue Dec 17, 2017 · 0 comments

Comments

@graphicore
Copy link

This comment #335 (comment) helped me to find a very subtle and hard to find bug in my application.

Rethinkdbdash is using one connection per query. By default it will open up to 1000 connections per server - that is if you have at some time in the past 1000 concurrent queries

My application is requesting a lot of of change feeds (not 1000 but I ran into it because I changed the default). This leads to the problem that my server eventually runs out of "free" connections. Without any notice the service becomes unresponsive, waiting for free connections (bound by change feeds).

I just checked the official rethinkdb driver. Its connection can handle multiple change feeds at the same time, so, there it would be possible to reuse connections.

At least, it would help if the driver could log something to stdout when the pool is fully in use (maybe after a waiting period).

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
0