-
Notifications
You must be signed in to change notification settings - Fork 23
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
Timed out waiting for connection #2629
Comments
the default connection timeout is 30 seconds. |
the max connections is 100
Note, it seems the metabase takes 15 connections from that.
|
Weirdly the max pool size of the diesel pool manager is only 10 https://github.com/sfackler/r2d2/blob/6ab3302eeca82732a5e6c9385092fdb6e011f173/src/config.rs#L83-L94 |
I tried to reproduce this issue by opening about 100 positions, with additional 3 apps open that are constantly connected. I setup the rollover to run every 50 seconds, but every was working just fine besides a minor flaw reported here
Everything seems to be stable and now errors are thrown due to |
One way we could deal with that issue is to make use of |
Since the connections are limited it's better to not block a connection unnecessarily for a long time. As we are using a connection pool (r2d2) getting a connection is very cheap. This might help in the context of #2629
The coordinator is regularly failing to acquire a connection from the diesel pool manager.
https://itchysats.grafana.net/explore?schemaVersion=1&panes=%7B%2291e%22:%7B%22datasource%22:%22grafanacloud-logs%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22grafanacloud-logs%22%7D,%22editorMode%22:%22builder%22,%22expr%22:%22%7Bcontainer%3D%5C%22coordinator%5C%22%7D%20%7C%3D%20%60timed%20out%20waiting%20for%20connection%60%20%7C%20json%22,%22queryType%22:%22range%22%7D%5D,%22range%22:%7B%22from%22:%22now-30d%22,%22to%22:%22now%22%7D%7D%7D&orgId=1
Originally posted by @holzeis in #2628 (comment)
The text was updated successfully, but these errors were encountered: