Run sample optimization workflows
See practical examples to learn how to consolidate resources, balance workloads, and prepare infrastructure for maintenance by using the Optimize service (watcher). These workflows demonstrate real world optimization scenarios to help you apply the service effectively.
Consolidate node resources Copy linkLink copied!
Release Compute node resources by consolidating instances onto fewer nodes to reduce energy consumption and operating costs. This workflow demonstrates how to use the node resource consolidation strategy to migrate instances while keeping all nodes available for future workloads.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- Your RHOSO environment contains at least two Compute nodes that run at least one instance on each node.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Reduce power consumption by consolidating VM instances Copy linkLink copied!
Use the VM workload consolidation strategy to move a VM instance workload when the physical host CPU or RAM utilization percentage exceeds a specified threshold. This workflow shows you how to achieve balanced CPU utilization.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- Your RHOSO environment contains at least two Compute nodes that run at least one instance on each node.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
The instance that is migrated should cause the workload for the host to approximate the average workload of all the Compute nodes in the Red Hat OpenStack Services on OpenShift (RHOSO) cluster. Unlike the node resource consolidation strategy, the VM workload consolidation strategy sets the status of the source Compute node to disabled.
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Redistribute VM instances to stabilize uneven workloads Copy linkLink copied!
Use the Optimize service (watcher) to improve cluster stability. This workflow demonstrates redistributing VM instances when workloads become uneven across Compute nodes to prevent performance issues caused by resource imbalances.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- You have created at least two instances that run on different nodes.
- You have the Dashboard service (horizon) installed on your workstation.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Prevent Compute node overload with workload balancing Copy linkLink copied!
Prevent performance bottlenecks by automatically migrating instances when individual Compute nodes exceed specified thresholds. This workflow shows you how to balance workload distribution to ensure consistent performance across your infrastructure.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- Your RHOSO environment contains at least two Compute nodes that run at least one instance on each node.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Migrate instances across zones for infrastructure maintenance Copy linkLink copied!
Migrate multiple instances efficiently and without downtime across user-defined zones of Compute nodes to prepare for infrastructure maintenance.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- Your RHOSO environment contains at least two Compute nodes that run at least one instance on each node.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
The term zone in the zone migration strategy refers to a user-defined set of Compute nodes and storage pools. Zone does not refer to Openstack availability zones.
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Evacuate Compute nodes for scheduled maintenance Copy linkLink copied!
Use the Optimize service (watcher) with the host maintenance strategy to prepare Compute nodes for scheduled maintenance by migrating all instances to other nodes without interrupting user services.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- You have at least two Compute nodes:
- One Compute node with at least one instance running.
- A second Compute node that serves as a backup node.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
About this task Copy linkLink copied!
Use the host maintenance strategy in a planned maintenance window where the load is low to minimize impact on the workloads. When you run the audit, ensure that you do not change the default audit_type value, ONESHOT.
| Goal | Strategy |
|---|---|
| |
|
Procedure Copy linkLink copied!
Move volumes between storage pools for maintenance Copy linkLink copied!
Use the Optimize service (watcher) with the zone migration strategy to move volumes between storage pools or types to prepare for storage cluster maintenance.
Before you begin Copy linkLink copied!
- You have an operational RHOSO 18.0 on which the Optimize service (watcher) is running.
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Access the remote shell for the OpenStackClient pod from your workstation:
$ oc rsh -n openstack openstackclient - Confirm that the actions succeeded:
$ openstack optimize action list --action-plan <uuid> - Exit the
openstackclientpod:$ exit