# Do I need to restart Mongrel every time I make a change?

**URL:** <https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259>\
**Category:** Rails\
**Created:** [June 7, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259 "2007-06-07T21:51:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 7, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259/1 "2007-06-07T21:51:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 7, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259/2 "2007-06-07T22:20:36Z")

</div>

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.

Michael

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 7, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259/3 "2007-06-07T23:03:40Z")

</div>

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?

Thanks!  
Adam

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 8, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259/4 "2007-06-08T13:41:13Z")

</div>

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  
notice…

gustin

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 8, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259/5 "2007-06-08T13:51:14Z")

</div>

i am probably wrong in the above message, the transaction may roll  
back, but you’d probably not be able to warn the user.

gusitn
