{"id":539,"date":"2017-09-08T10:47:46","date_gmt":"2017-09-08T10:47:46","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=539"},"modified":"2017-12-24T00:53:45","modified_gmt":"2017-12-24T00:53:45","slug":"elastic-load-balancers","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=539","title":{"rendered":"Elastic Load Balancers (38)"},"content":{"rendered":"<p>Definition<\/p>\n<ul>\n<li>Elastic Load balancers are virtual appliances that spread the load of your traffic across your different Web servers.<\/li>\n<\/ul>\n<p>Lab<\/p>\n<ul>\n<li>Create VMs\n<ul>\n<li>Hello1\n<ul>\n<li>\n<div class=\"KG\">18.221.76.212<\/div>\n<ul>\n<li>172-31-30-194<\/li>\n<\/ul>\n<\/li>\n<li>index.html = &#8216;Hello1&#8217;<\/li>\n<li>healthcheck.html = &#8216;healthy&#8217;<\/li>\n<li>Tags: Group=Hello<\/li>\n<\/ul>\n<\/li>\n<li>Hello2\n<ul>\n<li>\n<div class=\"KG\">18.220.213.83<\/div>\n<ul>\n<li>172-31-6-106<\/li>\n<\/ul>\n<\/li>\n<li>index.html = &#8216;Hello2&#8217;<\/li>\n<li>healthcheck.html = &#8216;healthy&#8217;<\/li>\n<li>Tags: Group=Hello<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Create your ELB (Classic)\n<ul>\n<li>[Create Load Balancer]<\/li>\n<li>Classic -&gt; [Create]<\/li>\n<li>1. Define LB\n<ul>\n<li>Name=HelloELB<\/li>\n<li>HTTP<\/li>\n<li><del>HTTPS &gt; HTTP<\/del><\/li>\n<\/ul>\n<\/li>\n<li>2. Security Groups<\/li>\n<li>3. Configure security settings\n<ul>\n<li>You&#8217;ll need to do this if you selected https in Step 1.\u00a0 Skipping for now<\/li>\n<\/ul>\n<\/li>\n<li>4. Configure Health Check\n<ul>\n<li>Response Timeout: How long to wait for a reply [2]<\/li>\n<li>Interval: How long to wait between checks [5]<\/li>\n<li>Unhealthy Threshold: How many checks before labeling &#8216;unhealthy&#8217; [2]<\/li>\n<li>Healthy Threshold: How many checks before labeling &#8216;healthy&#8217; [3]<\/li>\n<li>[Next]<\/li>\n<\/ul>\n<\/li>\n<li>5. Add EC2 Instances<\/li>\n<li>6. Add Tags\n<ul>\n<li>Group = Hello<\/li>\n<\/ul>\n<\/li>\n<li>7. Review\n<ul>\n<li>[Create]<\/li>\n<\/ul>\n<\/li>\n<li>Get DNS\n<ul>\n<li>HelloELB-1120350220.us-east-2.elb.amazonaws.com<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Classic Notes:<\/p>\n<ul>\n<li>No &#8216;sticky&#8217; or &#8216;persistent&#8217; sessions.\u00a0 Seems to toggle between the 2 instances.<\/li>\n<li>Classic ELBs support both IPv4 and IPv6 (Adv. quiz question)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>Adding Instances<\/h4>\n<p>To add a new instance to a Load Balancer, you must &#8216;register&#8217; it with the Load Balancer&#8217;s &#8216;Target Group&#8217; Shortly after it is registered, it will start responding to the LB.<\/p>\n<h2>Useful Links<\/h2>\n<p>These links were sent to me by AWS in an email:<\/p>\n<p>Creating your first Application load balancer:<br \/>\n&#8211; Getting Started: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/userguide\/load-balancer-getting-started.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/userguide\/load-balancer-getting-started.html<\/a><\/p>\n<p>&#8211; Migrating your existing load balancer: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/userguide\/migrate-to-application-load-balancer.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/userguide\/migrate-to-application-load-balancer.html<\/a><\/p>\n<p>A few How-Tos that will help you set up your Application load balancer initially.<br \/>\n&#8211; Applying Path-Based Routing: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/tutorial-load-balancer-routing.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/tutorial-load-balancer-routing.html<\/a><\/p>\n<p>&#8211; Using ECS Containers as Targets: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/tutorial-target-ecs-containers.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/tutorial-target-ecs-containers.html<\/a><\/p>\n<p>&#8211; Creating an HTTPS Listener: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/create-https-listener.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/create-https-listener.html<\/a><\/p>\n<p>&#8211; Creating a Target Group: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/create-target-group.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/create-target-group.html<\/a><\/p>\n<p>&#8211; Configuring Health Checks: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/target-group-health-checks.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/target-group-health-checks.html<\/a><\/p>\n<p>After getting your Application load balancer set up, you can check out these other features.<br \/>\n-Access logs for detailed information for all requests made to your load balancer: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-access-logs.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-access-logs.html<\/a><\/p>\n<p>&#8211; Monitoring your Load Balancer Using CloudWatch Metrics: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-monitoring.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-monitoring.html<\/a><\/p>\n<p>&#8211; Limits: <a href=\"http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-limits.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.aws.amazon.com\/elasticloadbalancing\/latest\/application\/load-balancer-limits.html<\/a><\/p>\n<p>We hope these resources will answer your questions and help you get started using Application load balancers. If you have additional questions or concerns, please reach out to us on the Amazon EC2 forum: <a href=\"https:\/\/forums.aws.amazon.com\/forum.jspa?forumID=30\" target=\"_blank\" rel=\"noopener\">https:\/\/forums.aws.amazon.com\/forum.jspa?forumID=30<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition Elastic Load balancers are virtual appliances that spread the load of your traffic across your different Web servers. Lab Create VMs Hello1 18.221.76.212 172-31-30-194 index.html = &#8216;Hello1&#8217; healthcheck.html = &#8216;healthy&#8217; Tags: Group=Hello Hello2 18.220.213.83 172-31-6-106 index.html = &#8216;Hello2&#8217; healthcheck.html = &#8216;healthy&#8217; Tags: Group=Hello Create your ELB (Classic) [Create Load Balancer] Classic -&gt; [Create] 1. ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=539\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-539","post","type-post","status-publish","format-standard","hentry","category-amazon-web-services-aws"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=539"}],"version-history":[{"count":8,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/539\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/539\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}