LAB 61 ‐ Cloud Advisor - DevWithNehaCloud/Oracle-Cloud-Infrastructure-wiki GitHub Wiki
OCI Cloud Advisor
Overview
OCI Cloud Advisor is a recommendation service that analyzes Oracle Cloud Infrastructure resources and provides suggestions to improve:
- Cost Optimization
- Performance
- Availability
- Security
Cloud Advisor continuously scans OCI resources and identifies opportunities to optimize cloud environments based on Oracle best practices.
Cloud Advisor helps administrators reduce costs, improve resource utilization, enhance security, and maintain high availability.
Why Use Cloud Advisor?
Organizations often have:
- Underutilized compute instances
- Unattached block volumes
- Over-provisioned resources
- Resources missing high-availability configurations
- Security configuration gaps
Cloud Advisor automatically detects such issues and provides recommendations.
Cloud Advisor Categories
1. Cost Management
Identifies resources that may be increasing cloud costs unnecessarily.
Examples
- Idle Compute Instances
- Underutilized Compute Instances
- Unattached Block Volumes
- Unused Public IP Addresses
Benefit
- Reduces monthly cloud spending
- Eliminates unused resources
2. Performance
Identifies resources that may require resizing or optimization.
Examples
- High CPU utilization
- Resource bottlenecks
- Insufficient resource sizing
Benefit
- Improved application performance
- Better resource utilization
3. Availability
Provides recommendations to improve resiliency and fault tolerance.
Examples
- Instances not distributed across Fault Domains
- Missing backup configurations
- Single points of failure
Benefit
- Improved uptime
- Better disaster recovery readiness
4. Security
Identifies potential security risks.
Examples
- Open Security List rules
- Publicly exposed resources
- Missing security best practices
Benefit
- Improved security posture
- Reduced attack surface
Cloud Advisor Architecture
OCI Resources
|
|
Cloud Advisor Analysis
|
|
Recommendations
|
+-- Cost
+-- Performance
+-- Availability
+-- Security
Real-World Example
A development environment contains:
- 10 Compute Instances
- 3 Instances showing less than 5% CPU utilization
- 2 Unattached Block Volumes
Cloud Advisor detects:
Recommendation 1
Underutilized Compute Instances
Action:
- Resize VM shape
- Stop or terminate unused instances
Recommendation 2
Unattached Block Volumes
Action:
- Delete unused volumes
Result:
- Reduced OCI monthly costs
- Better resource utilization
Interview Scenario
Question
How will you identify idle or underutilized resources in OCI for cost optimization?
Answer
I would use OCI Cloud Advisor to review recommendations under the Cost Management category. Cloud Advisor analyzes resource utilization and identifies idle compute instances, unattached block volumes, unused public IPs, and other resources that can be resized, stopped, or removed to reduce cloud costs.
Practical Lab: Using Cloud Advisor
Objective
Review Cloud Advisor recommendations and identify resources that can be optimized.
Step 1: Login to OCI Console
Navigate to:
OCI Console
→ Governance & Administration
→ Cloud Advisor
Step 2: Open Cloud Advisor Dashboard
Cloud Advisor displays recommendations grouped into:
- Cost Management
- Performance
- Availability
- Security
Example:
Cost Management
├─ Underutilized Compute Instance
├─ Unattached Block Volume
└─ Unused Public IP
Security
├─ Open Security Rules
└─ Publicly Accessible Resources
Step 3: Review Recommendation
Example:
Recommendation:
Underutilized Compute Instance
Resource:
swiggy-dev-app-server
CPU Utilization:
2%
Potential Action:
Resize or Stop Instance
Step 4: Analyze Impact
Cloud Advisor may provide:
- Resource Name
- Current Usage
- Estimated Savings
- Recommended Action
Example:
Current Shape:
VM.Standard.E4.Flex
Recommendation:
Reduce OCPUs or Stop Instance
Step 5: Implement Recommendation
Examples:
Cost Optimization
Stop idle instance
Delete unattached block volume
Release unused public IP
Security Improvement
Restrict Security List rules
Remove unnecessary public access
Availability Improvement
Enable backups
Distribute instances across Fault Domains
Step 6: Verify Results
After implementing recommendations:
Cloud Advisor
→ Refresh Recommendations
Resolved recommendations may disappear from the dashboard after the next analysis cycle.
Practical Example for GitHub Wiki
Scenario
Environment:
- swiggy-dev-app-server
- CPU utilization below 5%
- Running continuously for several days
Cloud Advisor Recommendation:
Category: Cost Management
Finding:
Underutilized Compute Instance
Suggested Action:
Resize or Stop Instance
Action Taken:
Reviewed application usage
Confirmed server was not actively used
Stopped the instance
Result:
Reduced compute cost
Improved resource utilization
Benefits of Cloud Advisor
- Identifies idle resources
- Reduces cloud costs
- Improves security posture
- Enhances availability
- Provides Oracle best-practice recommendations
- Helps maintain efficient OCI environments
Interview Answer
What is OCI Cloud Advisor?
OCI Cloud Advisor is a governance and optimization service that analyzes OCI resources and provides recommendations related to cost, performance, availability, and security. It helps identify underutilized compute instances, unattached block volumes, unused public IPs, and security risks. For example, if a compute instance consistently shows very low CPU utilization, Cloud Advisor may recommend resizing or stopping the instance to reduce costs and improve resource efficiency.