On Jan 12, 4:20 pm, Hongli Lai <
hon...@phusion.nl> wrote:
> You only need to kill the ApplicationSpawner and Rails processes.
For anyone interested in achieving the same thing, we have now set the
Brightbox gem up to perform a restart like this
desc "Hard restart your passenger instances by killing the
dispatcher"
task :hard_restart, :roles => :app, :except => {:no_release =>
true} do
soft_restart
run "pkill -f '^Rails: #{deploy_to}' || true"
run "pkill -f '^Passenger ApplicationSpawner: #{deploy_to}' ||
true"
end
Which seems to have the desired effect of immediately freeing up
database connections.
Thanks,
David