scripts/recovery.py can be used to run recoveries for testing.
You should probably set up ssh master mode for each of the cluster nodes. Here is a shell script that you can run on rcmaster to do it:
- From a RAMCloud directory in which you have compiled the system, invoke
- This will run a recovery with a default configuration (currently as many masters and backups as the cluster can support). To try recoveries with different configurations, change the arguments passed to the
recovermethod, which are specified at the very end of
- The log files for all of the servers involved in the recovery are placed in the directory
recovery/latest. If you run more recoveries,
logs/latestalways refers to the most recent recovery, but log files from old recoveries are retained in other subdirectories of
- After running a recovery, you can run
scripts/recoverymetrics.py, which will examine the logs in
logs/latestand produce summary information describing the recovery.