{"id":2789,"date":"2017-06-05T08:33:38","date_gmt":"2017-06-05T08:33:38","guid":{"rendered":"http:\/\/cloudkul.com\/blog\/?p=2789"},"modified":"2017-06-14T11:32:42","modified_gmt":"2017-06-14T11:32:42","slug":"how-to-create-a-classic-load-balancer","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/","title":{"rendered":"How to create a Classic Load Balancer"},"content":{"rendered":"<p>In our previous <a href=\"http:\/\/cloudkul.com\/blog\/what-is-elastic-load-balancer\/\">blog<\/a>, we created some understanding about amazon elastic load balancer, its features and applicability. We discussed about elastic load balancer&#8217;s classification as Classical load balancer and Application load balancer on a brief note. Here we will continue with creation of a HTTP classic load balancer and understanding its terminologies.<\/p>\n<h4>Getting Started With Classic Load Balancer<\/h4>\n<p>Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to <a href=\"https:\/\/console.aws.amazon.com\/ec2\/\">https:\/\/console.aws.amazon.com\/ec2\/<\/a> and select load balancers under the Load Balancing category.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122452.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2792\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122452.png\" alt=\"\" width=\"1302\" height=\"564\" \/><\/a><\/p>\n<p>As no load balancer exists, click on Create Load Balancer to create a new one.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-125306.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2794\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-125306.png\" alt=\"\" width=\"1299\" height=\"577\" \/><\/a>As we have discussed earlier, we will continue with classic load balancer.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122713-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2795\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122713-1.png\" alt=\"\" width=\"1296\" height=\"398\" \/><\/a>Define load balancer name that would be running under Default VPC. It going to be an internet facing type, so Create an internal load balancer remains unchecked. Moving on the configuration of Listener Configuration, here listener is a process that checks for connection requests. It is configured with a protocol and a port for front-end (client to load balancer) connections, and a protocol and a port for back-end (load balancer to back-end instance) connections. In our setup, we will be having just HTTP load balancer protocol configured for listener. Also, choose the subnets for\u00a0 our load balancer by enabling advanced VPC configuration.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122726.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2796\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122726.png\" alt=\"\" width=\"1300\" height=\"458\" \/><\/a><\/p>\n<p>We have selected subnets over all availability zones over US-east region. Moving on to assigning our security groups.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122741.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2797\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122741.png\" alt=\"\" width=\"1297\" height=\"575\" \/><\/a>Create a new security group, setup ACL for inbound and outbound traffic for the load balancer or select an existing one. Configuring the security settings,<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122813-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2799\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-122813-1.png\" alt=\"\" width=\"1296\" height=\"571\" \/><\/a>As we are not using SSL\/TLS,\u00a0 we will make no further alterations in our security groups and move on to configuring health check.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123533.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2800\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123533.png\" alt=\"\" width=\"1296\" height=\"572\" \/><\/a>Elastic Load Balancing automatically checks the health of the EC2 instances for your load balancer. If Elastic Load Balancing finds an unhealthy instance, it stops sending traffic to the instance and reroutes traffic to healthy instances. In our configuration, Load balancer will ping on port 80 via HTTP protocol to our EC2 instances. It performs ping requests at the interval of 12 seconds and waits for 5 seconds before it closes the connection with the instances. It waits for 2 failed checks before it declares an instance as unhealthy. Also, it waits for 5 successful pings for considering an instance to be a healthy one. Now we will proceed with adding our EC2 instances.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123605.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2801\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123605.png\" alt=\"\" width=\"1299\" height=\"570\" \/><\/a>Select the running instances that you want to be under elastic load balancing. As we have two instances running in two different availability zones, selecting both of them. We will also enable Cross-Zone Load Balancing and Connection Draining (setting it up to 300 seconds).<\/p>\n<p>By default, your Classic Load Balancer distributes incoming requests evenly across its enabled Availability Zones. Cross-Zone load balancing reduces the need to maintain equivalent numbers of instances in each enabled Availability Zone, and improves your application&#8217;s ability to handle the loss of one or more instances. Also, taking about Connection Draining, to ensure that a Classic Load Balancer stops sending requests to instances that are unhealthy, while keeping the existing connections open, use connection draining. This enables the load balancer to complete in-flight requests made to instances that are unhealthy.<\/p>\n<p>Now, adding tags with the load balancer as,<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123639.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2803\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123639.png\" alt=\"\" width=\"1299\" height=\"578\" \/><\/a>Now to review and create the load balancer<\/p>\n<h4><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123731.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2804\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123731.png\" alt=\"\" width=\"1299\" height=\"584\" \/><\/a>Review your load balancer<\/h4>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123818.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2805\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/Screenshot-from-2017-06-05-123818.png\" alt=\"\" width=\"1295\" height=\"543\" \/><\/a>Our Elastic load balancer is all set up. Check out description of load balancer and you will find all details associated with it. DNS name is the name associated with our internet facing load balancer. Currently, as we can see in the status, no instances are in service as their still getting configured. After a while, we will find these instances in service. Make sure security groups of the load balancer and instances have permissions to access each other&#8217;s traffic.<\/p>\n<p>So far we have discussed how to create our very first HTTP classic load balancer. In our next blog, we will explore more about amazon elastic load balancer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous blog, we created some understanding about amazon elastic load balancer, its features <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":2807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[32,2,1],"tags":[177,176],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a Classic Load Balancer - Cloudkul<\/title>\n<meta name=\"description\" content=\"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a Classic Load Balancer - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-05T08:33:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-14T11:32:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/rAtyqVw8.png\" \/>\n\t<meta property=\"og:image:width\" content=\"848\" \/>\n\t<meta property=\"og:image:height\" content=\"422\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alankrit Srivastava\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\",\"name\":\"How to create a Classic Load Balancer - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2017-06-05T08:33:38+00:00\",\"dateModified\":\"2017-06-14T11:32:42+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16\"},\"description\":\"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a Classic Load Balancer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16\",\"name\":\"Alankrit Srivastava\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Alankrit Srivastava\"},\"description\":\"DevOps Manager at Webkul Software Privated Limited\",\"sameAs\":[\"http:\/\/cloudkul.com\"],\"url\":\"https:\/\/cloudkul.com\/blog\/author\/alankrit-srivastava256\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a Classic Load Balancer - Cloudkul","description":"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.","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:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/","og_locale":"en_US","og_type":"article","og_title":"How to create a Classic Load Balancer - Cloudkul","og_description":"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.","og_url":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/","og_site_name":"Cloudkul","article_published_time":"2017-06-05T08:33:38+00:00","article_modified_time":"2017-06-14T11:32:42+00:00","og_image":[{"width":848,"height":422,"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/06\/rAtyqVw8.png","type":"image\/png"}],"author":"Alankrit Srivastava","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/","url":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/","name":"How to create a Classic Load Balancer - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2017-06-05T08:33:38+00:00","dateModified":"2017-06-14T11:32:42+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16"},"description":"Classic load balancer distributes incoming application traffic, based on either application or network level information, across multiple EC2 instances in multiple Availability Zones. This increases the fault tolerance of your applications. Now, to create a HTTP classic load balancer, login to your AWS account and go to https:\/\/console.aws.amazon.com\/ec2\/ and select load balancers under the Load Balancing category.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/how-to-create-a-classic-load-balancer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a Classic Load Balancer"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16","name":"Alankrit Srivastava","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Alankrit Srivastava"},"description":"DevOps Manager at Webkul Software Privated Limited","sameAs":["http:\/\/cloudkul.com"],"url":"https:\/\/cloudkul.com\/blog\/author\/alankrit-srivastava256\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/2789"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=2789"}],"version-history":[{"count":5,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/2789\/revisions"}],"predecessor-version":[{"id":19801,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/2789\/revisions\/19801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media\/2807"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=2789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=2789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=2789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}