Skip to content

Configuring Crash Safe Master

Reid Horuff edited this page Aug 25, 2016 · 7 revisions

MyRocks now supports Two Phase Commit (2PC) as a means of providing crash safe transactions. By default this behavior is disabled. To enable 2PC the binary log must also be enabled. For maximum durability sync the binlog after every transaction by setting sync_binlog=1

example my.cnf enabling Two Phase Commit:

[mysqld]
log-bin
sync_binlog=1
rocksdb_disable_2pc=OFF
Clone this wiki locally