ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · CLF-C02 အပေါ် ဆက်လေ့လာရန်

Horizontal vs vertical scaling

Scale out for capacity and availability, scale up for a quick fix, and scale each tier on its own metric.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Cloud Practitioner မှ သင်သိပြီးသားများ

  • Scalability is the ability to grow. Elasticity is growing and shrinking automatically.
  • Horizontal scaling adds more resources. Vertical scaling uses a bigger one.
  • High availability means the system stays up through failures.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • What changes

    Scale out
    More instances
    Scale up
    A bigger instance
  • Limit

    Scale out
    Almost none
    Scale up
    Largest instance size
  • Downtime

    Scale out
    None
    Scale up
    Usually a restart
  • Availability

    Scale out
    Better: copies in many AZs
    Scale up
    Unchanged: still one server
  • Needs

    Scale out
    Stateless tier, load balancer
    Scale up
    Nothing in the app
Scale out is the default exam answer. Scale up is the quick fix.

1 / 2

  • What changes

    Scale out
    More instances
    Scale up
    A bigger instance
  • Limit

    Scale out
    Almost none
    Scale up
    Largest instance size
  • Downtime

    Scale out
    None
    Scale up
    Usually a restart

2 / 2

  • Availability

    Scale out
    Better: copies in many AZs
    Scale up
    Unchanged: still one server
  • Needs

    Scale out
    Stateless tier, load balancer
    Scale up
    Nothing in the app
Scale out is the default exam answer. Scale up is the quick fix.
  • Web tier

    Scale on
    Requests per target
    Policy type
    Target tracking
  • Queue workers

    Scale on
    Queue depth per instance
    Policy type
    Target tracking, custom metric
  • Compute-bound tier

    Scale on
    Average CPU
    Policy type
    Target tracking
  • Known peak

    Scale on
    Time of day
    Policy type
    Scheduled action
  • Repeating daily pattern

    Scale on
    Forecast load
    Policy type
    Predictive scaling
Choose the metric that really limits the tier.

1 / 2

  • Web tier

    Scale on
    Requests per target
    Policy type
    Target tracking
  • Queue workers

    Scale on
    Queue depth per instance
    Policy type
    Target tracking, custom metric
  • Compute-bound tier

    Scale on
    Average CPU
    Policy type
    Target tracking

2 / 2

  • Known peak

    Scale on
    Time of day
    Policy type
    Scheduled action
  • Repeating daily pattern

    Scale on
    Forecast load
    Policy type
    Predictive scaling
Choose the metric that really limits the tier.

ဘာလဲ

Scaling out (horizontal) adds copies behind a load balancer. It has no hard ceiling, improves availability, because a failed copy is replaced, and needs no downtime. It requires a stateless tier. Scaling up (vertical) moves to a bigger instance. It is simple and needs no code change. But a resize means a stop and a start, the largest size is a ceiling, and one big server is still a single point of failure.

ဘာလဲ

Pick the scaling metric that matches what limits the tier. A web tier scales on requests per target. Queue workers scale on queue depth per instance. A compute-bound tier scales on CPU. Databases usually scale up first, then add read replicas for reads. Writes beyond one node need sharding or a service built for it, such as DynamoDB. Aurora Serverless and DynamoDB on-demand adjust capacity for you.

မှတ်ထားရန်

  • Scale out: more instances, no ceiling, no downtime, needs a stateless design.
  • Scale up: a bigger instance. Simple, but it needs a restart and has a ceiling.
  • Scale a tier on its own metric: requests per target, queue backlog per instance, CPU.
  • Databases: scale up first, then add read replicas for read traffic.

မှတ်ထားရန်

  • Scheduled scaling fits known peaks. Target tracking fits steady response. Predictive scaling fits repeating patterns.

စာမေးပွဲမှာ

  • “Handle growth without downtime and survive an instance failure” points to scaling out across AZs.
  • “A single server runs out of memory and the application cannot change” points to scaling up.
  • “Scale worker instances with the number of waiting jobs” points to scaling on SQS queue depth.
  • “A flash sale starts at 9 AM every day” points to scheduled scaling.