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

Set sqlalchemy pool size #1391

Merged
merged 1 commit into from
Feb 22, 2018
Merged

Conversation

csordasmarton
Copy link
Contributor

  • For PostgreSQL the default allowed max connection is 100. If we have to many products and multiple servers then we can reach this limit very easily because we create 5 pool for each product by default.
    E.g.: 2 servers (load balanced) with a shared database which contains 10 products and 1 config database will create maximum (10 + 1) * 5 * 2 = 110 pool. In this case we can reach the default connection limit and PostgreSQL will not allow more connections.
  • For SQlite we use the NullPool which doesnt pool connections.

* For PostgreSQL the default allowed max connection is 100. If we
have to many products and multiple servers then we can reach this
limit very easily because we create 5 pool for each product by
default.
E.g.: 2 servers (load balanced) with a shared database which
contains 10 products and 1 config database will create maximum
(10 + 1) * 5 * 2 = 110 pool. In this case we reach the default
connection limit and PostgreSQL will not allow more connections.
* For SQlite we use the NullPool which doesnt pool connections.
@csordasmarton csordasmarton added this to the release 6.5.1 milestone Feb 22, 2018
@csordasmarton csordasmarton requested a review from gyorb February 22, 2018 13:06
@Xazax-hun Xazax-hun merged commit 9680955 into Ericsson:master Feb 22, 2018
@csordasmarton csordasmarton deleted the set-pool-size branch March 5, 2018 09:51
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

Successfully merging this pull request may close these issues.

3 participants