$objId = uuid_create(); // create an object key from the uuid of the object // we would just use the UUID but this // gets passed to srand which needs an int $objs[] = $objId; } */ // now we loop on each config // and take stats on the distribution // and data movement $configs = (require 'testConfigs.php'); require_once 'PHPDFS/DataLocator/RUSHr.php'; foreach ($bucketConfs as $currConfig => &$confStats) { $hm = new PHPDFS_DataLocator_RUSHr($configs['data'][$currConfig]); echo "total nodes: " . $hm->getTotalNodes() . "\nfailed disk: " . $failedDiskArg . "\n"; $failedDisk = $failedDiskArg; if ($failedDiskArg > $hm->getTotalNodes()) { $failedDisk = $hm->getTotalNodes(); } else { if ($failedDiskArg < 0) { $failedDisk = 0; } } $confStats['stats']['failedDisk'] = $failedDisk; if ($currConfig > 0) { // make the locator for the previous config $hmPrev = new PHPDFS_DataLocator_RUSHr($configs['data'][$currConfig - 1]); } foreach ($objs as $objId) { $time = microtime(1);