Merge "Several fixes of strategies docs"
This commit is contained in:
@@ -16,24 +16,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
"""
|
||||
*Good server consolidation strategy*
|
||||
|
||||
Consolidation of VMs is essential to achieve energy optimization in cloud
|
||||
environments such as OpenStack. As VMs are spinned up and/or moved over time,
|
||||
it becomes necessary to migrate VMs among servers to lower the costs. However,
|
||||
migration of VMs introduces runtime overheads and consumes extra energy, thus
|
||||
a good server consolidation strategy should carefully plan for migration in
|
||||
order to both minimize energy consumption and comply to the various SLAs.
|
||||
|
||||
This algorithm not only minimizes the overall number of used servers, but also
|
||||
minimizes the number of migrations.
|
||||
|
||||
It has been developed only for tests. You must have at least 2 physical compute
|
||||
nodes to run it, so you can easily run it on DevStack. It assumes that live
|
||||
migration is possible on your OpenStack cluster.
|
||||
|
||||
"""
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
@@ -47,7 +29,25 @@ LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class BasicConsolidation(base.ServerConsolidationBaseStrategy):
|
||||
"""Basic offline consolidation using live migration"""
|
||||
"""Good server consolidation strategy
|
||||
|
||||
Basic offline consolidation using live migration
|
||||
|
||||
Consolidation of VMs is essential to achieve energy optimization in cloud
|
||||
environments such as OpenStack. As VMs are spinned up and/or moved over
|
||||
time, it becomes necessary to migrate VMs among servers to lower the
|
||||
costs. However, migration of VMs introduces runtime overheads and
|
||||
consumes extra energy, thus a good server consolidation strategy should
|
||||
carefully plan for migration in order to both minimize energy consumption
|
||||
and comply to the various SLAs.
|
||||
|
||||
This algorithm not only minimizes the overall number of used servers,
|
||||
but also minimizes the number of migrations.
|
||||
|
||||
It has been developed only for tests. You must have at least 2 physical
|
||||
compute nodes to run it, so you can easily run it on DevStack. It assumes
|
||||
that live migration is possible on your OpenStack cluster.
|
||||
"""
|
||||
|
||||
HOST_CPU_USAGE_METRIC_NAME = 'compute.node.cpu.percent'
|
||||
INSTANCE_CPU_USAGE_METRIC_NAME = 'cpu_util'
|
||||
|
||||
Reference in New Issue
Block a user