kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kashyap Mhaisekar <kashya...@gmail.com>
Subject Re: Keeping Zookeeper and Kafka Server Up
Date Wed, 17 Jun 2015 14:03:11 GMT
We use supervisord for this. It ensures that the processes are always up
and running.

Thanks
Kashyap

On Wednesday, June 17, 2015, Shayne S <shaynest113@gmail.com> wrote:

> kafka-server-start.sh has a -daemon option, but I don't think Zookeeper has
> it.
>
> On Tue, Jun 16, 2015 at 11:32 PM, Su She <suhshekar52@gmail.com
> <javascript:;>> wrote:
>
> > It seems like nohup has solved this issue, even when the putty window
> > becomes inactive the processes are still running (I din't need to
> > interact with them). I might look into using screen or tmux as a long
> > term solution.
> >
> > Thanks Terry and Mike!
> >
> > Best,
> >
> > Su
> >
> >
> > On Tue, Jun 16, 2015 at 3:42 PM, Terry Bates <terryjbates@gmail.com
> <javascript:;>>
> > wrote:
> > > Greetings,
> > >
> > > nohup does the trick, as Mr. Bridge has shared. If you seem to want to
> > run
> > > these and still have some "interactivity" with
> > > the services, consider using "screen" or "tmux" as these will enable
> you
> > to
> > > run these programs in foreground, have added
> > > windows you can use to access shell, tail logs, and so on, and enable
> you
> > > to disconnect from the session, but still have
> > > these sessions available for re-attachment.
> > >
> > > In addition, I using "runit" for service supervision may enable you to
> > keep
> > > daemons running, but if your services are dying
> > > you may need to introspect more deeply on the root cause versus working
> > > around it by restarting them.
> > >
> > >
> > > *Terry Bates*
> > >
> > > *Email: *terryjbates@gmail.com <javascript:;>
> > > *Phone: (*412) 215-0881
> > > *Skype*: terryjbates
> > > *GitHub*: https://github.com/terryjbates
> > > *Linkedin*: http://www.linkedin.com/in/terryjbates/
> > >
> > >
> > > On Tue, Jun 16, 2015 at 3:30 PM, Mike Bridge <mike@bridgecanada.com
> <javascript:;>>
> > wrote:
> > >
> > >> Have you tried using "nohup"
> > >>
> > >>     nohup bin/zookeeper-server-start.sh config/zookeeper.properties &
> > >>     nohup bin/kafka-server-start.sh config/server.properties &
> > >>
> > >>
> > >> On Tue, Jun 16, 2015 at 3:21 PM, Su She <suhshekar52@gmail.com
> <javascript:;>> wrote:
> > >>
> > >> > Hello Everyone,
> > >> >
> > >> > I'm wondering how to keep Zookeeper and Kafka Server up even when
my
> > >> > SSH (using putty) becomes inactive. I've tried running it in the
> > >> > background (using &), but it seems like it stops sometimes after
a
> > >> > couple hours or so and I'll have to restart zookeeper and/or the
> kafka
> > >> > server.
> > >> >
> > >> > The only remediation i've found is to export TMOUT=[big number], but
> > >> > there must be another solution.
> > >> >
> > >> > Thank you!
> > >> >
> > >> > Best,
> > >> >
> > >> > Su
> > >> >
> > >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message