Open StephanieSunshine opened 10 months ago
Just to add to this, reducing the server.rb app to just the most basic test, the Mongo connect line does work.
bare.rb
require 'logger'
require 'mongo'
require 'pry'
L = Logger.new(STDOUT)
L.info 'Connecting to database'
M = Mongo::Client.new(['node1.cloud:27017', 'node2.cloud:27017', 'node3.cloud:27017'], database: 'xxxxx', max_pool_size: 200, max_connecting: 10, read: { mode: :secondary_preferred })
binding.pry
Trying to setup a connection to a Mongo database, an application just hangs. If I take the connection line in question into
irb
orpry
it works as expected. Strace points to something within io_uring.Strace output:
server.rb