Compute instances
OCI Foundations · Lesson 8 of 15 · 55:27
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Cloud Infrastructure Foundations Associate exam (1Z0-1085-26). In this lesson: virtual machines and bare metal, shapes, OCPUs, and flexible shapes, images and boot volumes, instance configurations, instance pools, and autoscaling. Includes three original practice questions, with Kettlebrook Fitness, a fictional gym chain, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Servers for every load
Kettlebrook needs web servers for its booking website, and one large server for a nightly report on every member visit. And on Monday mornings, when members book their classes for the week, the website gets three times its usual traffic. This lesson covers compute instances, shapes, how to launch an instance, and how to scale.
Bare metal and virtual machines
OCI Compute gives you two kinds of instances. A bare metal instance is a whole physical server for you alone, for the highest performance and strong isolation. A virtual machine is a share of a physical server, isolated by a hypervisor, and it is the most common choice. And for isolation without managing a whole server, a dedicated virtual machine host runs your virtual machines on a server that no other customer uses.
Shapes and OCPUs
A shape sets the resources of an instance: processors, memory, network bandwidth, and sometimes local disks or GPUs. Standard shapes run on Intel, AMD, or Ampere Arm processors, DenseIO shapes add fast local NVMe disks, and GPU shapes add graphics processors, for AI workloads for example. Flexible shapes let you choose the number of OCPUs and the amount of memory, and the network bandwidth follows the number of OCPUs. An OCPU is Oracle's unit of processing: on Intel and AMD, one OCPU equals two vCPUs, while on the first Ampere Arm shapes, one OCPU is one vCPU. Instances are charged by the second, with a minimum of one minute, and preemptible instances cost less, for work that can stop when OCI reclaims the capacity.
Launching an instance
To launch an instance, you choose a compartment, an availability domain, and a subnet of your VCN. You also pick an image, the operating system and its software: a platform image from Oracle, like Oracle Linux, Ubuntu, or Windows, an image from a partner, or a custom image that you created. For a Linux instance, you provide the public key of an SSH key pair, and connect with its private key, while a Windows instance gets an initial password for remote desktop. And Linux instances can use Ksplice, which applies critical kernel patches without a reboot.
Boot volumes and Cloud Shell
Each instance starts from a boot volume: a copy of the image, on block storage, which holds the operating system. When you terminate an instance, you can keep its boot volume, and launch a new instance from it later. That is also how you move a bare metal instance to another shape: terminate it, keep the boot volume, and launch a new instance from it. And Cloud Shell has an SSH client, so you can connect to an instance with a public IP address, without installing anything.
Scaling
Scaling comes in two directions. Vertical scaling changes the shape of an instance, for more or fewer OCPUs and memory, on the virtual machines that support it. Horizontal scaling adds or removes instances: an instance configuration is a template, and an instance pool creates and manages identical instances from it, across availability domains and fault domains. Autoscaling then changes the size of the pool on its own: metric-based, when CPU or memory use crosses a threshold, or schedule-based, at times that you set. And a load balancer attached to the pool spreads the traffic across its instances.
Recap
Let's recap. Instances are bare metal servers or virtual machines, and dedicated hosts keep your virtual machines apart from other customers. A shape sets processors, memory, and bandwidth, and flexible shapes let you choose the OCPUs and memory. To launch, pick a subnet, an image, and an SSH key pair for Linux. The boot volume holds the operating system, and you can keep it when you terminate an instance. And you scale vertically by changing the shape, or horizontally with instance pools and autoscaling, by metric or by schedule.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Kettlebrook’s reporting server needs 6 OCPUs and 96 GB of memory, and it may need more memory later. Which kind of shape fits?
- A GPU shape
- A bare metal shape
- A flexible shape
- A DenseIO shape
Show the answer
A flexible shape
A flexible shape lets the team choose the number of OCPUs and the amount of memory, and change them later. “A GPU shape” would add graphics processors that a report does not need. “A bare metal shape” would take a whole physical server, far more than six OCPUs. And “A DenseIO shape” would add local NVMe disks, not the exact processors and memory needed.
A Kettlebrook developer is about to terminate a test instance, but wants to launch a new one later, with the same operating system and files. What should they keep?
- Its VNIC
- Its boot volume
- Its shape
- Its SSH public key
Show the answer
Its boot volume
The boot volume holds the operating system and its files, and a new instance can launch from it. “Its VNIC” would only keep a network interface, with no system or files. “Its shape” would only describe the resources of the instance, not its content. And “Its SSH public key” would let someone connect, but there would be nothing left to connect to.
Every Monday from 7 to 10 a.m., Kettlebrook’s bookings triple, and the team knows it in advance. What fits best?
- A larger shape for each web server, all week
- More instances added by hand each Monday
- A dedicated virtual machine host
- Schedule-based autoscaling of the pool
Show the answer
Schedule-based autoscaling of the pool
Schedule-based autoscaling grows the instance pool at the times that you set, and shrinks it afterward. “A larger shape for each web server, all week” would pay for the extra capacity all week long. “More instances added by hand each Monday” would work, but it depends on someone remembering every Monday. And “A dedicated virtual machine host” would isolate the instances, without adding any capacity for the peak.