Playing with Managed Instance Groups (MIG) | Scribe

    Playing with Managed Instance Groups (MIG)

    • Hafeez Baig |
    • 17 steps |
    • 3 minutes
    information ordinal icon
    Refer to this guide to learn How to create managed instance groups \ <https://scribehow.com/shared/Creating_Managed_Instance_Groups_MIG_V2__mWRHPJ00SfeQJdH06V6cCQ>
    1
    Sign in into the **Google Cloud Platform**
    2
    Type "**Compute Engine**" in the search bar and click on the **Compute Engine** option
    information ordinal icon
    **What is Compute Engine?** Google Compute Engine (GCE) is an Infrastructure-as-a-Service (IaaS) offering from Google Cloud Platform (GCP) that allows users to run virtual machines (VMs) on Google's infrastructure. It provides scalable and flexible computing resources, high-performance persistent storage, advanced networking capabilities, and integration with other GCP services, making it suitable for a variety of workloads including web hosting, data processing, and high-performance computing.
    3
    Click on the **Instance groups** from the left bar
    information ordinal icon
    **What are Instance groups?**\ \ Instance groups in GCP are sets of virtual machine instances managed together for load balancing and scaling. They distribute traffic evenly across instances, automatically adjust capacity based on demand, and ensure high availability by spreading instances across multiple zones.
    4
    **Instance groups** wizard will open, click on the Name **my-managed-instance-group**
    5
    **my-managed-instance-group** wizard will open, here you can view the Overview of the Instance Group
    6
    On the right side you can view the **Instance by health** section and click on the **my-vm-health-check** link
    7
    **my-vm-health-check** wizard will open, here you can view all the **Health check** details for the Instance group
    8
    To view the Instances created by the Instance group, click on the **VM instances** from the left bar
    9
    **VM instances** wizard will open, here you can view the instances that are created by the instance group.
    10
    On the right side in the **External IP** section, copy the External IP of **my-managed-instance-group** **Note:** As we have set the minimum instances to 2, the instance group has created 2 instances. You can proceed with any external IP from either instance, as both instances have the same configurations.
    11
    Open a new tab in the browser and paste the copied **External IP**
    12
    **Hello World** and its host details will be displayed
    13
    To edit the configurations for the instance group, in the **my-managed-instance-group** wizard, click on the **EDIT** button on the top left side
    14
    Scroll to the **Autoscaling** section, here you can modify the **Minimum** and **Maximum** number of instances
    15
    Scroll to the **VM instance lifecycle** section, here you can modify the **Action for failure** and **Autohealing** for the Instances
    16
    Scroll to the **Updates during VM instances repair** section, here you can configure the VM instance repair settings
    17
    Scroll the page and click on the **SAVE** button to update the changes made **Note:** The changes may take some time to apply and will be reflected in your Instance Groups dashboard.