Lec 04-1: Intro to Amazon EC2

2023. 10. 13. 19:24· CS/클라우드컴퓨팅
목차
  1. Lec 04-1: Intro to Amazon EC2
  2. Intro to Computing
  3. Amazon EC2 Overview
  4. Amazon EC2 Benefits
  5. Amazon EC2 architecture
  6. Instance purchasing options
  7. Tenancy

Lec 04-1: Intro to Amazon EC2

Intro to Computing

Computing is the brain that makes IT application work. It collects, analyzes, processes, distributes data

 

Main Components of Computing

CPU

  • runs and processes the instructions that it is given = makes the calculation possible

RAM

  • store data, temporary storage, main memory (DRAM)

Hard drive

  • long-term storage, stores the boot files and files that you create, SSD

Network performance

  • Bandwidth: amount of data that can be sent over a specified time
  • Latency: how long it takes the data to travel

Operating System(OS)

  • every computer has operating system
  • OS is the software package that manages the computer's HW and SW

Amazon EC2 Overview

Amazon EC2 is a web service that provides resizable compute capacity in the cloud at affordable costs all around the world.

  • It provides virtual machines (= EC2 instances)
  • It gives you full control over the guest OS on each instance
  • You can launch instances of any size into an Availability Zone anywhere in the world
  • You can control incoming and outcoming traffic on instances by security groups and Elatic Load Balancing(ELB)

Amazon EC2 Benefits

  • Elastic computing: increase or decrease capacity easily
  • Complete control: full control over the server
  • Flexible hosting services
  • Integrated with most AWS services
  • Reliable, Secure, Inexpensive, Get started quickly

Amazon EC2 architecture

Region

  • physical location where AWS clusters data centers
  • each region is isolated from the other regions
    • this separation is for fault tolerance and stability
  • user can choose the region that is closest to their users to help cut down on latency

VPS (Virtual Private Cloud)

  • Amazon VPC is logically isolated virtual network.
  • EC2 instances are launched in the VPC that you choose, when set up AWS account, they give you a default VPC
  • Each VPC can have a dedicated purpose to support different environments. ex) Development VPC, Testing VPC..

Subnet

  • Subnet is a range of IP addresses in your VPC
    • Public subnet: connected to the internet <-> Private subnet: won't be connected to the internet
  • Subnets are associated with only one Availablility Zone

Security Group

  • virtual firewall for EC2 instances to control incoming and outgoing traffic

Region > VPC > Availability Zone > Subnet > Security Group > EC2 Instance

A best practice is to launch instances in multiple Availability Zones and attach an Elastic Load Balancer(ELB) which automatically distributes incoming traffic.


Instance purchasing options

On-Demand

  • Pay per second (Amazon Linux and Ubuntu) or per hour (all other os)
  • No long-term commitments, No up-front payments
  • Increase or decrease your compute capacity depending on the demands of your apps
  • Use Case
    • short-term, spiky, unpredictable workloads
    • application development or testing
  • Problem solved: The need for immediate compute capacity

Reserved Instances

  • Provide a significant discount up to 72% compared to on-demand
  • Prepay for capacity
  • Use case
    • predictable usage workloads that don't require flexibility in compute power
    • workloads that last longer than 1 year
    • users are able to make upfront payments
  • Problem solved: Provides the ability to reserve capacity ahead of time, reducing cost

Saving Plans Instances

  • Compute Saving Plans
    • most flexibility, help to reduce your cost by up to 66%
    • automatically apply to instance usage regardless of instance family, size, AZ, region, os, tenancy
  • EC2 Instance Saving Plans
    • apply to specific instance family within a specific region
    • provide the largest discount (up to 72%, same with RI)
  • Use case:
    • long time workloads
    • need flexibility computing over location or by instance power
  • Problem solved: Don't have to coordinate your RI purchases

Spot Instances

  • Purchase unused EC2 capacity
  • Up to 90% off
  • Prices controlled by AWS based on supply and demand - if supply < demand : instance will be terminated
  • Termination notice provided 2 minutes prior to termination
  • Use case:
    • Apps with flexible start and end time
    • Users with urgent computing needs for large amounts of additional capacity
  • Problem solved: Low budgeted workloads can be completed with low cost inatances, provided that interruptions can be tolerated

Tenancy

Tenancy defines how EC2 instances are distributed across the physical host hardware.

  • Shared Tenancy: instances share host hardware with instances from other accounts.
  • Dedicated Instance: isolated on host hardware that is not shared with other accounts.
  • Dedicated Host: my own physical server
    • access to manage instance placement on the host hardware
    • consistently deploy instances to the same physical server over time
저작자표시 (새창열림)

'CS > 클라우드컴퓨팅' 카테고리의 다른 글

Lec 05-1: Intro to Amazon S3  (0) 2023.10.16
Lec 04-3: Managing Amazon EC2  (0) 2023.10.15
Lec 04-2: Using Amazon EC2  (0) 2023.10.15
Lec 03: Cloud Platforms, AWS Intro  (1) 2023.10.13
Lec 2: Cloud Infrastructure  (1) 2023.10.13
  1. Lec 04-1: Intro to Amazon EC2
  2. Intro to Computing
  3. Amazon EC2 Overview
  4. Amazon EC2 Benefits
  5. Amazon EC2 architecture
  6. Instance purchasing options
  7. Tenancy
'CS/클라우드컴퓨팅' 카테고리의 다른 글
  • Lec 04-3: Managing Amazon EC2
  • Lec 04-2: Using Amazon EC2
  • Lec 03: Cloud Platforms, AWS Intro
  • Lec 2: Cloud Infrastructure
호프
호프
호프
Untitled
호프
전체
오늘
어제
  • 분류 전체보기 (341)
    • 오류😬 (4)
    • 스터디📖 (96)
      • 웹 개발 기초 (8)
      • Spring (20)
      • ML, DL (30)
      • Node.js (22)
      • React (0)
      • 블록체인 (12)
      • Go (3)
      • Javascript (1)
    • 알고리즘💻 (153)
      • 그리디 (23)
      • Bruteforce&Backtracking (16)
      • DP (17)
      • 이분탐색&정렬&분할정복 (17)
      • 누적합&투포인터 (6)
      • 스택&큐&덱 (19)
      • 그래프(DFS&BFS) (19)
      • 트리 (7)
      • 우선순위큐&다익스트라 (11)
      • 벨만포드&플로이드와샬 (8)
      • map&set&number theory (5)
      • 기타 (5)
    • 프로젝트 (3)
      • 캡스톤 디자인 프로젝트 (3)
    • 블록체인🔗 (3)
      • Solana (2)
      • 개발 (0)
      • Harmony (1)
    • ASC (6)
    • CS (73)
      • 데이터베이스 (12)
      • 클라우드컴퓨팅 (21)
      • 운영체제 (11)
      • 컴퓨터네트워크 (14)
      • 블록체인응용 (15)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 복습

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.1
호프
Lec 04-1: Intro to Amazon EC2
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.