Run optimization audits and action plans
Create and run audits to optimize your infrastructure by generating action plans that accomplish specific goals. Understanding the audit and action plan workflow helps you implement one-time optimizations or schedule continuous monitoring to maintain optimal resource utilization.
When you use Optimize (watcher), you create or schedule an audit, which then creates an action plan. An Optimize action plan describes the specific actions to be performed to accomplish predetermined goals, such as rebalancing. You can have an action plan created once, or many times for continuous audits. The following takes place for an action plan to be executed:
- The administrator creates or schedules an audit.
- The audit creates an action plan.
- The action plan is either manually or automatically executed to complete the goal.
Generate optimization recommendations with an audit Copy linkLink copied!
Create audits to help optimize your infrastructure based on your chosen goals and strategies. Running audits allows you to make data-driven decisions about resource management.
Procedure Copy linkLink copied!
Apply infrastructure optimizations from action plans Copy linkLink copied!
Review and run action plans to implement the infrastructure optimizations recommended by your audits. Starting action plans allows you to control when changes are applied and gives you the opportunity to verify recommendations before they affect your production environment.
About this task Copy linkLink copied!
Optimize (watcher) goals and strategies are executed through action plans. Action plans are created after you create an audit. Action plans give you a chance to review the specific actions that will be taken on your cluster to accomplish the goal you have chosen.
When you create an audit, you can use the --auto-trigger option to automatically run the action plan that is created. This is helpful when you use the CONTINUOUS option. Without using --auto-trigger, recommended action plans accumulate until an OpenStack administrator starts the most recent action plan. Additionally, audits of type ONESHOT do not run with the --auto-trigger option.
You can list action plans by audit, start an action plan, and remove old action plans.
Procedure Copy linkLink copied!
Continuous audit scheduling Copy linkLink copied!
Schedule recurring audits to continuously monitor and optimize your infrastructure at regular intervals. Using continuous audits ensures that your environment maintains optimal resource utilization as workloads change over time.
- type
-
Set to
CONTINUOUS - auto-trigger
-
Include the
--auto-triggeroption inCONTINUOUSaudits if you want action plans to be run automatically. - interval
- Set by using an interval either in seconds, or by using CRON syntax.
- start-time
-
Set by using UTC in the ISO 8601 format. Use one of the following examples:
-
2025-06-30 13:00:00 -
2025-06-30T13:00:00
-
- end-time
-
Set by using UTC in the ISO 8601 format. Use one of the following examples:
-
2025-06-30 13:00:00 -
2025-06-30T13:00:00
-
Example:
openstack optimize audit create -g workload_balancing -s workload_balance -t CONTINUOUS --interval "00 14 * * *"
When using type CONTINUOUS, you can also use the --start-time and --end-time parameters. These parameters allow you to: * Delay the beginning of a scheduled action plan creations. * Set an expiry for the ending of scheduled action plan creations. * Schedule a single run audit creation for a set time in the future.
For example, by setting a start-time value and end-time value such that only a single audit can be created within that window, a one time run is effectively created.
Example command:
openstack optimize audit create \
-g cluster_maintaining \
-s host_maintenance \
-t CONTINUOUS \
--start-time "2025-06-30 13:00:00" \
--end-time "2025-06-30 14:30:00" \
--interval "00 14 * * *" \
-p maintenance_node="compute-1" \
--auto-trigger \
--name compute1_maintenance_june_30
Continuous audit modification Copy linkLink copied!
Modify or remove continuous audits to adapt to changing infrastructure needs or correct configuration errors.
- Stop a continuous audit
-
openstack optimize audit update <uuid> replace state=CANCELLED- Replace
<uuid>with the UUID of your audit.
- Replace
- Modify the interval of an audit
-
openstack optimize audit update <uuid> replace interval=<interval>- Replace
<uuid>with the UUID of your audit. - Replace
<interval>with a time interval measured in seconds.
- Replace
- Modify the end time of an audit
-
openstack optimize audit update <uuid> replace end_time=<time>- Replace
<uuid>with the UUID of your audit. - Replace
<time>with the time in ISO 8601 format. For example:2025-08-12T14:00:00
- Replace
- Delete a continuous audit
-
openstack optimize audit delete <uuid>Replace
<uuid>with the UUID of your audit.Note You must stop your continuous audit by setting thestatetoCANCELLEDbefore you can delete it.