On 29 June 2013 18:59, Ravindra Jaju <ravindra.j...@gmail.com> wrote:
> 1] Upstart is good - so, I will need to figure out the equivalent on > Fedora (which is what I use - primarily because I'm too familiar with it > and have been an RH/Fedora guy since about ~1995). Essentially, a daemon > monitor which will restart in case of failures. I've been somewhat rusty > with the recent releases of all Linux-es from the systems admin point of > view. > Since Fedora 9, Upstart has been the default on that as well, so you're in luck :) > 2] Is there a suggested way to manage the java process - especially > starting and stopping? I'm okay with a few seconds of downtime, and I can > write scripts to do this myself, but don't want to reinvent the wheel if > there are already some tools/scripts/practices which make it > straightforward. I'm especially looking for current practices with folks > who use clojure with jetty/http-kit like servers, and not jboss et al. :) > Upstart will handle the starting and stopping. It'll just run a script to start, and terminate the process to stop. You can avoid any downtime by configuring nginx buffer requests; if your application is unavailable, nginx will keep retrying until a timeout. From your user's point of view, one request will take a few seconds longer, but there won't be any downtime. And if you have more than one application process, you can restart the processes one at a time, and avoid any sort of delay. If you're interested, I could be persuaded to write a blog post on it. :) - James -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.