fogbow/fogbow-mono-manager

Should the NoFMemberPickerPlugin implement a Round Robin approach?

Opened this issue · 4 comments

Whenever there is a free rider in the federation a cooperative member would always ask resources to him, which would always be denied and, then, the federation wouldn't work properly.

Besides that, apparently, the NoFMemberPicker is implemented returning the node with lower debt... take a closer look at FederationMemberDebtComparator

The comparator used in the prioritization plugin shouldnt be the same for the member picker, because the sorting mechanism is exactly the opposite

the tests in the nofmemberpicker are dumb, and thus the mistake was not noted

an alternative is to uso getLast, instead of getFirst