13-High Avaliablity & Scaling

type
status
date
slug
summary
tags
category
icon
password
  1. two types of scaling
    1. vertical scaling
      1. micro ⇒ large
    2. horizontal scaling
      1. ec2 ⇒ ec2 * 2
  1. three w’s of scaling
    1. what
    2. where
    3. when
  1. auto scaling
    1. groups: collection of EC2 instances
    2. steps:
      1. define template
      2. networking and purchasing
      3. elb configuration
      4. set scaling policy
        1. minimun
        2. maximum
        3. desired
          1. current instances count
      5. notifications
    3. types
      1. stepped scaling
        1. notion image
        2. reactive scaling
        3. scheduled scaling
        4. predictive scaling
    4. warmup - cooldown
      1. give time to start
  1. scale relational db
    1. vertical scaling
    2. scaling storage
    3. read replicas
    4. aurora serverless
  1. scale non-relational db
    1. types
      1. provisioned
      2. on demand
    2. read capacity unit
      1. 1 RCU = 4KB / 1 strong
    3. capacity unit
      1. WCU
      2. 1 WCU = 1KB / 1 strong
  1. tips
    1. auto scaling is only for ec2
  1. disaster recovery strategies
    1. Recovery Point Objective
      1. data capacity - 4h
    2. Recovery Time Objective
      1. time - 2h
    3. backup and restore
     
    14-Decoupling Workflow12-Monitoring