Periodically verify data stored correctly within couchbase


#1

How can I run a check on couchbase to scrub / verify all the data in the database, and ensure it is free from errors ?

In MSSQL we have checkdb, on ZFS we have scrub - is there anything like this in couch ?


#2

All the data stored on disk by Couchbase uses CRC32 error-detecting code, which is automatically checked every time the data is read / written, including during compaction where all live data will be read (and the CRC checked).


#3

Thanks !

How can I invoke this command to run over the whole database as part of a maintenance task ?

What about the verification of the data structure that indexes all the data on disk ?

I found the on disk format here: https://github.com/couchbaselabs/couchstore/wiki/Format