{"id":76170,"date":"2020-09-23T17:00:48","date_gmt":"2020-09-23T14:00:48","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-get-started-with-awss-elastic-load-balancers-cloudsavvy-it\/"},"modified":"2020-09-23T17:00:48","modified_gmt":"2020-09-23T14:00:48","slug":"how-to-get-started-with-awss-elastic-load-balancers-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-awss-elastic-load-balancers-cloudsavvy-it\/","title":{"rendered":"#How To Get Started With AWS\u2019s Elastic Load Balancers \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-6a410c3c7d4b3\" 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-6a410c3c7d4b3\" 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-awss-elastic-load-balancers-cloudsavvy-it\/#What_Is_a_Load_Balancer\" >What Is a Load Balancer?<\/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-awss-elastic-load-balancers-cloudsavvy-it\/#Getting_Started\" >Getting Started<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How To Get Started With AWS\u2019s Elastic Load Balancers \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-128\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0001260b47955fcd5d80c17f40dc4ead\/p\/uploads\/2019\/05\/e4cf2fef.png\" alt=\"\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Load Balancers are network devices that you can use to distribute traffic across multiple servers. AWS\u2019s Elastic Load Balancers are a managed service providing load balancing for your EC2 instances, and enabling the use of Auto-Scaling.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_a_Load_Balancer\"><\/span>What Is a Load Balancer?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Rather than having one large web server handle all the work of serving your <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, Load Balancers allow you to instead have two or three smaller servers that each handle a portion of the work. The Load Balancer sits in front of these servers, and evenly routes incoming traffic to them.<\/p>\n<p>Under the hood, a Load Balancer is just another server running a modified version of HAProxy. You could set this up yourself if you wanted, but like with many other AWS services, it\u2019s great having it all managed for you. They\u2019re easy to set up, and you won\u2019t have to worry about them once they\u2019re running.<\/p>\n<p>AWS\u2019s Elastic Load Balancers support HTTP\/HTTPS traffic at the request level, as well as TCP and UDP at the connection level. They\u00a0<a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/elasticloadbalancing\/pricing\/?nc=sn&amp;loc=3&amp;tag=reviewgeek-20\">cost $17 a month, plus additional data charges<\/a>.<\/p>\n<p>Load Balancers enable high availability\u2014two servers are inherently much better than one server, because if a server goes down or has to restart, it won\u2019t take your application offline. On AWS, they\u2019re also used for Auto-Scaling, a feature that can automatically start additional servers when CPU usage gets too high. This allows your application to scale throughout the day and as necessary. Load Balancers are used in this case to route traffic evenly to each instance in the Auto-Scaling group.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Getting_Started\"><\/span>Getting Started<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>From the EC2 Management Console, select \u201cLoad Balancers\u201d in the sidebar, and\u00a0create a new Load Balancer:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4219 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/897184d322fc522083e61d55fd6a548a\/p\/uploads\/2020\/03\/0b46c93b.png\" alt=\"load balancers sidebar\" width=\"395\" height=\"157\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019re looking to balance HTTP\/HTTPS traffic, choose the Application Load Balancer. For everything else, choose Network Load Balancer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4221\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8b2eec310102e749c8a2dd06e909f008\/p\/uploads\/2020\/03\/1d7f7233.png\" alt=\"select application load balancer\" width=\"700\" height=\"280\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Give it a name, and make sure it\u2019s set to \u201cinternet-facing,\u201d unless you\u2019re balancing internal traffic. By default, only HTTP is enabled, so add a listener for HTTPS:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4222\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8930a6ac9a5eb7e38d751579c13de88a\/p\/uploads\/2020\/03\/5a96457b.png\" alt=\"add HTTPS\" width=\"549\" height=\"270\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to select at least two subnets in different availability zones for the load balancer to serve. If you\u2019re unsure, just select the subnet that your servers are currently in, which you can find under the \u201cInstances\u201d tab in the EC2 Console, and select another one if you\u2019re only using one subnet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4223\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/239e1d0af97a9626dd44a62b08263372\/p\/uploads\/2020\/03\/9b3402da.png\" alt=\"select two AZs\" width=\"700\" height=\"298\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On the next screen, you\u2019ll need to set up HTTPS. This is done using AWS Certificate Manager, which provisions SSL certificates for encrypting the Load Balancer\u2019s traffic. If you already have a cert in ACM, you can select it here, but if not, click \u201cRequest a new certificate from ACM\u201d to set up a new one.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4224\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/ba9266d0ab6d586a09ee0281c8f50f5c\/p\/uploads\/2020\/03\/da52acc3.png\" alt=\"create new cert\" width=\"700\" height=\"259\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll be brought to a new page, where you\u2019ll need to enter in the domain names you plan on using with this Load Balancer. If you want to use subdomains, you can enter them in manually, or just specify a secondary wildcard, like so:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-228\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/1637c9f5714be955a535b80529aefc42\/p\/uploads\/2019\/05\/722fd2e3.png\" alt=\"\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to verify that you own these domains before the certificate can be issued. Open up your DNS configuration, and add a new CNAME record using the name and value given to you by ACM. If you\u2019re using Route 53 as your DNS provider, you can just click the button to create these automatically.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-232\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/91e3f59feac44da1b7853f014676437a\/p\/uploads\/2019\/05\/dba5da0a.png\" alt=\"\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>These may take a while to process, up to an hour, but when it\u2019s finished, you \u201cPending Validation\u201d turn to a green \u201cValidated,\u201d and you\u2019ll be able to refresh and select the certificate in the load balancer setup.<\/p>\n<p>On the next screen, simply select the security group currently used by your instances, unless you wish to create a new one and manually configure it.<\/p>\n<p>Next, you\u2019ll need to create a new \u201ctarget group\u201d for the Load Balancer to point to. You\u2019ll add your instances to this group, and it will balance between them. Make sure \u201cInstance\u201d is set as the type, unless you want to give it a list of IP addresses.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4225\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8bb429f020f11e1085ac22c97a5f35bd\/p\/uploads\/2020\/03\/0ab123a3.png\" alt=\"\" width=\"700\" height=\"401\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On the next screen, select the instances you wish to use with this Load Balancer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4226\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/c89c150da1586f5bea3988bde4971f54\/p\/uploads\/2020\/03\/6233d043.png\" alt=\"\" width=\"700\" height=\"251\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once that\u2019s done, proceed to the review, and click \u201cCreate\u201d to launch your load balancer.\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\/4218\/how-to-get-started-with-awss-elastic-load-balancers\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Get Started With AWS\u2019s Elastic Load Balancers \u2013 CloudSavvy IT&#8221; Load Balancers are network devices that you can use to distribute traffic across multiple servers. AWS\u2019s Elastic Load Balancers are a managed service providing load balancing for your EC2 instances, and enabling the use of Auto-Scaling. What Is a Load Balancer? Rather than&#8230;<\/p>\n","protected":false},"author":1,"featured_media":76171,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/05\/e4cf2fef.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-76170","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\/76170","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=76170"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/76170\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/76171"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=76170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=76170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=76170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}