Skip to content

Improve default config values for connection pool #428

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

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

lutovich
Copy link
Contributor

PR changes default values from "unlimited" to lower and more realistic values. Modified settings are:

  • maxConnectionLifetime - changed from unlimited to 1 hour because it seems
    reasonable to periodically "refresh" connections and make sure they are
    not affected by network infrastructure.

  • maxConnectionPoolSize - changed from Integer.MAX_VALUE to 100 because
    unlimited connection pool is dangerous and might result in excessive use
    of resources and OOMs in the database, if connections there are
    not limited.

  • connectionAcquisitionTimeout - changed from unlimited to 60 seconds
    to not cause infinite blocking.

Commit changes default values from "unlimited" to lower and more
realistic values. Modified settings are:

  * `maxConnectionLifetime` - changed from unlimited to 1 hour because it seems
    reasonable to periodically "refresh" connections and make sure they are
    not affected by network infrastructure.

  * `maxConnectionPoolSize` - changed from `Integer.MAX_VALUE` to 100 because
    unlimited connection pool is dangerous and might result in excessive use
    of resources and OOMs in the database, if connections there are
    not limited.

  * `connectionAcquisitionTimeout` - changed from unlimited to 60 seconds
    to not cause infinite blocking.
@lutovich lutovich requested a review from zhenlineo November 13, 2017 15:16
@zhenlineo
Copy link
Contributor

+1

@lutovich lutovich merged commit 5c57d60 into neo4j:1.5 Nov 14, 2017
@lutovich lutovich deleted the 1.5-default-config-values branch November 14, 2017 15:12
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.

2 participants