Featured post
Nginx + Passenger + Rails 3 Rack processes hang -
i have mysql backed rails 3 application. have scaling issues reads on database , working on fixing them independently.
in meantime, since database queries take many minutes run, passenger spawns multiple rack processes (upto limit specified), of them wait / hang waiting database.
at point, nginx refuses accept more connections.
is there way can tell passenger timeout rails delegated calls , free resources can listen incoming requests?
thanks.
if you're handling queries in requests take many minutes, you're doing wrong.
requests should fast possible. several minutes unacceptable. consider off-loading long-running queries delayed::job, can run in background instead of blocking other requests.
also, don't know query you're running, if it's taking many minutes might want consider analyzing them.
- Get link
- X
- Other Apps
Comments
Post a Comment