Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-424

Allow pool to shrink

      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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: