Antoine · Arnaud · Benjamin
gcloud compute instances move
And if Performance needs have grown since the VM was created?
gcloud compute ssh INSTANCE_NAME
(handles keys automatically)
Provisioning: resources being allocated by Google
Staging: resources acquired, operating system booting
Running: VM fully operational and accessible
Stopping: VM shutting down gracefully
Terminated: VM stopped, CPU/RAM freed, disk persists
| Methods | Shutdown Script time | State | |
|---|---|---|---|
| reset | console, gcloud, API, OS |
no | remains running |
| start | console, gcloud, API |
no | terminated ➜ running |
| reboot | OS: sudo reboot |
~90 sec | running ➜ running |
| stop | console, gcloud, API |
~90 sec | running ➜ terminated |
| shutdown | OS: sudo shutdown |
~90 sec | running ➜ terminated |
| delete | console, gcloud, API |
~90 sec | running ➜ N/A |
| preemption | automatic | ~30 sec | N/A |
"ACPI Power Off"
All three expose the same configuration options.
[FAMILY]-[TYPE]-[vCPUs]
n1-standard-4 → N1 family, standard memory ratio, 4 vCPUs, 15 GB
RAM
e2-medium → E2 family, medium (2 vCPUs, 4 GB)c2-standard-8 → C2 family, standard ratio, 8 vCPUs
What is the maximum discount you can get with Committed Use Discounts on memory-optimized machine types?
70%, Committed Use Discounts on memory-optimized machine types can reach up to 70% off.
Which special VM type encrypts data while it is being processed in memory?
Confidential VM, encrypts data in use via AMD Secure Encrypted Virtualization, even Google cannot access the keys.
| Scenarios | Machine image | Persistent disk snapshot | Custom image | Instance template |
|---|---|---|---|---|
| Single disk backup | Yes | Yes | Yes | No |
| Multiple disk backup | Yes | No | No | No |
| Differential backup | Yes | Yes | No | No |
| Instance cloning | Yes | No | Yes | Yes |
| Base image replication | No | No | Yes | No |
tmpfs filesystem to store data in RAM| Persistent disk HDD |
Persistent disk SSD |
Local SSD disk | RAM disk | |
|---|---|---|---|---|
| Data redundancy | Yes | Yes | No | No |
| Encryption at rest | Yes | Yes | Yes | N/A |
| Snapshotting | Yes | Yes | No | No |
| Bootable | Yes | Yes | No | Not |
| Use case | General, bulk file storage | Very random IOPS | High IOPS and low latency | Low latency and risk of data loss |
Let's test what you learned!
Which statement is true of persistent disks?
Persistent disks are encrypted by default.
What are sustained use discounts?
Automatic discounts that you get for running specific Compute Engine resources for a significant portion of the billing month.
Which statement is true of Virtual Machine Instances in Compute Engine?
In Compute Engine, a VM is a networked service that simulates the features of a computer.
Questions?