Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1605

Establish working connections in a background thread

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0.rc0
    • Affects Version/s: None
    • Component/s: Connections
    • None
    • Minor Change

      CMAP spec now requires that drivers begin creating working connections (i.e. handshaken & authed) up to min pool size as soon as the pool is created.

      The current driver behavior, as now documented on https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-create-client/#details-on-connection-pooling, is the driver only creates actual network connections to the servers when they are needed by operations. Specifying a min pool size affects how many established connections the driver will keep around, but does not cause the driver to eagerly create that many ready to be used connections.

      Once the behavior changes are made, production guidance per https://jira.mongodb.org/browse/RUBY-1712 needs to be updated for the new behavior.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: