Hi Ajay, honestly I would try to fix the main issue: Sometimes, the cassandra-process gets killed (reason unknown as of now).
As focusing on how to restart Apache Cassandra every minute sounds like a wrong approach to me: Adding this in cron would at least ensure that the maximum downtime is 59 > seconds (till the time root-cause of cassandra-crashing is known). What happens if 2,3 or 10 nodes go down at once? Also, hints due to this issue, read_repairs and other anti-entropy system will continuously be triggered. It doesn't sound healthy, predictable or even a working solution. When Cassandra stops it can be due to a heap OOM (see system.log or gc.log) or a native OOM (see kernel / system logs) or some other stuff logged in system.log. "nodetool tpstats" is also often useful. If you want to fix this we would probably be able to help you with it. About your cron issue, have you tried using sudo? As it is a quick-fix, it probably can be dirty. Just make sure new sstables are being written with the proper user ("cassandra" and not "root"). But again, I would not go that path, but rather fix the issue in Cassandra without loosing 1 minute with crontab. C*heers, ----------------------- Alain Rodriguez - @arodream - al...@thelastpickle.com France The Last Pickle - Apache Cassandra Consulting http://www.thelastpickle.com 2017-01-12 7:55 GMT+01:00 Benjamin Roth <benjamin.r...@jaumo.com>: > Yes, but it is legitimate to supervise and monitor nodes. I only doubt > that cron is the best tool for it. > > 2017-01-12 7:42 GMT+01:00 Martin Schröder <mar...@oneiros.de>: > >> 2017-01-12 6:12 GMT+01:00 Ajay Garg <ajaygargn...@gmail.com>: >> > Sometimes, the cassandra-process gets killed (reason unknown as of now). >> >> That's why you have a cluster of them. >> >> Best >> Martin >> > > > > -- > Benjamin Roth > Prokurist > > Jaumo GmbH · www.jaumo.com > Wehrstraße 46 · 73035 Göppingen · Germany > Phone +49 7161 304880-6 <+49%207161%203048806> · Fax +49 7161 304880-1 > <+49%207161%203048801> > AG Ulm · HRB 731058 · Managing Director: Jens Kammerer >