Start/Restart not all at once?

6 views
Skip to first unread message

Carl

unread,
Jul 9, 2008, 2:57:42 PM7/9/08
to god.rb
Hi,

We have a cluster of 15 mongrels. When I do 'god restart mongrel', it
seems to be executing all the commands in parallel, which means that
all the mongrels are killed then restarted at the same time (when
doing restart)

The problem is that starting a mongrel is resource consuming and doing
it this way makes the system very slow. Moreover, it takes forever
(minutes) to have a single mongrel back up, which means that we lose a
lot of requests.

Is it possible to have God act as following instead?

1. Stop Mongrel 1
1. Start Mongrel 1
1. Stop Mongrel 2
1. Start Mongrel 2
1. Stop Mongrel 3
1. Start Mongrel 3
1. Stop Mongrel n
1. Start Mongrel n

I understand that different mongels might serve different versions of
the application, but that's fine for us.

Thanks!



Max

unread,
Aug 7, 2008, 1:59:39 PM8/7/08
to god.rb
Hi,

a workaround for this is using an increasing delay for each mongrel as
described here:

http://blog.pragmatic-it.de/articles/2008/07/09/poor-mans-rolling-restart-for-thin-god

Max
Reply all
Reply to author
Forward
0 new messages