{"id":92486,"date":"2020-10-19T11:00:41","date_gmt":"2020-10-19T08:00:41","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-get-started-with-google-cloud-platforms-global-load-balancing-cloudsavvy-it\/"},"modified":"2020-10-19T11:00:41","modified_gmt":"2020-10-19T08:00:41","slug":"how-to-get-started-with-google-cloud-platforms-global-load-balancing-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-google-cloud-platforms-global-load-balancing-cloudsavvy-it\/","title":{"rendered":"#How To Get Started With Google Cloud Platform\u2019s Global Load Balancing \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3a94fe62485\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3a94fe62485\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-google-cloud-platforms-global-load-balancing-cloudsavvy-it\/#What_Is_Global_Load_Balancing\" >What Is Global Load Balancing?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-google-cloud-platforms-global-load-balancing-cloudsavvy-it\/#Setting_Up_A_Load_Balancer\" >Setting Up A Load Balancer<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How To Get Started With Google Cloud Platform\u2019s Global Load Balancing \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5008\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/c62e7d3ba0875e340cfc62560f3c843f\/p\/uploads\/2020\/06\/ed9b3a64.png\" alt=\"load balancer\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Much like AWS, Google offers managed load balancing as a service, helping to distribute traffic across multiple servers. On Google\u2019s Premium Network tier, there\u2019s also Global Load Balancing, which uses a single IP across all regions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_Global_Load_Balancing\"><\/span>What Is Global Load Balancing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Load Balancers are network device which allows horizontal scaling, basically making multiple servers respond as one big server by splitting traffic between them. This also has the benefit of ensuring high availability, as the crash of any single <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>lication server should not tank the whole cluster or affect the availability of your application.<\/p>\n<p>Usually, you\u2019ll need a separate Load Balancer for each region, and that\u2019s how it works on Google\u2019s standard network tier. However, on their premium network tier, you only need one load balancer which can be used to balance traffic across the globe. This load balancer only needs a single anycast IP, so you won\u2019t have to mess about with DNS geo-routing. Users sent to your IP address will automatically be routed to the closest location.<\/p>\n<p>Google is a massive company, and actually owns a lot of the physical internet. Their premium network tier routes traffic using only a Google controlled network, only exiting into the clearnet close to the user for final routing. Control of most of the transport chain allows for global-level features like Global Load Balancing, and Global CDNs.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Setting_Up_A_Load_Balancer\"><\/span>Setting Up A Load Balancer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>From the <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/console.cloud.google.com\/net-services\/loadbalancing\/\">Network Services Console<\/a>, create a new load balancer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5011\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/02a4d99b9d0dda741475a794cc18b1bd\/p\/uploads\/2020\/06\/01ba3921.png\" alt=\"create new load balancer\" width=\"700\" height=\"384\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Set the load balancer to be internet facing, unless it\u2019s for an internal service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5012\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/7d8b37df61b6e79888112a8dacb086d3\/p\/uploads\/2020\/06\/79565508.png\" alt=\"internat facing\" width=\"393\" height=\"196\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Load balancers consist of a few things\u2014a backend configuration, a frontend configuration, and routing rules.<\/p>\n<p>The backend configuration tells the load balancer where to balance traffic between. This can be a Cloud Storage bucket, or a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5010\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/2a40c1cca3e1f53440aa020e114af26b\/p\/uploads\/2020\/06\/bd06c9ce.png\" alt=\"create load balancer\" width=\"700\" height=\"295\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Unless you have an autoscaling instance group already, click \u201cCreate more instance groups.\u201d<\/p>\n<p>You don\u2019t actually have to set up autoscaling. If you want to manage the instances yourself, choose \u201cUnmanaged instance group,\u201d and select any number of VM instances.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5013\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/c3d681ecc18d3797c2a642b952de6d4c\/p\/uploads\/2020\/06\/a059ee30.png\" alt=\"select unmanaged\" width=\"700\" height=\"450\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to set up a health check, for which the default configuration is likely fine. If you need to set up multiple regions, you\u2019ll need multiple \u201cBackends.\u201d The configuration is the same.<\/p>\n<p>You can also set up Cloud CDN, or other advanced features like Session affinity, which will keep users connected to the same server for their whole session.<\/p>\n<p>For the next step, you can set up any complex routing rules. By default, all traffic will be routed to the backends you set up, but you can route different paths to separate backends. For example, if you want to store static content in a Cloud Storage bucket, your can set up a backend using that bucket specifically for the <code>\/images<\/code>\u00a0path.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5014\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/9565048008cd96db3fbda25bb43c1bdd\/p\/uploads\/2020\/06\/db205de9.png\" alt=\"routing rules\" width=\"700\" height=\"250\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For the frontend configuration, you\u2019ll want to set the protocol to HTTPS, and switch the IP address type from Ephemeral to Static, which you can use with your DNS.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5024\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/e0b917a973121a513f89c723966b6df3\/p\/uploads\/2020\/06\/2598d51c.png\" alt=\"\" width=\"700\" height=\"372\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll of course need an SSL certificate\u2014you can create your own from Google, or upload one manually.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5026\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/9ce25f83620480327312118ca1f3b316\/p\/uploads\/2020\/06\/9498b720.png\" alt=\"\" width=\"655\" height=\"266\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Click Review, and then create your load balancer. It should start working within a few minutes.\n<\/p><\/div>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/5006\/how-to-get-started-with-google-cloud-platforms-global-load-balancing\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Get Started With Google Cloud Platform\u2019s Global Load Balancing \u2013 CloudSavvy IT&#8221; Much like AWS, Google offers managed load balancing as a service, helping to distribute traffic across multiple servers. On Google\u2019s Premium Network tier, there\u2019s also Global Load Balancing, which uses a single IP across all regions. What Is Global Load Balancing?&#8230;<\/p>\n","protected":false},"author":1,"featured_media":92487,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/06\/ed9b3a64.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-92486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/92486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=92486"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/92486\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/92487"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=92486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=92486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=92486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}