-
Notifications
You must be signed in to change notification settings - Fork 19
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
High number of database connections #138
Comments
Hi again, while the best solution for limiting database connections is by using PgBouncer or SQL Relay, this would be a concern separately from this driver, as this will mean to use CrateDB's PostgreSQL interface instead. It is a viable option, and we should explore that route. With respect to the current implementation of the CrateDB PHP PDO driver, which uses CrateDB's HTTP interface through the Guzzle HTTP client library, we should at least provide a way to limit concurrency by following the corresponding Guzzle » Concurrent requests guideline, i.e. using With kind regards, |
I was wrong on my assumption Obviously, this can't be applied in situations when an unknown amount of requests from any clients has to be processed. |
I am now following up on the HTTP connection keep-alive / connection re-use aspects, with respect to the current HTTP client implementation based on Guzzle and the PHP cURL binding, if I am correct. -- https://stackoverflow.com/questions/972925/persistent-keepalive-http-with-the-php-curl-library I've identified the following settings from 1 might be interesting candidates to explore. However, it's a different thing if they can actually be used through Guzzle.
Footnotes |
Quickly searching my |
GH-53 adjusted the default timeout to |
Hi there,
users of this library reported about a high number of database connections to CrateDB. They are using it in a high-volume data ingest environment.
With kind regards,
Andreas.
/cc @hlcianfagna, @hammerhead
Footnotes
PHP PDO » Connections and Connection management ↩
The text was updated successfully, but these errors were encountered: