Exploring the Load Balancer in GCP - Google Cloud Platform | Scribe

    Exploring the Load Balancer in GCP - Google Cloud Platform

    • Hafeez Baig |
    • 10 steps |
    • 25 seconds
    information ordinal icon
    Refer to this guide to learn How to create a Load balancer in GCP<https://scribehow.com/shared/Creating_a_Load_Balancer_in_GCP__Google_Cloud_Platform_V2__QR0iu9a3SdO2sklIpexQLA>
    1
    Sign in into the **Google Cloud Platform**
    2
    Type "**Load balancing**" in the search bar and click on the **Load balancing** option
    information ordinal icon
    **What is Load Balancing?**\ \ Load balancing in Google Cloud Platform (GCP) is a service that distributes incoming network traffic across multiple servers or instances. It ensures high availability and reliability by distributing the workload to prevent any single server from becoming overwhelmed. GCP offers several types of load balancing, including HTTP(S), TCP/SSL, and UDP, to handle different types of traffic. This helps improve application performance and provides seamless scaling to meet varying levels of demand.
    3
    **Load balancin**g wizard will open, click on the Name **my-http-load-balancer**
    4
    **my-http-load-balancer** wizard will open, scroll to the **Frontend** section and copy the **IP:Port** address
    5
    Open the new tab in the browser and paste the copied **IP:Port** address
    6
    **Hello World** and its host details will be displayed
    7
    On the **my-http-load-balancer** wizard, scroll to the **Backend** section and here you can view the Backend services details and configurations
    8
    Go back to the **Hello World** tab. Here, you can see that the host IP is **10.128.0.11**
    9
    Click on the **Reload this page** button on the top left side to refresh the page
    10
    Now you can see that the **Host IP** is changes to **10.128.0.12** after the page reloads
    information ordinal icon
    **Why the host details and IP is changed?**\ \ There are two main reasons why host details and its IP have changed after refreshing the page: 1. **Dynamic Pool:** The load balancer might be using a pool of available servers. When you refresh, it checks the latest status and picks a different server that's healthy and ready to handle traffic. 2. **Server Health Checks:** Load balancers often perform health checks on servers. If a server was previously healthy but becomes overloaded or unresponsive during the refresh, it might be removed from the pool, causing a different server to be chosen.
    information ordinal icon
    Congratulations! on completing this lab and Exploring Load balancer in GCP