~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/scheduler/least_cost.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
 
81
81
def compute_fill_first_cost_fn(host_state, weighing_properties):
82
 
    """More free ram = higher weight. So servers will less free
83
 
    ram will be preferred."""
 
82
    """More free ram = higher weight. So servers with less free
 
83
    ram will be preferred.
 
84
 
 
85
    Note: the weight for this function in default configuration
 
86
    is -1.0. With a -1.0 this function runs in reverse, so systems
 
87
    with the most free memory will be preferred.
 
88
    """
84
89
    return host_state.free_ram_mb
85
90
 
86
91