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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
MichaelLatta
2007-Jun-07 20:19 UTC
Re: Do I need to restart Mongrel every time I make a change?
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 On Jun 7, 12:50 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Northband
2007-Jun-07 21:02 UTC
Re: Do I need to restart Mongrel every time I make a change?
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 On Jun 7, 4:19 pm, MichaelLatta <lat...-ee4meeAH724@public.gmane.org> wrote:> 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 > > On Jun 7, 12:50 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote: > > > > > 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- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jun 7, 5:02 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote:> 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 > > On Jun 7, 4:19 pm, MichaelLatta <lat...-ee4meeAH724@public.gmane.org> wrote: > > > 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 > > > On Jun 7, 12:50 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote: > > > > 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- Hide quoted text - > > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jun 8, 7:40 am, gustin <entrywayconsult...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > > On Jun 7, 5:02 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote: > > > 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 > > > On Jun 7, 4:19 pm, MichaelLatta <lat...-ee4meeAH724@public.gmane.org> wrote: > > > > 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 > > > > On Jun 7, 12:50 pm, Northband <a...-HpPXGADKSZIu+uzj59/SXw@public.gmane.org> wrote: > > > > > 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- Hide quoted text - > > > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---