[Haizea] How to normalize into a score about high_capacity_score?

Borja Sotomayor borja at borjanet.com
Thu Oct 29 17:55:14 CDT 2009


Hi,

>         # 2nd: we prefer nodes with the highest capacity
>         avail = aw.get_availability_at(node, time)
>         # TODO: normalize into a score
>         high_capacity_score = 1.0
> How to normalize into a score about high_capacity_score?
> Can you give me a idea ?

As I indicated in my previous e-mail, this would require using the
AvailabilityWindow class, which is not documented yet. The intuition
behind this is that you would need to take the available resources
from each physical node, and normalize them so that they were scored
from 0.0 to 1.0 (a node that is completely empty would have a score of
1.0). However, coming up with a normalized score would require knowing
the capacities of all the other nodes (or some other baseline, like
the highest capacity node) and a reasonable normalization scheme
(e.g., does 0.5 mean 'half capacity'? what if 'half capacity' is
actually the same capacity I'm getting in a smaller node that is
empty?). However, the host selection policy only looks at one node at
a time, which is why this is still marked with a "TODO".

Cheers!
--Borja


More information about the Haizea mailing list