After learning about IAM and Networking in previous parts of this series, itβs time to dive into the heart of the cloud β Compute Services in Oracle Cloud Infrastructure (OCI).
OCI Compute offers a range of virtual machines (VMs), bare metal servers, and dedicated hosts β so you can choose the right combination of scalability, performance, and pricing for your workload.
π§ Key Concepts in OCI Compute
π‘ OCI Compute Offers:
- Virtual Machines (VMs) β For standard use cases (web servers, dev/test, apps).
- Bare Metal Instances β High performance, single-tenant physical servers.
- Dedicated Hosts β Reserve full hypervisors to meet compliance or licensing needs.
βοΈ Factors to Consider:
- Scalability
- Performance requirements
- Cost-efficiency
- Image & Shape selection
π§± Flexible Shapes β OCPUs + Memory
OCI lets you define compute shapes dynamically:
- Choose number of OCPUs and Memory (RAM)
- Resize vertically for demanding apps
- Use predefined shapes like:
- Small
- Medium
- Large
β Only Cloud Provider To Offer:
- AMD-based CPUs (great for general compute)
- Intel-based CPUs (for legacy workloads)
- Ampere ARM-based CPUs (optimized for mobile and container workloads)
πΈ Cost Efficiency
- Pay-as-you-go pricing model
- 50% cheaper than other cloud providers (per Oracle claims)
-
Preemptible VMs β Ideal for:
- Batch jobs
- Short-lived apps
- Fault-tolerant systems
- Save big for non-critical workloads
π Live Migration
OCI supports live migration of VMs across hosts during hardware maintenance β with no downtime π«π
ποΈ Instances & Network Setup
To launch an instance in OCI:
- Create a VCN and subnet
- Launch VM and assign it to a subnet
- OCI attaches a VNIC (Virtual NIC) β source of the Private IP
- Optionally assign a Public IP
π Scaling in OCI
πΌ Vertical Scaling
- Increase OCPUs or memory
- Requires stop β resize β start
- Some downtime involved
π Horizontal Scaling
- Add/remove instances
- Used in autoscaling groups, HA setups
- No downtime; better resilience
π³ Oracle Kubernetes Engine (OKE)
Want to run containers? OCI offers OKE, a managed Kubernetes service.
Cluster Types:
- Basic Cluster β Simpler, ideal for testing/small workloads
- Enhanced Cluster β Advanced options, supports virtual nodes
Node Types:
-
Virtual Nodes (serverless):
- Only available in Enhanced Clusters
- No infrastructure to manage
-
Managed Nodes:
- You manage lifecycle
- Supported in both cluster types
π¦ OCI Container Instances
If you donβt want to manage Kubernetes or infrastructure:
- Use OCI Container Instances
- Run containers serverlessly
- Ideal for short-running apps, microservices
β‘ Serverless Compute with Oracle Functions
- Based on FaaS (Function-as-a-Service) model
- Event-driven architecture
- Integrated with OCI events and services
β Summary
OCI Compute provides the flexibility and cost-efficiency to power all kinds of workloads β from simple apps to complex, large-scale systems.
- Choose from VMs, Bare Metal, or Dedicated Hosts
- Use flexible shapes to optimize performance vs cost
- Leverage Kubernetes (OKE), Container Instances, or Oracle Functions for modern, containerized and serverless workloads
Top comments (0)