Forum: Ruby on Rails Do I need to restart Mongrel every time I make a change?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6ef49b7a2be12afc5840b21d69f1c3b2?d=identicon&s=25 Northband (Guest)
on 2007-06-07 21:51
(Received via mailing list)
When we make changes to our apps, do we need to restart
mongrel_cluster?  For instance, text changes maybe not so, but if
change some logic of sorts, does that require a restart?

My concern is, what happens to current users?  Do their transactions
get dropped? Does mongrel first finish them before shutting down?  Is
there a graceful method to restarting?

Really wondering about this.  My fear is if we restart after making a
change, I don't want to mess up db inserts/updates, etc...

-adam O
588ab1c0a5610a7e160a3b101abb91e6?d=identicon&s=25 MichaelLatta (Guest)
on 2007-06-07 22:20
(Received via mailing list)
Unless the change is in a html static file you must restart your
mongrels.  In developer mode it auto-reloads content.  In production
mode it does not.

6ef49b7a2be12afc5840b21d69f1c3b2?d=identicon&s=25 Northband (Guest)
on 2007-06-07 23:03
(Received via mailing list)
So do you just cross your fingers and hope you don't knock people off,
or interrupt any type of transaction....?

Is there any way to ensure that inserts, updates, transactions, won't
get interrrupted if you have to restart?

Does it matter if you have several app servers running multi instances
of mongrel?

03904beab6477e7228c0495e4c0975c3?d=identicon&s=25 gustin (Guest)
on 2007-06-08 13:41
(Received via mailing list)
if you have it in a transaction it should roll back, if you are
catching it right you should be warning the user.

best thing is to restart at low traffic times or put up a site-down

03904beab6477e7228c0495e4c0975c3?d=identicon&s=25 gustin (Guest)
on 2007-06-08 13:51
(Received via mailing list)
i am probably wrong in the above message, the transaction may roll
back, but you'd probably not be able to warn the user.

This topic is locked and can not be replied to.