Commit d6123569 authored by Felix Seibert's avatar Felix Seibert
Browse files

try out 5

parent 0efff6d3
......@@ -89,8 +89,10 @@ class DataDistribution(object):
if random_osd_assignment:
print("using random osd assignment")
for folder in new_folders:
random_osd = random.choice(list(self.OSDs.values()))
random_osd.add_folder(folder.id, folder.size)
osds_for_new_folders.append((folder.id,
random.choice(list(self.OSDs.values()))))
random_osd.uuid))
return osds_for_new_folders
# balanced deterministic OSD assignment
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment