-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Respect minimum distance when rebalancing meta1 databases #2005
Respect minimum distance when rebalancing meta1 databases #2005
Conversation
oio/directory/meta0.py
Outdated
|
||
if len(available_svcs_by_site) < self.replicas: | ||
raise ValueError( | ||
"Less than %s services have a positive score " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should include len(available_svcs_by_site)
in error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Condition and message seems incoherent:
site
is first tag of loc
so available_svcs_by_site
will contains a dict
of number of service (with score) per site.
I suppose error message should be Less than %s sites have a positve score
?
for svc_addr in svc_addrs] | ||
svcs.sort(key=(lambda svc: svc['upper_limit'] | ||
- len(self.get_managed_bases(svc)))) | ||
_decommission(svcs[0], [base]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How the rebalance will react if an Exception is raised ? do we have to fix the issue and rerun the rebalance ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we need to fix the issue and rerun the rebalance.
b76e4af
to
28ee7dd
Compare
28ee7dd
to
b712cce
Compare
SUMMARY
Respect minimum distance when rebalancing meta1 databases
ISSUE TYPE
COMPONENT NAME
SDS VERSION