EC-2
-It provides resizable computing option in cloud. It reduced the time to obtain & reboot a server to minutes thus allowing scaling up or down your server capacity based on your computing requirements change.
-Pay only for the capacity used.
-Provides tools to developers build failure resilient applications
Types of EC2
By demand - no commitments. fixed rate by the hr(recently updated to rate by the second)
a) applicable when you dont want any long term commitments but want low cost computing and want to use Amazon EC2 flexibility
b) using it for deploying and testing your applications for the first time
c)Applications with short term spiky, unpredictable, un inturrable processes
Reserved - reserve capacity upfront by signing a contract for a 2 or 3 year term which gives good discounts on hourly/secondly rates
a) application which have steady capacity, predictable number of users
b) application with constant capacity requirements
c) Reserved
- Standard - 75% off on per hour charges
-Convertible RIs- 54%- the configuration on the capacity reservation may be altered as long as the exchange is equivalent or greater than the reserved capacity.
eg you want to change from windows to linux etc
-Scheduled RIs - in this case the reserved capacity can be deployed for the time window requested for - these for special short term scenarios when this capacity usage can be scheduled- allows you to reserve for a predicable short term recurring schedule
d) Spot- bid a rate for the capacity - will be useful if your application has flexible start and end timings
- Application has flexible start & end times
- Application needs very low rate computing capacity
use case egs - insurance company requires processing of large amount of data- time is flexible
-emergency need for additional computing power
e)Dedicated hosts - dedicated physical EC2 server at your site. Useful to save on licencing costs.
some usecases are
-govt agencies donot consider cloud ec2 secure and want the instance on their site
-regulatory requirements which donot require multitenant virtualization
-licencing requirements which donot need multitenant virutalization or cloud computing
- may be got by on demand
- or by purchasing on reservation where you get 70% off the demand price
Families of EC2
DR Mc Gift PX
D2-Density- storage
R4-Ram/memory
M4-mainly used for general purpose apps
C4- intensive compute/cpu
G2- graphic intensive - video streaming/3d applications
I2- IOPS - high speed storage-no sql db, data warehousing
F1- Field programmable gate array- FPGA- hardware acceleration code based on app/code
T2- cheap general purpose servers
P2- extreme graphich/pics - machine learning, bit mining
X-1 extreme memory - SAP hanna, spark
EBS- Elastic block storage- are used to create storage volumes that attach to EC2 instance. Once created they can be used to set up file system, run databases or in anyother way a block device can be used. EBS are stored in special availability zones which are then replicated to protect user from failure of a single system
Types
General purpose SSD (GP2)- 3 IOPS per GB- IOPS(Input output per second)- upto 10,000 IOPS
Provisioned IOPS SSD - I/O intesive applications -from 10,000 IOPS to 20,000 IOPS
Magnetic disc drives
types
a)throughput optimized HDD(ST1)
- sequentially written
-cannot be used as boot volumes
- used for big data, logging, data warehousing
b) Cold HDD (SC1)
- infrequently accessed data
-file server etc
c) Standard
cheapest of bootable EBS
Magnetic volumes are suitable for infrequently accessed applications where lowest storage cost is important
Revie & research
instance store volumes