Este conteúdo não está disponível no idioma selecionado.
Chapter 1. Introduction to the Optimize service
Reduce data center operating costs by optimizing how your Red Hat OpenStack Services on OpenShift (RHOSO) cloud uses infrastructure resources. The Optimize service (watcher) helps you consolidate workloads, balance resource usage, and prepare nodes for maintenance to improve efficiency and reduce energy consumption.
The topics included in this section are:
1.1. Data center resource utilization management with the Optimize service Copiar o linkLink copiado para a área de transferência!
Achieve infrastructure resource utilization goals through Optimize service (watcher) audits. The Optimize service helps you to reduce operating costs through strategies like consolidating workloads, balancing resources, and preparing nodes for maintenance.
The Optimize service framework includes a metrics receiver, complex event processor and profiler, optimization processor, and an action plan applier.
| Term | Description |
|---|---|
| Action | An atomic task that enables the Optimize service to transform the current state of a cluster after an audit. |
| Action plan | Specifies a flow of actions that should be executed to satisfy a given goal and contains an estimated global efficacy and a set of efficacy indicators. |
| Audit | A request for optimizing a cluster. |
| Audit template | Contains the goal of the audit, may contain error handling settings and automation settings. |
| Goal | A human readable, observable and measurable end result that is one objective to be achieved. |
| Solution | The result of the execution of a strategy, with a set of proposed actions to achieve the goal of the associated audit. |
| Strategy | An algorithm implementation, which can provide a suggested solution for a specific goal. |
The following workflow describes how a RHOSO administrator uses the Optimize service:
Identify the goal to achieve.
For example, to save energy consumed by Compute nodes, consolidate VM instances to run on fewer nodes.
- Create an audit template that defines the goal and other settings used when performing an audit of the RHOSO environment by using the Optimize service.
- Optionally, add a strategy to the audit template.
Audit the RHOSO environment by running the Optimize service with the audit template.
After the audit, the Optimize service creates an action plan that is based on the goal.
Execute the action plan.
Run the Optimize service with an action plan, for example, to spawn the Compute service (nova) to perform a live migration of instances to other nodes.
- Check the metrics for your cloud to confirm there has been improvement towards achieving the goal.
1.2. Optimize service components Copiar o linkLink copiado para a área de transferência!
Understand how the Optimize service (watcher) components work together to analyze metrics, create optimization strategies, and execute action plans. The Optimize service architecture enables the service to continuously monitor your infrastructure and recommend improvements to resource utilization.
The Red Hat OpenStack Services on OpenShift (RHOSO) Optimize service (watcher) components are hosted on the Red Hat OpenShift Container Platform (RHOCP) worker nodes that host the RHOSO control plane. The Optimize service consists of the following components:
- AMQP bus
- Handles internal asynchronous communications between the different watcher components.
- Data sources
- Stores the metrics related to the cluster. Prometheus, an open-source, time series database is the primary data source for watcher.
- Watcher API
- Implements the REST API provided by watcher to external users through a CLI, a Dashboard (horizon) plug-in, and the Python SDK.
- Watcher applier
- Manages the execution of the action plan built by the watcher decision engine. Taskflow is the default workflow engine for watcher.
- Watcher CLI
- Used to interact with the watcher components.
- Watcher dashboard
- Used to interact with the watcher components through the Dashboard (horizon).
- Watcher database
Stores all the watcher objects, used for resource optimization in a RHOSO environment:
- Goals
- Strategies
- Audit templates
- Audits
- Action plans
- Efficacy indicators via the action plan API.
- Actions
- Watcher Decision Engine
- Responsible for creating a set of potential optimization Actions to fulfill the goal of an audit.