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

adding code frame for random distribution ignoring folder sizes

parent 3491b5b6
......@@ -144,6 +144,10 @@ class DataDistribution(object):
return osds_for_new_folders
# random OSD assignment ignoring folder sizes
elif random_osd_assignment and ignore_folder_sizes:
return None
# balanced deterministic OSD assignment
# (following largest processing time first or post-greedy approach)
list.sort(new_folders, key=lambda x: x.size, reverse=True)
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