9. Storage Computing Data
@stefanrichter
Thursday, 15 September 2011
10. EC2
“Elastic Compute Cloud”
Resizable compute capacity in the cloud.
Designed to make web-scale computing easier for developers.
@stefanrichter
Thursday, 15 September 2011
12. Regions
US-East - N.Virginia
US-West - N. California
EU - Ireland
APAC - Singapore
APAC - Tokyo
@stefanrichter
Thursday, 15 September 2011
13. Zones
physically and logically separate infrastructure
high speed, low latency network
easy data replication
consistent set of APIs
example: EBS snapshot > restore to different zone
@stefanrichter
Thursday, 15 September 2011
14. £ cost $ Elastic computing
predicted demand
time @stefanrichter
Thursday, 15 September 2011
15. £ cost $ Elastic computing
predicted demand
traditional hardware
time @stefanrichter
Thursday, 15 September 2011
16. £ cost $ Elastic computing
predicted demand
actual demand
traditional hardware
time @stefanrichter
Thursday, 15 September 2011
17. £ cost $ Elastic computing
predicted demand
actual demand
automated scaling
traditional hardware
time @stefanrichter
Thursday, 15 September 2011
18. £ cost $ Elastic computing
predicted demand
actual demand
automated scaling
time @stefanrichter
Thursday, 15 September 2011
20. • launch Amazon AMI
• then: sudo yum install mysql-server
• service mysqld start
• mysql_secure_installation
• mysql -uroot -p
• if necessary:
update user set host=’%’ where
user=’root’ and host=...
flush privileges;
• try and connect from remote host
@stefanrichter
Thursday, 15 September 2011
26. EBS
“Elastic Block Storage”
Distributed, replicated block data store optimised for consistency
and low latency read and write access from EC2 instances
Like a HDD
@stefanrichter
Thursday, 15 September 2011
30. Hosting a static site on S3
Website Endpoints
Permissions
Root and Index Documents
Error Document
S3 / Cloudfront
Locally ‘dynamic’ via Disqus etc.
Storage: first TB = $0.14/GB
@stefanrichter
Thursday, 15 September 2011
31. Demo
@stefanrichter
Thursday, 15 September 2011
35. Transfer in: free
S3 Transfer out: 1GB free then $0.12/GB
$1,228.80
@stefanrichter
Thursday, 15 September 2011
36. My figures
$25.20
$331.77
:-/
@stefanrichter
Thursday, 15 September 2011
37. CloudFront
Origin/Edge distributions
Low latency, high speed
S3 or custom origin
Static or streaming (HTTP/S, RTMP)
@stefanrichter
Thursday, 15 September 2011
38. Database Options
MySQL/SQL Server/etc on EC2
RDS (MySQL/Oracle)
SimpleDB (non-relational)
@stefanrichter
Thursday, 15 September 2011
39. RDS
Relational database service Create your own snapshots
“database in the cloud” Multi-AZ deployment
Hot standby (synchronous replication)
Pre-configured, up and running in minutes Auto-failover (1-2 mins)
DB instance type scaling
CloudWatch integration Price:
Automatic patching small instance $0.11/hour (x2 for multi-AZ)
Backups = $79.20/month + storage + IO + data transfer
Replication
Automated backups:
nightly snapshots + transaction backups
point-in-time restore option
@stefanrichter
Thursday, 15 September 2011