None
Default Watcher’s Compute cluster data model:
Storage cluster data model is also required:
Default Watcher’s planner:
Weight planner implementation
This implementation builds actions with parents in accordance with weights. Set of actions having a higher weight will be scheduled before the other ones. There are two config options to configure: action_weights and parallelization.
Limitations
- This planner requires to have action_weights and parallelization configs tuned well.
Strategy parameters are:
| parameter | type | default Value | description |
|---|---|---|---|
compute_nodes |
array | None | Compute nodes to migrate. |
storage_pools |
array | None | Storage pools to migrate. |
parallel_total |
integer | 6 | The number of actions to be run in parallel in total. |
parallel_per_node |
integer | 2 | The number of actions to be run in parallel per compute node. |
parallel_per_pool |
integer | 2 | The number of actions to be run in parallel per storage pool. |
priority |
object | None | List prioritizes instances and volumes. |
with_attached_volume |
boolean | False | False: Instances will migrate after all volumes migrate. True: An instance will migrate after the attached volumes migrate. |
The elements of compute_nodes array are:
| parameter | type | default Value | description |
|---|---|---|---|
src_node |
string | None | Compute node from which instances migrate(mandatory). |
dst_node |
string | None | Compute node to which instances migrate. |
The elements of storage_pools array are:
| parameter | type | default Value | description |
|---|---|---|---|
src_pool |
string | None | Storage pool from which volumes migrate(mandatory). |
dst_pool |
string | None | Storage pool to which volumes migrate. |
src_type |
string | None | Source volume type(mandatory). |
dst_type |
string | None | Destination volume type (mandatory). |
The elements of priority object are:
| parameter | type | default Value | description |
|---|---|---|---|
project |
array | None | Project names. |
compute_node |
array | None | Compute node names. |
storage_pool |
array | None | Storage pool names. |
compute |
enum | None | Instance attributes. [“vcpu_num”, “mem_size”, “disk_size”, “created_at”] |
storage |
enum | None | Volume attributes. [“size”, “created_at”] |
[{'value': 0, 'name': 'live_instance_migrate_ratio', 'unit': '%', 'description': u'Ratio of actual live migrated instances to planned live migrate instances.'}, {'value': 0, 'name': 'cold_instance_migrate_ratio', 'unit': '%', 'description': u'Ratio of actual cold migrated instances to planned cold migrate instances.'}, {'value': 0, 'name': 'volume_migrate_ratio', 'unit': '%', 'description': u'Ratio of actual detached volumes migrated to planned detached volumes migrate.'}, {'value': 0, 'name': 'volume_update_ratio', 'unit': '%', 'description': u'Ratio of actual attached volumes migrated to planned attached volumes migrate.'}]
For more information on the zone migration strategy please refer to: http://specs.openstack.org/openstack/watcher-specs/specs/queens/implemented/zone-migration-strategy.html
$ openstack optimize audittemplate create \
at1 hardware_maintenance --strategy zone_migration
$ openstack optimize audit create -a at1 \
-p compute_nodes='[{"src_node": "s01", "dst_node": "d01"}]'
None
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.