Allow pool to shrink

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add support for checking on unused resources in the pool so it can shrink over time (to the min pool size).

      This will work in conjunction with JAVA-710: support max connection idle time and connection life time.

      The connection pool will, at a configurable interval:

      1. prune all connections that exceed either the max idle or max life time
      2. ensure a minimum pool size

      By default:

      • min size == 0
      • interval == 1 minute

      The minimum size is configuration using the method com.mongodb.MongoClientOptions.Builder#minConnectionsPerHost and the minPoolSize query parameter on the Mongo URI. The interval is not currently configurable.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Scott Hernandez (Inactive)
              None
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: