Home | Trees | Indices | Help |
---|
|
Host Selection policy
This is the parent class of host selection policies. When mapping VMs to physical hosts, this policy determines what hosts are more desireable. For example, an energy-saving policy might value hosts that already have VMs running (to leave as many empty machines as possible, which could then be turned off), whereas another policy might prefer empty hosts to make sure that VMs are spread out across nodes.
To do this, the policy will assign a score to each host. See the documentation for get_host_score for more details.
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor Argument slottable -- A fully constructed SlotTable
|
Computes the score of a host Given a physical host, a time, and a lease we would like to schedule at that time, this method returns a score indicating how desireable that host is for that lease at that time. The score can be between 0.0 and 1.0. The higher the score, the "more desireable" the physical host is (this is a relative measure; the score should be used to determine which of several physical hosts is more desireable for this lease). Arguments: node -- Physical node (the integer identifier used in the slot table) time -- Time at which the lease might be scheduled lease -- Lease that is being scheduled. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Dec 17 10:59:21 2009 | http://epydoc.sourceforge.net |