GoConqr has a new look! Let us know what you think.

Notes

EC2 - Elastic Compute Cloud

Asanga Manpitiya Digital Technologies English 1 page

Content of the notes (1)

Page 1

Pricing Options

On Demand

Reserved (1 or 3 year) -cheap

Spot pricing (bid pricing) when spot price exceed bid price instance terminate. (If terminated by amazon we dont have to pay for partial hour. But terminated by us have to pay partial hour)

Dedicated host (Physical machine)

Family (DR MC GIFT PIX)

D2 Dens storage - File servers / data warehousing

R4 RAM - Memory optimizes

M4 Main Choice General Purpose

C4 Compute Optimized

G2 Graphic Intensive - Video streaming

I2 IOPS - High Speed Storage

F1 FPGA Field Programmable / Hardware acceleration for code

T2 Low cost general purpose

P2 Graphic - Images

X1 Extreme Memory optimized

EBS

Volumes for EC2 storage.

Block based storage for OS / VMS ect

Placed in specific availability zone

General purpose SSD (GP2) - 3 IOPS per GB up to 10000 IOPS

Provisionds IOPS SSD (IO1) - I/O intensive operations like relational / NoSQL database More than 10000 IOPS upto 20000 IOPS

Throughput optimized HHD (ST1) - Bigdata, data warehouse, log processing. No Boot volume

Cold HDD - Cheaper. File server No Boot Volume - infrequent access

Magnetic standard - low cost. bootable

1 EBS vloum cannot mount more than 1 EC2 instance

Termination protection is disabled by default

When deleting instance EBS volume also delete by default

EBS boot volume cannot be encrypted by default. But using third party tools it can be encrypted

Security Groups

1 instance can have multiple security groups

can have any number of instances under one security group

Any change in security roles will take effect immediately

Security goups are STATEFUL - If you add an inbound rule the out bound rule add automatically (Not displaying)

No Deny traffic rules. Everything inbound is blocked by default. All outbound traffic is allowed

RAID - Redundant array of independent disks

Raid 0 - Striped. No redundancy, high performance

Raid 1 - Mirrored, Redundancy

Raid 5 - Good for read, bad for write - NOT Recommend for EBS Volums

Raid 10 - Striped, Mirrored, Good performance, Good Redundancy

When there is not enough disc IO Can use RAID

Taking a snapshot of a raid could be a problem due to interdependences of the array.

Need to stop the application

Flush all caches to the disk.

Methods

Freeze the file system

unmount the array

Shuttingdown EC2 instance (easiest way)

Amazon Machine Images (AMI)

Take snapshot -> convert to image.

it can use as a template

AMIs are regional. Bur can copy through commandLine or API

MetaData

curl http://169.254.169.254/latest/meta-data/ e.g public-ipv4

.....meta-data/public-ipv4 > mypublicip.html will write public ip address to web page

Information

Description
Digital Technologies Note on EC2 - Elastic Compute Cloud, created by Asanga Manpitiya on 05/02/2017.
Created by
Asanga Manpitiya · Feb 2017
Updated
Apr 16, 2017
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?