|
|
|
|
|
by skorgu
5862 days ago
|
|
I think Cassandra always writes to the Commit Log before returning success, it just doesn't update the SStables yet: > Commit logs receive every write made to a Cassandra node and have the potential to block client operations [1] I'm no expert so it may be possible to turn this off but I couldn't find reference to it. [1] http://wiki.apache.org/cassandra/CassandraHardware |
|
Sure, but the write is not the significant part (it is likely to be cached in memory); the question is how often the commit log is sync'ed to disk. I'm no Cassandra expert, but I believe the default is to fsync() the commit log periodically, but to allow operations to return successfully before an fsync() has occurred. There's also a mode to require fsync() before returning success for an operation.
http://wiki.apache.org/cassandra/Durability