3 ms·
DBMSes always keep their database in the file system in a consistent state to be able to recover from system crashes. Taking a file system snapshot is equivale
by RX14 7y ago
DBMSes always keep their database in the file system in a consistent state to be able to recover from system crashes. Taking a file system snapshot is equivalent to pulling the power on the database server in terms of data recovery, but databases are designed to support this.
- tjoff 7y agoAs do filesystems. Yet I've seen anyone argue that cutting the power is the recommended way of doing backups. In fact the opposite, make sure to use an UPS just so that you can shutdown cleanly in the unfortunate event. For example: https://blogs.oracle.com/paulie/backing-up-mysql-using-zfs-snapshots-and-clones https://blogs.oracle.com/paulie/backing-up-mysql-using-zfs-s...
- wmf 7y agoSome people came up with the idea of "crash-only software", arguing that it's better to maintain one code path (recovering from a crash) than two (clean start and recovery), but it hasn't caught on that much. https://www.usenix.org/legacy/events/hotos03/tech/full_papers/candea/candea_html/index.html https://www.usenix.org/legacy/events/hotos03/tech/full_paper...
- paulddraper 7y agoGoogle follows this, I believe