{"id":222,"date":"2022-02-01T11:53:14","date_gmt":"2022-02-01T11:53:14","guid":{"rendered":"https:\/\/192.168.1.3\/wordpress\/?p=222"},"modified":"2024-12-20T03:46:40","modified_gmt":"2024-12-20T03:46:40","slug":"aws-solution-architect-associate-saac02-review-material-asg","status":"publish","type":"post","link":"https:\/\/mylinuxsite.com\/wordpress\/?p=222","title":{"rendered":"AWS Solution Architect Associate (SAA-C02) Review Material &#8211; ASG"},"content":{"rendered":"\n<!--more Continue reading-->\n\n\n\n<h4 class=\"wp-block-heading\">General<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Adds or remove EC2 instances according to the load.<\/li><li>Has minimum, maximum and desired number of instances.<\/li><li>Can automatically register instances to ELB target group<\/li><li>Used <strong>launch template<\/strong> or<strong> launch configuration<\/strong> to determine the instance type, volume, network (VPC &amp; Subnet), security group, key pair of the instance to be launched.<\/li><li> <strong>Scale-in<\/strong> = remove instances, <strong>Scale out <\/strong>= add instances<\/li><li>To update ASG you need to provide new launch template or launch configuration.<\/li><li>Terminates instances marked as unhealthy by ELB<\/li><li><strong>Cool Down Period<\/strong> &#8211; No instances will be launched or terminated. Default to 300 seconds.<\/li><li>Has <strong>Lifecycle Hooks<\/strong> &#8211; Additional action can be performed before an instances is in service or terminated.<\/li><li>Health Checks:<ul><li>EC2<\/li><li>ELB<\/li><\/ul><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Types of Scaling<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Manual <ul><li>By manually changing the minimum, maximum or desired capacity<\/li><\/ul><\/li><li>Dynamic (Scale based on metric)<ul><li>Targeted<ul><li>Scale-in when certain metric is above threshold, scale-out when below threshold.<\/li><li>example, when <strong>Average CPU Utilization is <\/strong>above a limit then increase instance.  <\/li><li>Does not need to create a CloudWatch Alarm but can use CloudWatch Metrics<\/li><li>Can use predefined or customized metrics.<\/li><\/ul><\/li><li>Simple<ul><li>Required the use of CloudWatch Alarm<\/li><li>Based on CloudWatch Alarm can add\/remove\/set require instances.  <\/li><li>Can specify the high \/ low of the alarm<\/li><li>Required instances can be a percentage of the group<\/li><\/ul><\/li><li>Step<ul><li>Required the use of CloudWatch Alarm<\/li><li>Similar to Simple but can have step adjustment e.g. <ul><li>CPU &gt; 30% add 1 instance<\/li><li>CPU &gt; 50% add 2 instances<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li>Scheduled (Scale based on schedule)<ul><li>Used when demand is known for a particular period in time.<\/li><\/ul><\/li><li>Predictive<ul><li>Use machine learning to predict capacity requirement.<\/li><li>Good for:<ul><li><strong>Cyclical traffi<\/strong>c, such as high use of resources during regular business hours and low use of resources during evenings and weekends<\/li><li><strong>Recurring on-and-off workload patterns<\/strong>, such as batch processing, testing, or periodic data analysis<\/li><li><strong>Applications that take a long time to initialize<\/strong>, causing a noticeable latency impact on application performance during scale-out events<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Default Termination Policy<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Determines the AZ with the most instances<\/li><li>Determine which instances is launched from the oldest launch template\/configuration<\/li><li>Determine closest to the billing hour<\/li><li>Terminate in random.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-aws-review-notes"],"_links":{"self":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":11,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":1407,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/1407"}],"wp:attachment":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}