cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debraj Manna <subharaj.ma...@gmail.com>
Subject Restart Cassandra automatically
Date Fri, 05 Feb 2016 04:26:05 GMT
Hi,

What is the best way to keep cassandra running? My requirement is if for
some reason cassandra stops then it should get started automatically.

I tried to achieve this by adding cassandra to supervisord. My supervisor
conf for cassandra looks like below:-

[program:cassandra]
command=/bin/bash -c 'sleep 10 && bin/cassandra'
directory=/opt/cassandra/
autostart=true
autorestart=true
startretries=3
stderr_logfile=/var/log/cassandra_supervisor.err.log
stdout_logfile=/var/log/cassandra_supervisor.out.log

But it does not seem to work properly. Even if I stop cassandra from
supervisor then the cassandra process seem to be running if I do

ps -ef | grep cassandra

I also tried the configuration mentioned in this question
<http://stackoverflow.com/questions/33442911/cassandra-is-not-monitored-correctly-by-supervisor?rq=1>
but still no luck.

Can someone let me know what is the best way to keep cassandra running on
production environment?
Environment

   - Cassandra 2.2.4
   - Debian 8

Thanks,

Mime
View raw message