Local SSD in Google Cloud
The fastest disk you can give a virtual machine, why it vanishes when the machine goes away, and how smart teams use that trade-off to build very quick systems.
Imagine you are cooking a big meal. You could keep every ingredient in a store across town, in a fridge in the garage, or on the kitchen counter right next to you. The counter is the fastest, because you only reach out your hand. But the counter is small, and when the party ends you wipe it clean. Local SSD in Google Cloud is the kitchen counter of cloud storage.
In this guide you will learn what Local SSD is, how it is built, how it behaves when machines restart or break, and how real teams use it for caches, databases, and big data jobs. We start from zero, explain every new word, and build up step by step until you can design with it confidently.
1What Is Local SSD?
Local SSD is a fast storage drive that sits inside the very same physical server that runs your virtual machine.
Let us break the name into pieces. SSD stands for Solid State Drive. It is a storage device made of memory chips with no moving parts. Older hard disks had spinning plates and a tiny arm that moved over them, a bit like a record player. An SSD has nothing spinning, so it finds your data almost instantly.
The word Local tells you where the drive lives. In Google Cloud, most disks are far away from the computer that uses them. They sit in a separate storage system and talk to your virtual machine over a network cable. A Local SSD is different. It is plugged into the same physical server as your virtual machine, so the data does not have to travel across a network at all.
A virtual machine, or VM, is a pretend computer that runs inside a real, bigger computer. Google Cloud calls its virtual machine service Compute Engine. When you create a VM there, you may ask for one or more Local SSD drives to be added to it.
Think of a chef’s workbench. The big warehouse across town is a network disk: huge, safe, but a drive away. The workbench is a Local SSD: small, super close, and wiped clean at the end of the shift. A smart chef keeps the master recipe book in the warehouse and does the fast chopping on the workbench.
The most important thing to remember is the word ephemeral. It means short-lived. Data on a Local SSD is tied to the life of the VM. That single fact shapes every design choice you will meet in the rest of this guide.
2Why Local SSD Exists
Some programs care more about speed than about keeping a permanent copy of every byte.
Cloud disks are designed to be safe. Your data is copied to several machines, so if one breaks, nothing is lost. That safety has a price. Every read and every write must cross a network, and the storage system must do extra work to keep copies in sync. Even when this is very quick, it can never beat a drive that is plugged straight into the machine.
Now think about the kinds of work that need raw speed. A cache stores copies of popular data so that answers come back fast. A big data job such as sorting a huge pile of records needs a large scratch area to shuffle data around. A database that already keeps copies on other machines does not need its disk to be copied again. In all these cases, losing the local data is not a disaster, because the real data lives somewhere else or can be rebuilt.
Google Cloud built Local SSD for exactly these jobs. It gives you very high speed and very low waiting time, at a lower price per unit of speed than network disks. In return, you accept that the data is temporary and you design your system to cope with that.
Local SSD is not a worse persistent disk. It is a different tool. It trades safety for speed on purpose.
Low latency
Answers must come back in a blink, like a shopping site showing product details.
High throughput
Lots of data must flow every second, like a video processing job.
Scratch space
Large temporary room for sorting and shuffling during analytics.
Cheap speed
Great performance without paying the high price of top-tier network disks.
3Core Concepts You Need First
A few simple words unlock the whole topic. Learn them once and the rest becomes easy.
Block storage
A block device is a disk that your operating system sees as a long row of numbered boxes, called blocks. The operating system can read or write any box by its number. Local SSD shows up as a block device, just like any other disk. You can format it, put a file system on it, and use it with normal programs.
IOPS
IOPS means Input and Output operations Per Second. It counts how many small reads or writes a disk can finish each second. Think of a cashier. IOPS is how many customers they can serve in one minute when each customer buys just one item.
Throughput
Throughput is how much data moves per second, such as megabytes per second. Using the cashier again, throughput is how many total groceries get bagged per minute when customers have full carts. A disk can be great at many small jobs, great at big jobs, or both.
Latency
Latency is the waiting time for one request. It is the gap between asking and getting. Low latency feels instant. Local SSD shines here because there is no network trip in the middle.
NVMe and SCSI
These are two ways a computer talks to a disk. SCSI is the older style. NVMe, short for Non-Volatile Memory Express, is the newer style made for fast flash memory. It can handle many requests at once, like a highway with many lanes instead of one. Local SSD in Google Cloud can be attached using either, and NVMe is the choice for the best speed on supported machines.
Ephemeral and persistent
Ephemeral storage disappears when its host goes away. Persistent storage stays until you delete it on purpose. Local SSD is ephemeral. Persistent Disk and Hyperdisk, the other Google Cloud disk families, are persistent.
| Word | Simple meaning | Everyday picture |
|---|---|---|
| IOPS | Small jobs per second | Customers served per minute |
| Throughput | Data moved per second | Groceries bagged per minute |
| Latency | Wait for one request | Time at the counter |
| NVMe | Modern fast disk language | A many-lane highway |
| Ephemeral | Gone when the host is gone | A sandcastle |
4Architecture and Components
Follow one request from your program all the way down to the flash chips.
When your program writes a file, the request passes through several layers. First comes your application. It asks the operating system inside the VM to store some data. The operating system uses a file system, which is the filing cabinet that organizes data into files and folders. The file system then hands raw block requests to the NVMe driver, a small piece of software that knows how to talk to this kind of disk.
Inside Google Cloud, the VM does not touch the real hardware directly. A layer called the hypervisor sits between them. A hypervisor is the manager that lets many VMs share one physical server safely. It presents a virtual NVMe controller to your VM, and passes requests along to the real drives on the host server.
flowchart LR
A["Your Application"] --> B["Guest OS and File System"]
B --> C["NVMe Driver in the VM"]
C --> D["Virtual NVMe Controller"]
D --> E["Hypervisor on Physical Host"]
E --> F["Local SSD Drive 1 - 375 GB"]
E --> G["Local SSD Drive 2 - 375 GB"]
E --> H["Local SSD Drive N - 375 GB"]
Notice what is missing from this picture: there is no storage network and no storage cluster. That is the whole secret. The drives belong to the host server. Because the path is short, the waiting time is small.
The main components
Guest OS
The operating system inside your VM. It formats and mounts the disk.
Hypervisor
Google’s manager layer that shares the real hardware among VMs.
Host server
The physical machine in a Google data center that runs your VM.
Flash drives
The SSD units physically installed in that host and reserved for your VM.
The hypervisor is like a hotel front desk. Many guests share one building, but the desk makes sure each guest gets their own room key and cannot wander into another guest’s room. Your Local SSD is your private room, and nobody else can read it.
5How It Works Internally
Why is it so quick, and what happens inside the drive when you save something?
The speed comes from three things working together. The first is flash memory. Flash stores bits as tiny electrical charges in memory cells. Reading a cell takes microseconds, which are millionths of a second. The second is the direct path. The drive connects to the host through a fast internal connection, so no network hop is needed. The third is parallelism. NVMe lets the operating system keep many requests in flight at the same time, and the drive spreads them across many flash chips.
Each Local SSD disk that Google Cloud gives you is a fixed size piece. Historically each disk is 375 GB. You pick how many disks to attach, and the VM sees each as its own device. More disks mean more space, and also more speed, because the work is spread across more hardware.
What happens during a write
Your program saves data
The application asks the file system to store a chunk of bytes.
The file system makes block requests
It turns the file into numbered blocks and queues them for the disk.
The NVMe driver submits them
Requests go into queues that the drive can read in parallel.
The drive writes to flash
Its controller picks free flash cells, writes the data, and tracks where everything is.
The drive confirms
A completion message travels back up, and your program continues.
Why TRIM and cleanup matter
Flash memory has a quirk. You cannot overwrite a used cell directly. The drive must first erase a whole group of cells, then write fresh data. To do this smoothly, the drive quietly moves data around in the background. This housekeeping is called garbage collection. If the operating system tells the drive which blocks are no longer used, using a feature called TRIM or discard, the drive can clean up earlier and stay fast. Without it, performance can slowly drop on a heavily used disk.
Local SSD is shared hardware on the host, but the space and speed you buy are reserved for your VM. Other customers cannot read your blocks.
6Data Lifecycle: When Data Lives and Dies
This is the most important chapter. Misunderstanding it is the number one cause of lost data.
A Local SSD is created together with its VM and can only be added when the VM is created. You cannot plug one in later, and you cannot unplug one and move it to a different VM. The disk and the VM share one life.
So when is your data safe, and when is it gone? The simple rule is this. If the same VM keeps running on the same host, the data stays. If the VM is taken away from that host, the data does not follow it.
flowchart TD
A["Create VM with Local SSD"] --> B["VM Running - Data Readable and Writable"]
B --> C["Guest OS Reboot"]
C --> D["Data Kept"]
D --> B
B --> E["Live Migration Between Hosts"]
E --> F["Data Kept by Google Cloud"]
F --> B
B --> G["Stop or Delete the VM"]
B --> H["Spot VM Preempted"]
B --> I["Host Hardware Failure"]
G --> J["Data Lost"]
H --> J
I --> J
Events that normally keep the data
- Restarting the operating system from inside the VM. The VM never leaves the host, so the disk is untouched.
- Live migration for many machine types. This is when Google moves a running VM to another host for maintenance with almost no pause. For supported types, Google copies the Local SSD contents along with the VM.
Events that destroy the data
- Stopping or deleting the VM.
- Preemption of a Spot VM. Spot VMs are discounted machines that Google can take back at any time.
- Host failure that cannot be handled by migration, such as a sudden hardware fault.
- Maintenance on machine types that do not support live migration of Local SSD. Some newer, very large machine families need a stop and restart instead.
Behavior differs by machine family and changes over time. Always read the current Compute Engine documentation for your exact machine type before you rely on data surviving any event.
Also remember that Local SSD cannot be backed up with disk snapshots or turned into a machine image. If you want a copy, your own software must copy the data to a safe place.
7Sizes, Counts, and Machine Families
How much Local SSD can you get, and which machines can have it?
Compute Engine groups its VMs into machine families. A family is a set of machine types built for a certain style of work, like general purpose, compute heavy, memory heavy, or storage heavy. Not every family supports Local SSD in the same way.
For many general purpose machine types, you can attach Local SSD disks of 375 GB each. The allowed number of disks depends on how big the VM is. Small VMs get fewer disks, and large VMs can attach many more, with a classic upper limit of 24 disks, which adds up to 9 TB per VM. Newer families have their own rules. Some come with Local SSD built in at fixed sizes, and some storage focused families offer much larger totals. Because these numbers are updated as new hardware arrives, treat any number you read in a blog as a hint and confirm it in the official limits page.
General purpose
Everyday workloads such as web backends and caches that want a fast scratch disk.
Compute optimized
Heavy processing jobs that read and write many temporary files.
Memory optimized
In-memory systems that spill extra data to fast local disk.
Storage optimized
Databases and analytics engines that need very large, very fast local capacity.
Accelerator optimized
GPU machines for machine learning, where fast local disks keep training data flowing.
Interface choice
You choose NVMe or SCSI when you create the disks. Prefer NVMe wherever your machine type and operating system image allow it, because it generally gives higher speed and lower latency. Some machine types only support NVMe. Make sure your image has a recent enough driver, which nearly all current Linux and Windows images do.
More disks does not only mean more space. In many setups it also means more IOPS and more throughput, because the work spreads across more drives. Sometimes you attach extra disks mainly for the speed.
8Performance and Scalability
Local SSD is built to be the fastest storage option on Compute Engine.
With a full set of NVMe disks, a large VM can reach over a million read IOPS and several gigabytes per second of throughput, with response times well under a millisecond. Network disks can be tuned to high numbers too, but reaching them usually costs more money and they still carry network delay.
These headline numbers are maximums that the documentation lists for particular setups. Your own results depend on the machine type, the number of disks, the interface, the file system, the block size, and how many requests your program keeps open at once. The right way to know is to test with a disk benchmarking tool such as fio on the same machine type you will use in production.
What helps speed
- Use NVMe when available.
- Attach enough disks and combine them so the load is shared.
- Keep many requests in flight. A single request at a time cannot use the drive’s parallel power.
- Use a modern file system such as ext4 or XFS with sensible settings.
- Enable discard or run TRIM regularly so the drive stays tidy.
How it scales
Local SSD scales in two directions. Inside one VM, you add more disks and stripe them together. Striping means splitting data across several disks so each does a part of the work, like four friends carrying a sofa at once. This is often done with software RAID 0, which gives the best speed but no protection if a disk fails. Across many VMs, you add more machines, each with its own Local SSD, and let your software spread data among them. Systems like Cassandra, ScyllaDB, and Elasticsearch are built to do exactly this.
One checkout lane is slow no matter how fast the cashier is. Twenty-four lanes open together can serve a whole crowd. Attaching many Local SSD disks is like opening more lanes at the store.
9Setting It Up Step by Step
You do not need to memorize commands. You need to understand the order of the steps.
Pick a supported machine type
Check that your chosen family allows Local SSD and how many disks it permits.
Add disks at creation time
Choose the number of disks and the NVMe interface while creating the VM. This cannot be done later.
Log in and find the new devices
The disks appear as raw, empty block devices with stable names under the system’s disk listing.
Combine them if you want one big fast volume
Use software RAID 0 to stripe several disks into one device, or keep them separate if your database prefers that.
Create a file system
Format the device with a file system such as ext4 or XFS.
Mount it with sensible options
Attach the file system to a folder and enable discard behavior so the drive stays healthy.
Automate it at every boot
Because a fresh disk is blank after replacement, a startup script should detect an empty disk, format it, and mount it again.
Formatting is destructive. A startup script must format only when the disk is truly empty. If it formats on every boot, a simple reboot could wipe good data.
On Google Kubernetes Engine, often shortened to GKE, you can also use Local SSD without doing these steps by hand. GKE can place a node’s temporary storage, such as scratch space for pods, on Local SSD, or hand out raw block devices to workloads that want them. The same ephemeral rule applies: when a node is replaced, its Local SSD data is gone.
10Local SSD vs Other Storage Choices
Choosing the right storage is mostly about answering one question: can I afford to lose this data?
| Feature | Local SSD | Persistent Disk and Hyperdisk | Cloud Storage |
|---|---|---|---|
| Where it lives | Inside the host server | Separate storage system over the network | Object service reached by API |
| Data survives VM stop | No | Yes | Yes |
| Snapshots | Not supported | Supported | Not needed, built-in durability |
| Typical latency | Lowest | Low but with a network hop | Higher, not a disk |
| Resize later | No, fixed at creation | Yes, can be grown | Unlimited |
| Best for | Caches, scratch, replicated databases | Boot disks, standard databases | Backups, files, data lakes |
The usual smart design uses them together. The boot disk is a persistent disk, so the operating system always survives. A Local SSD handles the hot, fast work. Cloud Storage holds the long-term copy, such as backups and finished results. This three layer pattern appears everywhere in cloud design.
What about RAM, the memory chips used for running programs? RAM is even faster than Local SSD, but it is much smaller and more costly per gigabyte, and it is also wiped on power loss. Local SSD sits in a useful middle: far larger and cheaper than RAM, far faster than network disks.
11Advantages, Disadvantages, and Trade-offs
Every engineering choice gives something and takes something. Here is the honest list.
Advantages
- Very high IOPS and throughput.
- Very low latency, since there is no network between disk and VM.
- Good price for the speed you get.
- Encrypted automatically at rest.
- Works with normal tools: any file system, RAID, standard databases.
- Scales by adding disks or adding machines.
Disadvantages
- Data is temporary and can be lost with the VM.
- No snapshots or machine images of the disk.
- Disks can only be added when the VM is created.
- Fixed size pieces, so you cannot grow one disk later.
- Cannot be moved to a different VM.
- Behavior differs between machine families, which adds learning effort.
The big trade-offs in plain words
Speed against safety. You get the fastest disk, and you accept that your software must protect the data. Simplicity against control. Network disks are easy to manage because Google handles durability. With Local SSD you take on that job yourself through replication and backups. Flexibility against cost. Because the sizes are fixed, you might pay for more space than you need just to reach the speed you want.
Quick decision rule
If losing this disk would hurt and you cannot rebuild it, use a persistent disk. If you can rebuild it from another copy, and speed matters, Local SSD is a strong fit.
12Security
Even temporary data deserves protection.
Automatic encryption
Google Cloud encrypts Local SSD data at rest by default, with no setup. Encryption means scrambling data so it is unreadable without the secret key.
Google-managed keys
Customer-managed encryption keys are generally not available for Local SSD, so check the current documentation if your rules require your own keys.
Private to your VM
The hypervisor keeps one customer’s blocks away from another’s. Data is cleared when the disk is released.
You protect the network
The disk itself does not cross a network, but data that your app sends to other nodes should use TLS.
What you are still responsible for
Google protects the hardware and the hypervisor, but your own settings still matter. Control who can log in to the VM, using Identity and Access Management, usually shortened to IAM. Keep the operating system updated. Protect secrets. If your application stores sensitive data on the Local SSD, such as customer records in a cache, remember that anyone with root access to the VM can read it, because the operating system sees the disk as plain.
A short life does not remove your duty to protect data. Treat Local SSD contents with the same care as any other copy of regulated data, and write down in your design where each copy lives and how it is erased.
A hotel safe is locked automatically and wiped when the guest leaves. That is Google’s part. But if the guest hands the code to a stranger, the hotel cannot help. That part is yours.
13Monitoring, Logging, and Metrics
You cannot protect or tune what you cannot see.
Monitoring means watching numbers over time. Logging means keeping a written record of events. Google Cloud offers Cloud Monitoring and Cloud Logging for both jobs. For Local SSD, you usually collect disk numbers from inside the VM, using the Ops Agent, which is a small helper program that ships host and disk metrics to Cloud Monitoring.
Numbers worth watching
- Read and write operations per second to see how busy the disk is.
- Read and write bytes per second to see throughput.
- Latency or wait time per request. A rising line is an early warning.
- Queue depth, which is how many requests are waiting. A long queue means the disk is saturated.
- Free space and inode use, so a full disk never surprises you.
- Disk utilization percentage, which shows how much of the time the drive is busy.
Events worth logging
- VM start, stop, preemption, and migration events from the audit and system logs.
- Startup script results: did it find an empty disk, format it, and mount it?
- Operating system messages about disk errors.
- Application level warnings, such as cache rebuild started or replica resync finished.
Set alerts on high latency and low free space. Also set an alert for the moment a node rejoins your cluster with an empty disk, since that means a rebuild is starting and the cluster is briefly less protected.
Use tools such as iostat on the VM for a live view while you test. Keep a baseline from your first benchmark. A baseline is a saved picture of normal behavior, and it makes later problems easy to spot.
14Design Patterns That Work
Good designs assume the disk can vanish and make that harmless.
Pattern 1: Replicated database nodes
Run a database that keeps several copies of every record on different machines, ideally in different zones. A zone is one separate data center area inside a Google Cloud region. If one VM and its Local SSD disappear, the other copies keep serving. A new node joins, copies the missing data, and the cluster heals.
flowchart TB
U["Users"] --> LB["Load Balancer"]
LB --> N1["Node 1 - Zone A - Local SSD"]
LB --> N2["Node 2 - Zone B - Local SSD"]
LB --> N3["Node 3 - Zone C - Local SSD"]
N1 --- N2
N2 --- N3
N1 --- N3
N1 --> BK["Cloud Storage Backups"]
N2 --> BK
N3 --> BK
In this picture, the load balancer spreads user requests. Each node holds a copy of the data and shares updates with the others. Periodic backups go to Cloud Storage, which is durable. This is the classic shape of a safe Local SSD system.
Pattern 2: Cache in front of a database
A cache keeps popular answers close. Put the cache’s disk-backed layer on Local SSD, and keep the source of truth on a persistent database. If the cache node dies, the system gets slower for a short time while the cache warms up again, but no data is lost.
Pattern 3: Scratch space for big jobs
Analytics engines such as Spark and Hadoop write huge temporary files during a step called the shuffle, when data is regrouped between machines. Putting this on Local SSD speeds the job a lot. The final results are saved to Cloud Storage or BigQuery.
Pattern 4: Tiered storage
Keep hot data on Local SSD, warm data on persistent disk, and cold data in Cloud Storage. Many search and time series systems move data through these tiers as it ages.
Pattern 5: Write locally, mirror elsewhere
Some teams write to a fast Local SSD and a persistent disk together, and read from the fast one. Reads are quick, and the persistent copy provides safety. Discord has publicly described a design in this spirit for its large ScyllaDB clusters.
15Anti-Patterns to Avoid
These designs look fine on day one and hurt on day ninety.
The mistake
Storing the only copy of important data on Local SSD, such as a single database server with no replicas and no backup.
Why it hurts
A stop, a host failure, or a deletion removes the data forever. There is no snapshot to restore from.
Do this instead
Keep a persistent source of truth, or replicate across several nodes and take backups to Cloud Storage.
The mistake
Using RAID 0 across disks and assuming it protects data.
Why it hurts
RAID 0 only splits work for speed. If one disk is lost, the whole striped volume is damaged.
Do this instead
Treat the whole VM as a unit that can disappear, and put protection at the cluster level.
The mistake
Putting all replicas in one zone.
Why it hurts
One zone event can take out every copy at the same time, so replication gives a false sense of safety.
Do this instead
Spread replicas across at least three zones when your database supports it.
The mistake
Putting the operating system or an important configuration only on Local SSD.
Why it hurts
The machine may not even boot back to a working state after a failure.
Do this instead
Keep the boot disk persistent and treat Local SSD purely as data and cache space.
The mistake
Using Local SSD for a workload that is small and not speed sensitive.
Why it hurts
You pay for fixed size disks and take on extra risk, with no real benefit.
Do this instead
Use a standard persistent disk for ordinary workloads.
16Best Practices and Common Mistakes
A short checklist that saves real pain.
Best practices
- Design for loss first. Ask what happens when this node disappears right now, and make the answer boring.
- Use NVMe on machine types that support it.
- Test with a benchmark on the exact machine type before launch.
- Automate disk setup in a startup script that is safe to run many times.
- Use stable device names from the system’s by-id listing rather than names that can change between boots.
- Back up to Cloud Storage on a schedule, and practice restoring.
- Spread nodes across zones and set the replication factor to match your risk.
- Watch latency and free space with alerts.
- Check the family rules for live migration and maintenance behavior.
Common mistakes
Forgetting it is temporary
Teams move a database over and only learn the rule after a restart.
Reformatting on every boot
A careless startup script wipes data that would have survived.
Over-trusting numbers
Using a published maximum as a promise instead of measuring.
Skipping TRIM
Performance slowly drops because the drive is never told about free blocks.
Resync storms
Many nodes rebuilding at once overload the network and the survivors.
Wrong disk count
Choosing too few disks, then finding out they cannot be added later.
When a node comes back empty, it must copy a lot of data. Limit the speed of that copy so the live cluster keeps serving users while it heals.
17Real-World Examples
Where Local SSD shows up in real production systems.
Messaging platform database
Discord has publicly described running very large ScyllaDB clusters on Google Cloud. It combined Local SSD speed with persistent disk safety, so reads stayed fast while a durable copy existed behind them. The lesson: you can have both speed and safety if you plan for it.
NoSQL databases built for local flash
Databases such as Cassandra, ScyllaDB, and Aerospike are designed around fast local flash and many replicas. Their vendors commonly recommend local drives in the cloud, since the database itself handles node failure.
Search and analytics engines
Elasticsearch and OpenSearch style clusters often put their hot tier on Local SSD, because searches read a lot of small pieces quickly. Older data moves to cheaper tiers, and snapshots go to object storage.
Big data processing
Companies running Spark, Hadoop, or Flink on Google Cloud use Local SSD for shuffle and spill files. The temporary files are huge and can be recomputed, which makes them ideal for fast disposable storage.
Machine learning training
GPU machines are expensive, so they must never wait for data. Teams copy training data from Cloud Storage onto Local SSD at the start of a job, then read it at full speed for many rounds.
Caching and in-memory databases
Systems like Redis variants and other caches that can spill to flash use Local SSD to hold more data than RAM allows. Big web companies use this idea so that a larger share of popular content is served quickly.
Media and rendering
Video transcoding and render farms write large intermediate files. Local SSD gives fast scratch space, and only the finished video is saved permanently.
18Thinking About Cost
Speed is only a good deal if you pay for what you actually use.
Local SSD is billed by the amount of storage per month, in the same way as other disks, and the price is usually lower per gigabyte than a high performance network disk. Spot VMs offer extra discounts on Local SSD as well. Exact prices vary by region and change over time, so check the Google Cloud pricing page for current numbers.
How to keep the bill sensible
- Count disks carefully. You pay for each 375 GB piece you attach, even if you fill half of it.
- Compare performance per dollar, not only price per gigabyte. If Local SSD removes the need for an oversized network disk or a larger machine, it can save money.
- Use Spot VMs for rebuildable jobs. Batch processing and scratch workloads can tolerate preemption and gain big discounts.
- Delete unused clusters. Since the disk is part of the VM, idle VMs with many disks still cost money.
- Consider commitments. If a steady workload runs all year, committed use discounts can lower the compute side of the cost.
Renting a sports car for a race day is smart if it wins you the race. It is a waste for the daily school run. Match the tool to the job and you pay only for the speed you actually need.
19Frequently Asked Questions
20Summary and Key Takeaways
Local SSD is the kitchen counter of Google Cloud storage: very close, very fast, and cleared when the work is over. Used well, it makes databases, caches, and data jobs faster and cheaper. Used carelessly, it loses data. The difference is whether you designed the system so that losing one disk does not matter.
Key Takeaways
- Local SSD is physically attached to the host server, so it gives very high IOPS, high throughput, and very low latency.
- It is ephemeral. Data survives a guest reboot and often live migration, but is lost when the VM is stopped, deleted, preempted, or the host fails.
- It must be chosen at VM creation, comes in fixed 375 GB pieces on many machine types, and cannot be snapshotted or moved.
- Prefer NVMe, add enough disks, and benchmark your exact machine type instead of trusting published maximums.
- Protect data in your design with replication across zones, backups to Cloud Storage, and a persistent boot disk.
- It is encrypted at rest automatically, but access control and in-transit protection remain your job.
- Pick it when speed matters and data can be rebuilt, such as caches, scratch space, replicated databases, and ML input staging.