note: un-managed instance groups do not offer auto scaling. typical use case can be for applying load balancing for existing configurations or groups of non identical instances meaning virtual machines.
Create an HTTP health check
Create a managed instance group
When creating managed instance groups we are utilizing the the image template created for the managed instance group. you can create an image template before creating an managed instance group or while created the managed instance group.
Managed instance groups gives us with the ability to scale out our resources automatically in the event of heavy traffic. when using load balancing configurations on the google cloud platform target pools or managed instance groups are required when using the auto scale features.
With regional groups your workloads are spread across multiple zones from the same region. Static external IP addresses are considered regional resources while persistent disk and instances are considered zonal.
Zonal groups - Spans instances across the same zone. zonal resources can only be used by other resources in the same zone.
Working with machine types
When using cloud shell we can see the available machine types using this command.when using this command all available machine types will be listed, bur what if we wanted to see only the first 5?
let’s get only the first 5 machine types from that list
custom machine types
When creating a custom machine type memory must be in increments of 256 MB
1vCPU would need at least 1GB of memory, if your using a shared 1vCPU then the 0.6 GB would work but only under that configuration.
you can add extended memory to custom machine types. Predefined machine types are not supported, an instance can have up to 6.5 GB memory per 1vCPU.