Preventing Accedental VM Deletion
- Lets launch a vm instance

- Now unselect enable delete protection and save the vm instance

Getting VM Metadata
- Metadata can be assigned to both projects and instances. Project Metadata will propogate to all vms in a project, while instance metadata impacts that specific instance.
- Refer Here for the official docs

- Now lets get image information

Preemptibility
- Premptibility brings cost of instance down but will generally only last for a maximum of 24 hours before terminated.
- To Create a premptible instance in the Management section while creating vm set the Premptibility to be on

- Refer Here for the official docs
Availability Policy
- Google might perform some maintenance on infrastructure, which may require your vm’s to be moved to other host. GCE will live migrate your instance if the instances availability is set to use this feature

- Underlying hardware running vm instance might be crashed, then GCE offers a setting to automatically restart the instance by setting the automaticRestart field to true.
Scenario
- Lets look at the below architecture to understand an application deployment

- The following concerns should be addressed
- How will user access the application using his custom domain (swiggy.com/bookmyshow.com)
- How to handle the load on the servers dynamically i.e. how to we dynamically add servers and remove server based on demand
- When servers are increasing or decreasing how to route the requests to this servers
- How to handle new application deployments
- Addressing the above mentioned concerns means understanding and applying
- DNS (Domain Naming Servers)
- Elasticity
- Load Balancing
- Deployments like Canary/Blue green
Important Videos to be watched
- Refer Here
- Refer Here and watch first 7 videos
