Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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 the recover method. For example, if you replace the last line of the script (which is currently pprint.pprint(recover()) with the following:
    No Format
        args = {}
        args['numBackups'] = 12
        args['numPartitions'] = 2
        args['objectSize'] = 1024
        args['disk'] = 1
        args['numObjects'] = 626012 * 600 // 640
        args['oldMasterArgs'] = '-m %d' % (800 * args['numPartitions'])
        args['newMasterArgs'] = '-m 16000'
        args['replicas'] = 3
        pprint.pprint(recover(**args))
    
    it will run with a total of 2 partitions and 12 backups.

...