...
- This will run a simple recovery with one partition and one backup. The simplest way to run more complex recoveries is to modify
recovery.py
to change the arguments to therecover
method. For example, if you replace the last line of the script (which is currentlypprint.pprint(recover())
with the following:
it will run with a total of 2 partitions and 12 backups.No Format args = {} args['numBackups'] = 12 args['numPartitions'] = 2 args['objectSize'] = 1024 args['disk'] = 1 args['numObjects'] = 626012 * 600 // 640 args['oldMasterArgs'] = '-mt %d' % (800 * args['numPartitions']) args['newMasterArgs'] = '-mt 16000' args['replicas'] = 3 pprint.pprint(recover(**args))
...