[Haizea] Writing a new host selection policy for Haizea

Mehdi Sheikhalishahi mehdi.alishahi at gmail.com
Thu Nov 11 16:17:53 CST 2010


Just make a copy of GreedyPolicy(HostSelectionPolicy): class with
another name and write your own HostSelectionPolicy, and then change
def get_host_score(self, node, time, lease): method. Perhaps you need
to use SlotTable and LeaseScheduler to achieve what you want to
implement.


-- 
Regards,
Mehdi


On Thu, Nov 11, 2010 at 8:27 PM, Zaina AFOULKI
<zaina.Afoulki at ensi-bourges.fr> wrote:
> Hi Mehdi,
>
>> What kind of information you need?
> For now, I would like to know the list of files you had to modify in order
> to implement your new policy? Did you have to write a new mapper for your
> policy like the GreedyMapper?
>
>> One the best place for learning is to look at the GreedyPolicy source
>> code in HostSelectionPolicy.
> Yes, I did take a look at it, and the policy I'm thinking about will make
> a couple minor changes to the GreedyPolicy.
>
> Thank you!
>
> Zaina
>
> _______________________________________________
> Haizea mailing list
> Haizea at mailman.cs.uchicago.edu
> https://mailman.cs.uchicago.edu/mailman/listinfo/haizea
>


More information about the Haizea mailing list