Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4294

Mongoid 5 Upgrade Continuously Increasing Connections

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: 5.1.3
    • Component/s: None
    • Labels:
    • Environment:
      Rails 4.2 running on CoreOS / Docker, Mongoid 5.1.3, Sidekiq

      We're in the process of upgrading our application to use the Mongoid 5 gem so that we can eventually upgrade to Mongo 2.6.

      As soon as we deployed with Mongoid 5, the number of open connections seems to grow rapidly.

      We suspect its related to our specific application, which uses Rails and has Sidekiq for async processing - our guess is that the async worker connections are not being terminated correctly by Mongo, leading to an ever growing pool of connections, but this seems to be a problem with Mongoid/Mongo, not with Sidekiq.

      There's a thread about this here on the Mongoid support forums, but it appears to only be fixed in Mongoid 6: https://jira.mongodb.org/browse/MONGOID-4253

      Any ideas on what might be causing this to happen / possible solutions?

            Assignee:
            Unassigned Unassigned
            Reporter:
            jack-kearney Jack Kearney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: