Implementing Cloud Advisor Recommendations

This topic explains how to implement Cloud Advisor recommendations in Cloud Advisor or using the Console.

You can use Cloud Advisor to implement the following recommendations:

  • Delete unattached block volumes
    Tip

    In Cloud Advisor, you can delete unattached block volumes. If you prefer to attach them, see Attaching or deleting unattached block volumes.
  • Delete unattached boot volumes
    Tip

    In Cloud Advisor, you can delete unattached boot volumes. If you prefer to attach them, see Attaching or deleting unattached boot volumes.
  • Delete idle compute instances
  • Downsize underutilized Autonomous Data Warehouse and Autonomous Transaction Processing databases
  • Downsize underutilized compute instances
  • Downsize underutilized load balancers
  • Enable Object Lifecycle Mangement
  • Enable performance auto-tuning for block volumes
  • Enable performance auto-tuning for boot volumes
  • Rightsize compute instances
  • Rightsize load balancers
    Important

    If the load balancer uses a dynamic shape, this recommendation swiches it to a flexible shape. After you switch to a flexible shape, you cannot revert the load balancer to a dynamic shape.

The following recommendations can't be implemented within Cloud Advisor:

  • Enable monitoring on compute instances
  • Improve fault tolerance

Using Cloud Advisor

To implement a recommendation in Cloud Advisor:

  1. Open the navigation menu and click Governance & Administration. Under Cloud Advisor, click Recommendations.

    The Cloud Advisor Recommendations dashboard opens.

  2. In the recommendation list, click the name of the recommendation that you want to implement. The recommendation details panel opens and displays the list of resources that this recommendation applies to.

  3. Select one or more resources, and then click Implement selected. A panel opens with more details about the recommendation and the list of resources impacted by the changes.
  4. Follow the fix-it flow to implement the recommendation.
  5. When you complete the fix-it flow, the work request panel opens. To close the panel, click Close.

Using the Console

Though you can implement many of the recommendations directly in Cloud Advisor, you might want to use the Console work flow to implement recommendations instead. This section explains how to use the services in the Console to implement the Cloud Advisor recommendations.

Cost Management

This section provides information about how to use the services in the Console to implement the cost management recommendations.

Attaching or deleting unattached block volumes

Cloud Advisor recommends that you attach or terminate unattached block volumes to reduce costs. For more information about attaching and deleting block volumes, see the following resources:

Attaching or deleting unattached boot volumes

Cloud Advisor recommends that you attach or terminate unattached boot volumes to reduce costs. For more information about attaching and deleting boot volumes, see the following resources:

Deleting idle compute instances

Cloud Advisor finds compute instances that meet the recommendation profile over the window of time that you specify and recommends that you delete (terminate) them. This recommendation only applies to standard shapes. Deleting the compute instances saves you from paying for instances that you aren't using. Boot volumes are retained.

For steps explaining how to delete instances, see To terminate an instance.

Enabling monitoring on compute instances

Monitoring might not be enabled on your compute instance for the following reasons: the instance might have an older image that does not support monitoring, the software agent might be disabled, or a service gateway might not exist for that virtual cloud network (VCN).

To determine what needs to be changed to enable monitoring, examine the instance. For detailed instructions, see Enabling Monitoring for Compute Instances.

Enabling Object Lifecycle Management

To use Object Lifecycle Management, you must first authorize the Object Storage service to archive and delete objects on your behalf. See Service Permissions for more information.

For steps explaining how to create, edit, and manage lifecycle policy rules, see Using Object Lifecycle Management.

Performance

This section provides information about how to use the services in the Console to implement the performance recommendations.

Enabling auto-tune on your block volumes and boot volumes

Enable the performance auto-tuning feature to configure your block volumes and boot volumes to use the optimal performance settings. For more information about the auto-tune feature, see Auto-tune Volume Performance.

For more information about enabling the auto-tune feature, see the following resources:

Rightsizing compute instances

This recommendation finds compute instances that are overutilized and recommends that you either increase the number of OCPUs and amount of memory assigned to the instance by selecting a new shape, or use autoscaling. Autoscaling lets you automatically adjust the number of compute instances in an instance pool.

Note

Service limits apply to compute instances. If your request for compute instances exceeds your service limits, request a service limit increase before you rightsize your resources.
Rightsizing load balancers

See To change a load balancer's bandwidth shape using the Console.

Note

Service limits apply to load balancers. If your request for load balancers exceeds your service limits, request a service limit increase before you rightsize your resources.

Using the CLI

To manage recommendations, use these CLI operations. For information about using the CLI, see Command Line Interface (CLI). For the full list of Cloud Advisor CLI commands, see Cloud Advisor CLI.

To get recommendations, use the recommendation get command:

oci optimizer recommendation get --recommendation-id <RECOMMENDATION_OCID>

To update recommendations, use the recommendation update command:

oci optimizer recommendation update --recommendation-id <RECOMMENDATION_OCID> --status <STATUS>

To list recommendations, use the recommendation-summary list command:

oci optimizer recommendation-summary list --category-id <RECOMMENDATION_CATEGORY_OCID> --compartment-id, -c <COMPARTMENT_OCID>  --compartment-id-in-subtree <boolean>

To bulk apply recommendations, use the recommendation bulk-apply command:

oci optimizer recommendation bulk-apply --recommendation-id <RECOMMENDATION_OCID> --status <STATUS>

To get resource actions, use the resource-action get command:

oci optimizer resource-action get --resource-action-id <RESOURCE_ACTION_OCID>

To update resource actions, use the resource-action update command:

oci optimizer resource-action update --resource-action-id <RESOURCE_ACTION_OCID> --status <STATUS>

To list resource actions, use the resource-action-summary list command:

oci optimizer resource-action-summary list --compartment-id, -c <COMPARTMENT_OCID>  --compartment-id-in-subtree <boolean> --resource-action-id <RESOURCE_ACTION_OCID>