Automatic Tarantool Recovery¶
If your system architecture doesn’t imply uninterrupted availability of Tarantool servers, it is recommended to enable automatic database recovery. In this case, each time an error occurs while reading a snapshot or xlog file, Tarantool will skip invalid records, read as much data as possible, and re-build the file.
Warning
The automatic recovery process may result in MongoDB and Tarantool being out of sync.
To enable automatic database recovery, do the following:
Note
You have to repeat the following instructions on each Tarantool shard.
Open a shard configuration file.
sudo vi /etc/tarantool/instances.enabled/<shard_001>.lua
Uncomment
force_recovery = true
.box.cfg{ force_recovery = true, }
Restart the shard.
sudo systemctl restart tarantool@<shard_001>.service