More Related Content Similar to Architecting Applications (20) More from Amazon Web Services (20) Architecting Applications1. Architecting
Applications
Matt Wood
Technology Evangelist
4. AGENDA
9th November, 2010
Application lifecycle
Environments
Testing
Mo ving to Production
Summar y
26. Network security
Metrics
Hadoop
Tagging
Placement
EC2 HPC
Auto-scaling
MySQL
Idempotency
32. ges m ade Dev
C han
here
Test / QA
Staging
Shouldn’t
Production affect
this!
34. Dev
Test / QA
Same s ervices,
versio ns, OS,
configs Staging
Production
37. Dev
l-in- one
Al
Test / QA
Staging Multi-tier,
high availa
bility,
managed
Production
38. Dev
l-in- one
Al
Test / QA
ulti- tier
M
tier, Multi-tier,
M ulti- Staging
aila bility high availa
bility,
hig h av managed
Production
40. ➊ Spin up new instance
> ec2-run-instances ami-2938699
$
<credentials>
➋ Log in to instance
> ssh <credentials>
root@ec2-174-129-123-206.compute-1.amazonaws.com
➌ Install and launch services
> yum install apache, apache-devel, ruby, rails
53. Aq uick
not e ab out
stor age
60. ➊ Create new volume
> ec2-create-vol -s 10G
<credentials>
➋ Attach to instance
> ec2-attach-volume vol-1238797ah -i <instance>
-d <device> <credentials>
$
➌ Format and mount
$ mkfs.xfs /dev/sdh;
$ <add mount point>
$ mkdir /vol; mount /vol
62. Code
Data Configuration
OS State
ami-12398712
+
snap-986854a
63. ➊ Bundle instance
> ec2-bundle-vol -d /mnt
<credentials>
➋ Upload bundle
> ec2-upload-bundle -b <bucket> -m /mnt/manifest.xml
<credentials>
$
➌ Register bundle
> ec2-register <bucket>/manifest.xml
66. Dev #1 Dev #2 Dev #2
AMI and
snapshot:
same base
versions,
73. Freedom to
innovate
ew services New
architectures
New tools
New models
83. Load testing
Continuous integration
Cost reduction
Webinar
aws.amazon.com
Automation
Multi-layer
System Integration
86. ai lab ilit Fail o
ver
Av
y
Production
Monitorin
g Scale
95. ➊ Allocate Elastic IP Free
when
alloc
> ec2-allocate-address ated!
ADDRESS
174.129.200.110
➋ Associate Elastic IP to instance
> ec2-associate-address 174.129.200.110
-i i-7044821d
➌ Address service via Elastic IP
96. ➊ Spin up new instance
> ec2-run-instances -t m1.small
$
ami-192871
➋ Dis-associate Elastic IP
> ec2-disassociate-address
174.129.200.110
➌ Re-associate to new instance
> ec2-associate-address 174.129.200.110
-i i-23987423
108. ➊ Allocate Elastic Load Balancer (ELB)
> ec2-allocate-address
ADDRESS
174.129.200.110
➋ Assign instances to ELB
> ec2-associate-address 174.129.200.110
-i i-7044821d
➌ Address service via ELB CNAME
111. AGENDA
9th November, 2010
Application lifecycle
Environments
Testing
Mo ving to Production
Summar y
112. On demand Development
PAYG Testing
Security Production
Architecture Easy to use