instance types are classified basing on 4 dimensions:
Family | strength | Comments |
---|---|---|
C4 | vCPU | |
r3 | memory | |
i2 | storage | huge amount of fast ssd |
g2 | GPU |
Enhanced Networking
It reduce the impact of virtualization on network by Single Root I/O Virtualization (SR-IOV)
this result in more Packets Per Second (PPS), lower latency and less jitter.
Amazon Machine Image
AMI are x86 OS, for linux or windows
security group, security is instance level, meaning, firewall for each instance is independent.
userdata is attached to the instance and not encrypted. so no password should be in UserData
a placement group is a logical grouping of instances within a single AZ.
instances within a placement group will be placed with low latency, 10Gbps network.
EBS Volume Type Comparison
this need update with new HDD types. throughput-optimized HDD and cold HDD
characteristic | general-purpose SSD | Provisioned SSD | magnetic |
---|---|---|---|
user case | - system boot volumes - virtual desktop - small-to-medium DB - development and test environemnts | - critial business need high IOPS (like 10,000 IOPS or 160MB throughput per volume) - large DB | - cold workloads, infrequently accessed - low storage cost is needed |
volume size | 1GB - 16TB | 4GB - 16TB | 1GB - 1TB |
maximum throughput | 160MB | 320MB | 40-90MB |
IPOS | 3 IOPS/GB(upto 10,000IOPS) | consistently performs at provisioned level, up to 20,000 IOPS maximum | average 100 IOPS, burst to hundereds of IOPS |
incremental backups
taking snaptshot is free, only need to pay for the storage of the snapshots. and the snapshots in S3 are not common S3 objects ownerd by users. they can only be manipulated by snapshot tools.
EBS offers a native encryption on all volume types.
key is managed by KMS
encryption is transparent
[root@ip-172-31-17-48 ~]# for i in curl http://169.254.169.254/latest/meta-data/
; do echo '#'
i
i
s
;
c
u
r
l
h
t
t
p
:
/
/
169.254.169.254
/
l
a
t
e
s
t
/
m
e
t
a
−
d
a
t
a
/
i is; curl http://169.254.169.254/latest/meta-data/
iis;curlhttp://169.254.169.254/latest/meta−data/i/;echo; done
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 293 100 293 0 0 58600 0 --:–:-- --:–:-- --:–:-- 58600
#ami-id is
ami-0fcb508ec48b146df
#ami-launch-index is
0
#ami-manifest-path is
(unknown)
#block-device-mapping/ is
ami
root
#events/ is
maintenance/
#hostname is
ip-172-31-17-48.cn-northwest-1.compute.internal
#identity-credentials/ is
ec2/
#instance-action is
none
#instance-id is
i-0a4b82d33b2567159
#instance-type is
t2.micro
#local-hostname is
ip-172-31-17-48.cn-northwest-1.compute.internal
#local-ipv4 is
172.31.17.48
#mac is
06:e0:60:0b:9d:fc
#metrics/ is
vhostmd
#network/ is
interfaces/
#placement/ is
availability-zone
#profile is
default-hvm
#public-hostname is
ec2-52-83-65-133.cn-northwest-1.compute.amazonaws.com.cn
#public-ipv4 is
52.83.65.133
#public-keys/ is
0=aws-test-keys
#reservation-id is
r-013028430511ea4b0
#security-groups is
launch-wizard-1
#services/ is
domain
partition