Update Server Consolidation global efficacy
As instance migration cost is petty compared to the cost of compute node release, I update the way to compute the global efficacy for a server consolidation goal. The new formula is simplest and it's only based on compute node. Change-Id: Ibcce31a85af70429f412c96c584a761d681366a2
This commit is contained in:
@@ -153,9 +153,6 @@ class TestBasicConsolidation(base.TestCase):
|
||||
instance_0_weight_assert,
|
||||
self.strategy.calculate_weight(instance_0, cores, disk, mem))
|
||||
|
||||
def test_calculate_migration_efficacy(self):
|
||||
self.strategy.calculate_migration_efficacy()
|
||||
|
||||
def test_exception_model(self):
|
||||
self.m_model.return_value = None
|
||||
self.assertRaises(
|
||||
@@ -224,7 +221,7 @@ class TestBasicConsolidation(base.TestCase):
|
||||
|
||||
expected_num_migrations = 5
|
||||
expected_power_state = 3
|
||||
expected_global_efficacy = 60
|
||||
expected_global_efficacy = 75
|
||||
|
||||
num_migrations = actions_counter.get("migrate", 0)
|
||||
num_node_state_change = actions_counter.get(
|
||||
|
||||
Reference in New Issue
Block a user