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

MongoDB replica set connection not closed 5.0.0.beta

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: