Kind of.  That was the original design, and it's definitely still safe
to use that way, but the restart will obvoiusly be faster if it
doesn't have to replay commitlog.  So a lot of people deploy something
like what Chris described.

On Tue, Nov 8, 2011 at 6:31 PM, Dan Hendry <dan.hendry.j...@gmail.com> wrote:
> I *thought* Cassandra was supposed to have a crash only design[1]. My 
> understanding is that it is safe to simply kill the process and with the 
> regular TERM signal and, shutdown would be blocked on fsyncing the commit log 
> but nothing else (obviously not true if you kill -9 the sucker) even when 
> using periodic commit log mode. Again, my understanding is that the disable 
> thrift/gossip commands have no functional purpose (both are going to go down 
> with as part of drain are they not?). Issuing a 'drain' only minimizes the 
> amount of commit log which needs to be replayed when starting back up.
>
> [1] Best reference I could find for 'crash only': 
> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Stopping-Cassandra-gracefully-td3865563.html
>
> Dan
>
> -----Original Message-----
> From: Radim Kolar [mailto:h...@sendmail.cz]
> Sent: November-08-11 6:29
> To: user@cassandra.apache.org
> Subject: Re: shutdown by KILL
>
>> Ooops, sorry about that. I overlooked the drain. Sorry for the 
>> misinformation!
>>
> cassandra still replays log file even on clean shutdown via nodetool
> drain. It usually takes a while. I don't think it has concept of
> clean-shutdown like SQL databases.
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.920 / Virus Database: 271.1.1/4004 - Release Date: 11/08/11 
> 02:34:00
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Reply via email to