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

MongoDB replica set connection not closed 5.0.0.beta

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:

      Description

      In unicorn worker and sidekiq worker, all mongodb connections not closed. Will reach more than 1M MongoDB connections

      ruby      25127 25364     webapp  130u     IPv4          357685236       0t0       TCP api-1.c.shou-tv.internal:49807->mongodb-rs1.c.shou-tv.internal:27017 (ESTABLISHED)
      ruby      25127 25364     webapp  132u     IPv4          357679837       0t0       TCP api-1.c.shou-tv.internal:49809->mongodb-rs1.c.shou-tv.internal:27017 (ESTABLISHED)
      

      They only connect to primary although I configure it to read secondary.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vecio vecio
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: