Compute Engine Flashcards
Different Machine Families for Different Workloads
- General Purpose (E2, N2, N2D, N1) : Best price-performance ratio
- Memory Optimized (M2, M1): Ultra high memory workloads
- Compute Optimized (C2): Compute intensive workloads
How do we reduce the number of steps in creating an VM instance and setting up a HTTP Server?How do we reduce the number of steps in creating an VM instance
and setting up a HTTP Server?
- Startup script
- Instance Template
- Custom Image
Type of Images:
- Public Images
- Custom Images
Instances are
Zonal (Run in a specific zone (in a specific region))
How do you get a constant External IP address for a VM instance?
Static IP Addresses
Install OS patches or software when an VM instance is launched.
Startup script
Installing OS patches and software at launch of VM instances increases boot up time
Reducing Launch Time with Custom Image
Preemptible VM : Short-lived cheaper (upto 80%) compute instances
–> Can be stopped by GCP any time (preempted) within 24 hours
–> Instances get 30 second warning (to save anything they want to save)
What do you do when predefined VM options are NOT appropriate for your workload?
Create a machine type customized to your needs (a Custom Machine Type)
Images are
Global (You can provide access to other projects - if needed)
Instance templates are
Global (Unless you use zonal resources in your templates)
Why are labels used in VM?
Labels are used to indicate environment, team, business unit etc
Hardening an Image
Customize images to your
corporate security standards