-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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.
- related to
-
MONGOID-4167 Raise an exception if Model#with is called including options that aren't valid driver options
- Closed