[{"data":1,"prerenderedAt":208},["ShallowReactive",2],{"term-a\u002Fauto-scaling":3,"related-a\u002Fauto-scaling":185},{"id":4,"title":5,"acronym":6,"body":7,"category":163,"description":164,"difficulty":165,"extension":166,"letter":167,"meta":168,"navigation":169,"path":170,"related":171,"seo":179,"sitemap":180,"stem":183,"subcategory":6,"__hash__":184},"terms\u002Fterms\u002Fa\u002Fauto-scaling.md","Auto Scaling",null,{"type":8,"value":9,"toc":157},"minimark",[10,15,19,23,26,30,146,150,153],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Auto scaling is when the cloud automatically adds more servers when traffic spikes and removes them when it drops, so you're not paying for idle machines at 3am. Think of it like a restaurant that automatically hires more staff when it gets crowded and sends them home when it's empty. Magic.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Auto Scaling automatically adjusts compute resources based on demand using scaling policies (target tracking, step scaling, scheduled). AWS Auto Scaling groups manage EC2 instances; Kubernetes uses Horizontal Pod Autoscaler (HPA). Helps maintain performance during peaks and reduces cost during troughs.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# AWS Auto Scaling — scale out when CPU > 70%\naws autoscaling put-scaling-policy \\\n  --auto-scaling-group-name my-asg \\\n  --policy-name scale-out \\\n  --policy-type TargetTrackingScaling \\\n  --target-tracking-configuration '{\n    \"PredefinedMetricSpecification\": {\n      \"PredefinedMetricType\": \"ASGAverageCPUUtilization\"\n    },\n    \"TargetValue\": 70.0\n  }'\n","bash","",[38,39,40,49,67,78,89,100,113,119,125,131,137],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# AWS Auto Scaling — scale out when CPU > 70%\n",[41,50,52,56,60,63],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","aws",[41,57,59],{"class":58},"sfazB"," autoscaling",[41,61,62],{"class":58}," put-scaling-policy",[41,64,66],{"class":65},"sTEyZ"," \\\n",[41,68,70,73,76],{"class":43,"line":69},3,[41,71,72],{"class":58},"  --auto-scaling-group-name",[41,74,75],{"class":58}," my-asg",[41,77,66],{"class":65},[41,79,81,84,87],{"class":43,"line":80},4,[41,82,83],{"class":58},"  --policy-name",[41,85,86],{"class":58}," scale-out",[41,88,66],{"class":65},[41,90,92,95,98],{"class":43,"line":91},5,[41,93,94],{"class":58},"  --policy-type",[41,96,97],{"class":58}," TargetTrackingScaling",[41,99,66],{"class":65},[41,101,103,106,110],{"class":43,"line":102},6,[41,104,105],{"class":58},"  --target-tracking-configuration",[41,107,109],{"class":108},"sMK4o"," '",[41,111,112],{"class":58},"{\n",[41,114,116],{"class":43,"line":115},7,[41,117,118],{"class":58},"    \"PredefinedMetricSpecification\": {\n",[41,120,122],{"class":43,"line":121},8,[41,123,124],{"class":58},"      \"PredefinedMetricType\": \"ASGAverageCPUUtilization\"\n",[41,126,128],{"class":43,"line":127},9,[41,129,130],{"class":58},"    },\n",[41,132,134],{"class":43,"line":133},10,[41,135,136],{"class":58},"    \"TargetValue\": 70.0\n",[41,138,140,143],{"class":43,"line":139},11,[41,141,142],{"class":58},"  }",[41,144,145],{"class":108},"'\n",[11,147,149],{"id":148},"when-youll-hear-this","When You'll Hear This",[16,151,152],{},"\"Auto scaling handled Black Friday traffic — we didn't lift a finger.\" \u002F \"Set up auto scaling before the marketing campaign launches.\"",[154,155,156],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":158},[159,160,161,162],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":148,"depth":51,"text":149},"cloud","Auto scaling is when the cloud automatically adds more servers when traffic spikes and removes them when it drops, so you're not paying for idle machines a...","intermediate","md","a",{},true,"\u002Fterms\u002Fa\u002Fauto-scaling",[172,173,174,175,176,177,178],"Horizontal Scaling","Vertical Scaling","Elasticity","EC2","ECS","Cloud Native","Load Balancer",{"title":5,"description":164},{"changefreq":181,"priority":182},"weekly",0.7,"terms\u002Fa\u002Fauto-scaling","fxwDkK4S8F9y0lttHitsD9w2MF4647ccT7tIEnKfcAE",[186,189,193,197,200,204],{"title":177,"path":187,"acronym":6,"category":163,"difficulty":165,"description":188},"\u002Fterms\u002Fc\u002Fcloud-native","Cloud native means building apps specifically designed to live in and take advantage of the cloud — microservices, containers, auto scaling, managed databa...",{"title":175,"path":190,"acronym":191,"category":163,"difficulty":165,"description":192},"\u002Fterms\u002Fe\u002Fec2","Elastic Compute Cloud","EC2 is AWS's way of renting you a virtual computer in the cloud. You pick how powerful it is, what OS it runs, and pay by the hour.",{"title":176,"path":194,"acronym":195,"category":163,"difficulty":165,"description":196},"\u002Fterms\u002Fe\u002Fecs","Elastic Container Service","ECS is AWS's system for running Docker containers at scale.",{"title":174,"path":198,"acronym":6,"category":163,"difficulty":165,"description":199},"\u002Fterms\u002Fe\u002Felasticity","Elasticity is the cloud's ability to stretch when you need more resources and shrink when you don't — automatically and instantly.",{"title":172,"path":201,"acronym":6,"category":163,"difficulty":202,"description":203},"\u002Fterms\u002Fh\u002Fhorizontal-scaling","beginner","Horizontal scaling means adding MORE servers to handle load instead of making your server bigger. Got too much traffic?",{"title":178,"path":205,"acronym":6,"category":206,"difficulty":165,"description":207},"\u002Fterms\u002Fl\u002Fload-balancer","networking","A load balancer is like a traffic cop for servers.",1776518256878]