VMs Flashcards
Instance Templates allow you to Define machine type, image, labels, startup script and other properties
Instance Templates allow you to Define machine type, image, labels, startup script and other properties
Instance Templates: used to create VM instances and managed instance groups Provides a convenient way to create similar instances
Instance Templates: used to create VM instances and managed instance groups Provides a convenient way to create similar instances
Instance Templates CANNOT be updated To make a change, copy an existing template and modify it
CANNOT be updated To make a change, copy an existing template and modify it
Custom Images:
- Helps reduce launch time
- Can be created from an instance, a persistent disk, a snapshot, another image, or a file in Cloud
- Storage Can be shared across projects
- Hardening an Image - Customize images to your corporate security standards
Preemptable 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)
Use Preemptable VMS if:
Your applications are fault tolerant
You are very cost sensitive
Your workload is NOT immediate Example: Non immediate batch processing jobs
Restrictions for Preemptable VMS:
NOT always available
NO SLA and CANNOT be migrated to regular VMs
NO Automatic Restarts
Free Tier credits not applicable
How do you accelerate math intensive and graphics-intensive workloads for AI/ML etc?
- Add a GPU to your virtual machine:
- High performance for math intensive and graphics-intensive workloads
- Higher Cost
- (REMEMBER) Use images with GPU libraries (Deep Learning) installed OTHERWISE, GPU will not be used
!!! Instances are Zonal, Images are global, Instance templates are global !!!
!!! Instances are Zonal, Images are global, Instance templates are global !!!
What are the pre-requisites to be able to create a VM instance?
- Project
- Billing
- Compute Engine APIs must be enabled
What would you use if you Want dedicated hardware for your compliance, licensing and management needs?
Sole Tenant Node
Command Line commands:
Cloud Storage - gsutil
Cloud BigQuery - bq
Cloud Bigtable - cbt
Kubernetes - kubectl (in addition to Gcloud which is used to manage clusters)
How do you initialize gcloud?
gcloud init
How do you list all properties on active configuration
gcloud config list
Scenario: You are working on multiple projects from the same machine. You would want to be able to execute commands using different configurations. How do you simplify this?
gcloud config configurations create/delete/describe/activate/list