{"id":1370,"date":"2021-07-14T10:47:14","date_gmt":"2021-07-14T09:47:14","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=1370"},"modified":"2021-07-20T05:09:45","modified_gmt":"2021-07-20T04:09:45","slug":"how-to-create-a-load-balancer-in-google-cloud-platform","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/","title":{"rendered":"How to create a Load balancer in Google Cloud Platform?"},"content":{"rendered":"<p>In this article, we will see how to create a load balancer and attach it to an instance group. As you are aware that if any of the applications are facing higher traffic then absolutely the server may work slow. To fix this problem we need to attach the load balancer to the instances in the instance group.<\/p>\n<p>Before starting to learn this article I would recommend you to have a look at our previous blog on &#8220;<a href=\"https:\/\/www.easydeploy.io\/blog\/how-to-create-instance-groups-in-compute-engine\/\" target=\"_blank\" rel=\"noopener\">How to create Instance groups in GCP<\/a>&#8221; to have a better understanding of Instance groups.<\/p>\n<p>It will be a step-by-step process for creating and attaching a load balancer to an instance group. Let&#8217;s get into this article and learn about the creation of load balancers in GCP. Stay tuned here, we will keep publishing a lot more articles on Google Cloud.<\/p>\n<h2>What is a Load Balancer?<\/h2>\n<p>According to Google &#8220;Load balancer scales the applications on Google Compute Engine from zero to full throttle with Cloud Load Balancing service. Cloud Load Balancing is a fully distributed, software-defined, managed service for all the traffic across the network.&#8221;<\/p>\n<p>Load balancer distributes incoming traffic across multiple VM instances to help your application be scalable. In the below screen you can see the architecture of Load balancer.<\/p>\n<h3 style=\"text-align: center;\">Architecture of Load Balancer<\/h3>\n<h3 style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1398 size-full\" title=\"Architecture of load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/06\/Load-balancers.png\" alt=\"Architecture of load balancer\" width=\"408\" height=\"267\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/06\/Load-balancers.png 408w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/06\/Load-balancers-300x196.png 300w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/h3>\n<h3>Prerequisites for Configuring the Load balancer in GCP<\/h3>\n<ul>\n<li>Before configuring the Load balancer you need to create an instance group with some metadata script configured already in the instance template.<\/li>\n<li>Then you have to ensure the instances in the instance group are running in the compute engine.<\/li>\n<\/ul>\n<h2>Ensuring the instance groups is created<\/h2>\n<p>Before creating the Load balancer you need to create an instance group from the instance template by adding some metadata script in it.<\/p>\n<p>Because, Load balancer can be attached to one or more backend services. Here you will be attaching only one backend service i.e, Instance group.<\/p>\n<p>In the below screen you can see that the instance group is already created with two instances which are running in the Google compute engine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1423\" title=\"Instance groups in GCP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.56.50.png\" alt=\"Instance groups in GCP\" width=\"641\" height=\"303\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.56.50.png 937w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.56.50-300x142.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.56.50-768x363.png 768w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<h2>Ensuring the instances in the instance group is running<\/h2>\n<p>In the below screen you can see that the instances from the instance group are running\u00a0 in region us-central1-c and us-central1-b.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1424\" title=\"Instances in compute engine\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.58.13.png\" alt=\"Instances in compute engine\" width=\"748\" height=\"447\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.58.13.png 881w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.58.13-300x179.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.58.13-768x459.png 768w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/p>\n<h2>Creating the Load Balancer in GCP<\/h2>\n<p>After ensuring the above steps you need to create a Load balancer by navigating to the <strong>network services<\/strong> and clicking on the <strong>Load balancing<\/strong> tab in the console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1425\" title=\"creating a load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.59.44.png\" alt=\"creating a load balancer\" width=\"644\" height=\"385\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.59.44.png 881w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.59.44-300x179.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-08.59.44-768x459.png 768w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/p>\n<p>After clicking on the Load balancing tab you will get the screen below. Here, you need to click on the<strong> Create load balancer<\/strong> tab to create a load balancer for your instances.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1426\" title=\"Load balancer in GCP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.00.39.png\" alt=\"Load balancer in GCP\" width=\"651\" height=\"388\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.00.39.png 881w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.00.39-300x179.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.00.39-768x459.png 768w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<h3>Selecting HTTP(s) Load Balancing<\/h3>\n<p>Then by clicking on the Create load balancer tab you will get the screen below. Here, you have to select the HTTP(s) Load balancing and click on start configuration.<\/p>\n<h2>What is HTTP(s) Load balancing<\/h2>\n<p>According to Google &#8220;Google Cloud HTTP(s) Load balancing enables you to run and scale your services worldwide behind a single external IP address. It distributes HTTP and HTTP(s) traffic to backend hosted on Google Compute Engine and Kubernetes Engine.&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1427\" title=\"Selecting HTTP(s) Load Balancing\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.01.36.png\" alt=\"Selecting HTTP(s) Load Balancing\" width=\"714\" height=\"295\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.01.36.png 1198w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.01.36-300x124.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.01.36-1024x423.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.01.36-768x317.png 768w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>Here you have to select the traffic from the internet to your VM because you are going to access this instance through the internet and not between the VMs. After selecting the internet to VM click on the continue button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1428 \" title=\"Load balancer in GCP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.05.02.png\" alt=\"Load balancer in GCP \" width=\"640\" height=\"422\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.05.02.png 717w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.05.02-300x198.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<h2>Configuring the Backend service in Load balancer<\/h2>\n<p>Now you have to give the name for your Load balancer and click on the next button. Then you will get the screen below to configure the Backend service for the load balancer.<\/p>\n<p>If you already have any backend services you can select or you need to click on the <strong>create a backend service<\/strong> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1429\" title=\"Backend service in Load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.07.13.png\" alt=\"Backend service in Load balancer\" width=\"733\" height=\"334\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.07.13.png 1238w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.07.13-300x137.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.07.13-1024x467.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.07.13-768x351.png 768w\" sizes=\"(max-width: 733px) 100vw, 733px\" \/><\/p>\n<h3>Creating the Backend service<\/h3>\n<p>After clicking on the create a backend service you will get the below screen. Here you need to give the name for the backend service and select the <strong>backend type as instance group<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1430\" title=\"Creating the Backend service in Load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.08.40.png\" alt=\"Creating the Backend service in Load balancer\" width=\"543\" height=\"560\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.08.40.png 571w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.08.40-291x300.png 291w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/p>\n<p>Then, In the New backend tab click on the instance group and select the instance group which you have created already in Compute Engine.<\/p>\n<p>Then enter the port number as 80 for HTTP traffic.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1431\" title=\"Creating the Backend service in Load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.09.png\" alt=\"Creating the Backend service in Load balancer\" width=\"569\" height=\"582\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.09.png 642w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.09-293x300.png 293w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>Then finally, In the below screen click on the Health check tab and select the health check which you have already created for the instance group or you can create a new health check.<\/p>\n<p>After entering all the details and the configuring process you need to click on the create button at the last to create a backend service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1432\" title=\"Creating the Backend service in Load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.54.png\" alt=\"Creating the Backend service in Load balancer\" width=\"533\" height=\"545\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.54.png 642w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.13.54-293x300.png 293w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/p>\n<h3>Configuring Host and Path rules<\/h3>\n<p>Therefore after creating the backend service you need to click on the next button. Then it will take you to the Host and path rule.<\/p>\n<p>Here you need to select the mode as <strong>Simple host and path rule<\/strong> and choose the backend which you have recently created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1433\" title=\"Configuring Host and Path rules\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.15.39.png\" alt=\"Configuring Host and Path rules\" width=\"770\" height=\"430\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.15.39.png 1027w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.15.39-300x167.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.15.39-1024x571.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.15.39-768x428.png 768w\" sizes=\"(max-width: 770px) 100vw, 770px\" \/><\/p>\n<h2>Configuring the Frontend service<\/h2>\n<p>After configuring the host and path rule you need to click on the next button and it will take you to the frontend configuration part.<\/p>\n<p>Here you need to give a name for the frontend service and select the HTTP protocol. Then, if you want the IP address to be static you can change that to Ephemeral to static in the IP address tab and click on done.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1434\" title=\"Configuring the Frontend service\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.17.26.png\" alt=\"Configuring the Frontend service\" width=\"739\" height=\"494\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.17.26.png 952w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.17.26-300x200.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.17.26-768x513.png 768w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/p>\n<h3>Reviewing and finalizing<\/h3>\n<p>Then, finally you can review all the process and the details from backend to frontend service. After reviewing you can click on the create button at the left.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1435\" title=\"Reviewing and finalizing the load balancer\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.18.31.png\" alt=\"Reviewing and finalizing the load balancer\" width=\"727\" height=\"463\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.18.31.png 999w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.18.31-300x191.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.18.31-768x489.png 768w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/p>\n<h2>Created a Load Balancer<\/h2>\n<p>Therefore, In the below screen you can see that the Load balancer has been created successfully with one backend service.<\/p>\n<p>To see the load balancer IP address and access the IP you need to click on the Load balancer name. It will take you to the new tab where you can see all the configurations of this Load balancer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1436\" title=\"Created a Load Balancer\u00a0\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.20.29.png\" alt=\"Created a Load Balancer\u00a0\" width=\"746\" height=\"404\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.20.29.png 835w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.20.29-300x162.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.20.29-768x416.png 768w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><\/p>\n<h2>Selecting the Load Balancer IP<\/h2>\n<p>Now, In the below screen you can see the configuration and IP address of this Load balancer. To access the Load balancer IP address in the browser you need to copy the frontend IP address.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1438 \" title=\"Selecting the Load Balancer IP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.21.25.png\" alt=\"Selecting the Load Balancer IP\" width=\"626\" height=\"495\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.21.25.png 796w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.21.25-300x237.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-09.21.25-768x607.png 768w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/p>\n<h2>Accessing the Load Balancer IP<\/h2>\n<p>In the below screen you can see that the Load balancer IP address is working fine in the browser. Here, the data will be fetched from the instance group at the backend.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1503 size-full\" title=\"Accessing the Load Balancer IP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.10.40.png\" alt=\"Accessing the Load Balancer IP\" width=\"391\" height=\"160\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.10.40.png 391w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.10.40-300x123.png 300w\" sizes=\"(max-width: 391px) 100vw, 391px\" \/><\/p>\n<h2>Accessing the IP from an Instance separately<\/h2>\n<p>To check the instance separately in the Compute Engine after configuring the Load balancer, you have to select any one of the instances from an instance group and paste the External IP address in the browser.<\/p>\n<p>Then you can configure the Load balancer IP address to your domain.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1504 aligncenter\" title=\"Accessing the IP from an Instance\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.43-1.png\" alt=\"Accessing the IP from an Instance\" width=\"709\" height=\"149\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.43-1.png 950w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.43-1-300x63.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.43-1-768x162.png 768w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/p>\n<p>In the below screen you verify that both the Load balancer and instances in Compute Engine are working fine by accessing the IP address separately.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1505 size-full\" title=\"Accessing the IP\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.54.png\" alt=\"Accessing the IP\" width=\"382\" height=\"141\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.54.png 382w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-14-14.12.54-300x111.png 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/><\/p>\n<h4>Conclusion<\/h4>\n<p>In this article we have seen the easiest way and step by step procedure to create a Load balancer in Google Cloud Platform. I hope this article will help you in Getting started with Load balancer in Google Cloud Platform.<\/p>\n<p>In the next blog we are going to publish a lot more articles on Google Cloud. Till that stay tuned with us!!!<\/p>\n<p>Happy Learning!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will see how to create a load balancer and attach it to an instance group. As you are aware that if any of the applications are facing higher traffic then absolutely the server may work slow. To fix this problem we need to attach the load balancer to the instances in [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1449,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,25],"tags":[380,383,384,379,385,381,378,288,314,313,382,312],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a Load balancer in Google Cloud Platform?<\/title>\n<meta name=\"description\" content=\"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a Load balancer in Google Cloud Platform?\" \/>\n<meta property=\"og:description\" content=\"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-14T09:47:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-20T04:09:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"993\" \/>\n\t<meta property=\"og:image:height\" content=\"554\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Siranjeevi R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Siranjeevi R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\"},\"author\":{\"name\":\"Siranjeevi R\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\"},\"headline\":\"How to create a Load balancer in Google Cloud Platform?\",\"datePublished\":\"2021-07-14T09:47:14+00:00\",\"dateModified\":\"2021-07-20T04:09:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\"},\"wordCount\":1200,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png\",\"keywords\":[\"application load balancer\",\"aws application load balancer\",\"aws elastic load balancer\",\"aws load balancer\",\"aws load balancer pricing\",\"aws network load balancer\",\"f5 load balancer\",\"Google cloud platform\",\"instance group\",\"Load balancer\",\"load balancer aws\",\"Load balancer in Google Cloud Platform\"],\"articleSection\":[\"Amazon Web Services\",\"Google Cloud Platform\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\",\"name\":\"How to create a Load balancer in Google Cloud Platform?\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png\",\"datePublished\":\"2021-07-14T09:47:14+00:00\",\"dateModified\":\"2021-07-20T04:09:45+00:00\",\"description\":\"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png\",\"width\":993,\"height\":554,\"caption\":\"Load balancer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a Load balancer in Google Cloud Platform?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c\",\"name\":\"Siranjeevi R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g\",\"caption\":\"Siranjeevi R\"},\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/siru\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a Load balancer in Google Cloud Platform?","description":"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/","og_locale":"en_GB","og_type":"article","og_title":"How to create a Load balancer in Google Cloud Platform?","og_description":"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow","og_url":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/","og_site_name":"easydeploy.io","article_published_time":"2021-07-14T09:47:14+00:00","article_modified_time":"2021-07-20T04:09:45+00:00","og_image":[{"width":993,"height":554,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png","type":"image\/png"}],"author":"Siranjeevi R","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Siranjeevi R","Estimated reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/"},"author":{"name":"Siranjeevi R","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c"},"headline":"How to create a Load balancer in Google Cloud Platform?","datePublished":"2021-07-14T09:47:14+00:00","dateModified":"2021-07-20T04:09:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/"},"wordCount":1200,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png","keywords":["application load balancer","aws application load balancer","aws elastic load balancer","aws load balancer","aws load balancer pricing","aws network load balancer","f5 load balancer","Google cloud platform","instance group","Load balancer","load balancer aws","Load balancer in Google Cloud Platform"],"articleSection":["Amazon Web Services","Google Cloud Platform"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/","url":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/","name":"How to create a Load balancer in Google Cloud Platform?","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png","datePublished":"2021-07-14T09:47:14+00:00","dateModified":"2021-07-20T04:09:45+00:00","description":"In this article we will see about how to create a load balancer and attach to an instance group. As you are aware that if any of the application is facing higher traffic then absolutely the server may work slow","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2021\/07\/Untitled-2.png","width":993,"height":554,"caption":"Load balancer"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-create-a-load-balancer-in-google-cloud-platform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a Load balancer in Google Cloud Platform?"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0e7f79e0cd26f6446f7a76d9d2d3b20c","name":"Siranjeevi R","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/353661218917699fcc292e9bc0da9081?s=96&d=mm&r=g","caption":"Siranjeevi R"},"url":"https:\/\/www.easydeploy.io\/blog\/author\/siru\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1370"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=1370"}],"version-history":[{"count":6,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1370\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1370\/revisions\/1517"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/1449"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=1370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=1370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=1370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}