watcher/doc/source/strategies/basic-server-consolidation.rst
Lucian Petrut 00fea975e2 Handle deprecated "cpu_util" metric
The "cpu_util" metric has been deprecated a few years ago.
We'll obtain the same result by converting the cumulative cpu
time to a percentage, leveraging the rate of change aggregation.

Change-Id: I18fe0de6f74c785e674faceea0c48f44055818fe
2023-10-24 10:47:23 +00:00

3.1 KiB

Basic Offline Server Consolidation

Synopsis

display name: Basic offline consolidation

goal: server_consolidation

watcher.decision_engine.strategy.strategies.basic_consolidation.BasicConsolidation

Requirements

Metrics

The basic strategy requires the following metrics:

metric service name plugins comment

compute.node.cpu.percent

cpu

ceilometer

ceilometer

none

none

need to set the compute_monitors option to cpu.virt_driver in the nova.conf.

Cluster data model

Default Watcher's Compute cluster data model:

watcher.decision_engine.model.collector.nova.NovaClusterDataModelCollector

Actions

Default Watcher's actions:

action description
migration

watcher.applier.actions.migration.Migrate

change_nova_service_state

watcher.applier.actions.change_nova_service_state.ChangeNovaServiceState

Planner

Default Watcher's planner:

watcher.decision_engine.planner.weight.WeightPlanner

Configuration

Strategy parameter is:

parameter type default Value description

migration_attempts

Number

0

Maximum number of combinations to be tried by the strategy while searching for potential candidates. To remove the limit, set it to 0

period

Number

7200

The time interval in seconds for getting statistic aggregation from metric data source

Efficacy Indicator

watcher.decision_engine.goal.efficacy.specs.ServerConsolidation.get_global_efficacy_indicator

How to use it ?

$ openstack optimize audittemplate create \
  at1 server_consolidation --strategy basic

$ openstack optimize audit create -a at1 -p migration_attempts=4

None.