Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
f0636fad
Commit
f0636fad
authored
Apr 16, 2018
by
Felix Seibert
Browse files
adding code frame for random distribution ignoring folder sizes
parent
3491b5b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/dataDistribution.py
View file @
f0636fad
...
...
@@ -144,6 +144,10 @@ class DataDistribution(object):
suitable_random_osd
.
uuid
))
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment