I wrote a script that start cassandra and then check its status
this way I have erorr:
$ bin/cassandra -p cassandra.pid > /dev/null 2>/dev/null ; bin/nodetool ring
Failed to connect to '127.0.0.1:7199': Connection refused
If I add sleep 10 between bin/cassandra & bin/nodetool - it work fine
my concern is that in a busy system, 10 sec will not be enough ....
Isn't any smarter way for this ?