Closed weilandia closed 1 month ago
I ran into this exact problem after updating to updating to use a primary / primary_replica. We're on the default pool size right now. How many did you update to? I'm already running 30
@bdschultzAU it actually ended up not working. We ended up moving Blazer back to the primary for now.
@bdschultzAU it actually ended up not working. We ended up moving Blazer back to the primary for now.
thanks for the response @weilandia . I came to that conclusion too. I monkey patched it to force blazer to use the writer node for now
Closed because we changed our reporting infra, but I think this is still a problem.
After moving to a multidb setup in our app with automatic role switching, we're running into an issue where
/queries/tables?data_source=main
intermittently returns a 500 withNo connection pool for 'Blazer::Connection::Adapter96700' found.
.NOTE: We were also getting anActiveRecord::ConnectionNotEstablished
error intermittently when running queries after the switch, but this seems to have been fixed by increasing our db pool size.BACKTRACE:
lib/active_record/middleware/database_selector.rb:66 call ...