leverage amazon web services to build elastic it-infrastructure architectures…
TRANSCRIPT
![Page 1: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/1.jpg)
Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…
![Page 2: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/2.jpg)
© Zühlke 2013
Introduction to Amazon Web Services
Christian Tschenett
Amazon Web Services
One minute introduction
13. January 2013Slide 2
![Page 3: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/3.jpg)
Servers
Web Storage
Load Balancer
User(s) Client
AmazonWeb Services
AWS Management
Console
DevOp
![Page 4: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/4.jpg)
© Zühlke 2013
Introduction to Amazon Web Services
Christian Tschenett
Elastic Architectures
A simplistic case…
13. January 2013Slide 4
![Page 5: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/5.jpg)
Data Center Europe
Mitigate increasing loadwith horizontal scaling
![Page 6: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/6.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
• Manual interface to the Data Center
• Hardware provisioning process partly consists of human tasks– Hardware procurement– Hardware installation– Network configuration– …
Adding additional servers is a matter of days to weeks!
Traditional Data Center
Traditional Data Center
13. January 2013 Slide 6
![Page 7: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/7.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Web InterfaceSOAP Interface
Infrastructure-as-a-Service Provider
• Self-service interface to the Data Center (Web Console, API)
• Virtual-Hardware provisioning is fully automated
Adding additional virtual servers is a matter of minutes!
Infrastructure-as-a-Service Provider
13. January 2013 Slide 7
![Page 8: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/8.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Elastic Architecture with Auto Scaling
t1: Medium Load
Servers Nodes: 2
IaaS-Provider (AWS, …)
t2: High Load
=> Scale up!
Server Nodes:
t3: Low Load
=> Scale Down!
Server Nodes:
13. January 2013 Slide 8
![Page 9: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/9.jpg)
© Zühlke 2013
Introduction to Amazon Web Services
Christian Tschenett
Amazon Web Services
Basic concepts and services
13. January 2013Slide 9
![Page 10: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/10.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Elastic Compute Cloud (EC2) Instances
Sever Node
«on-premise»
EC2 Instance
Elastic Block Storage
«AWS»
attached root device
CPU,Memory,IO
Disk- OS- Middleware- Applications
13. January 2013 Slide 10
![Page 11: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/11.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Amazon Machine Images (AMI)
Node #1
«on-premise»
Node #2
Disk Image
«AWS»
Instance #1
Instance #2
Amazon Machine Image
run instancerun instance
- OS- (Middleware)- (Applications)
13. January 2013 Slide 11
![Page 12: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/12.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Security Groups
App #1
«on-premise»
App #2
DB
Web #1
Web #2
DMZ
App Zone
Secure Zone
Admin SG: allow SSH from Zühlke
App #1
«AWS»
App #2
Web #1 Web #2
DB
App S
G:
allo
w 8
08
0fr
om
Web S
G
Web S
G:
allo
w H
TTPS
from
*
DB
SG
:allo
w 1
52
1fr
om
App S
G
13. January 2013 Slide 12
![Page 13: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/13.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Elastic Load Balancers
Node #1
«on-premise»
Node #2
Load Balancer Load Balancer’
Instance #1
«AWS»
Instance #2
Elastic Load Balancer
availability-zone 1a
availability-zone 1b
13. January 2013 Slide 13
![Page 14: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/14.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Amazon Relational Database Service (RDS)Managed Oracle, SQL Server, MySQL «on-premise»«AWS»
RDS DB Instance
RDS DBInstanceStandby
availability-zone 1a
availability-zone 1b
RDBMS Software,Redundant HW,RAID Storage,Failover,Snapshots,Backup/Restore,Patches,…
13. January 2013 Slide 15
![Page 15: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/15.jpg)
© Zühlke 2013
Introduction to Amazon Web Services
Christian Tschenett
Amazon Web Services
Putting it all together – back to the simplistic case…
13. January 2013Slide 16
![Page 16: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/16.jpg)
on premises solution
Elastic LoadBalancer
EC2 Instance
EC2 Instance
EBS Volume
EBS Volume
Availability Zone 1a
Availability Zone 1b
EC2 Security Group RDS Security Group
RDS DB Instance
Standby
![Page 17: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/17.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. rds-create-db-instance helloWorldDb --allocated-storage 5 --db-instance-class db.t1.micro --engine mysql --master-username masteruser --master-user-password masterpw1234 --db-security-groups helloRdsSg
2. rds-describe-db-instances helloWorldDb
3. rds-authorize-db-security-group-ingress helloRdsSg --cidr-ip 188.63.186.153/32
AWS command line toolsCreate an new MySQL Database Server
13. January 2013 Slide 18
![Page 18: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/18.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. echo "create database helloworlddb; use helloworlddb; create table message( mkey varchar(255), mval varchar(255)); insert into message(mkey,mval) values ('welcome','Hello from DB');" | mysql -u masteruser -pmasterpw1234 -h helloworlddb.….eu-west-1.rds.amazonaws.com
MySQL command line toolsCreate database and tables, import data
Not AWS specific
(standard mysql)
13. January 2013 Slide 19
![Page 19: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/19.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. ec2-run-instances ami-c37474b7 -g helloSg -k myKey -t t1.micro
2. ec2-describe-instances i-3e15f174
AWS command line toolsCreate and start a new Linux Server(an EC2 instance based on Amazon Linux)
13. January 2013 Slide 20
![Page 20: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/20.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
ssh -i myKey.pem ec2-user@$ec2-….amazonaws.com
1. sudo su -2. yum -y install tomcat73. cd /var/lib/tomcat7/webapps/4. wget http://sisetestbucket.….amazonaws.com/test.war5. chown tomcat:tomcat test.war6. cd /usr/share/tomcat7/conf/7. echo 'JAVA_OPTS="${JAVA_OPTS}
-Ddbendpoint=helloworlddb.….amazonaws.com/helloworlddb -Ddbuser=masteruser -Ddbpassword=masterpw1234"' >> /usr/share/tomcat7/conf/tomcat7.conf
8. service tomcat7 start
Linux AdministrationInstall Tomcat and deploy web application
Not AWS specific
(standard Linux)
13. January 2013 Slide 21
![Page 21: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/21.jpg)
© Zühlke 2013
Introduction to Amazon Web Services
Christian Tschenett
Amazon Web Services
Supporting concepts for Elastic Architectures
13. January 2013Slide 22
![Page 22: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/22.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
Elastic Architecture
Alarm(s)Amazon
CloudWatch
Elastic LoadBalancer
EC2 Instances
Amazon RDSAuto scaling Group
Down-/Up-Scale
13. January 2013 Slide 23
![Page 23: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/23.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. elb-create-lb helloWorldWeb --availability-zones eu-west-1a,eu-west-1b --listener "protocol=http, lb-port=80,
instance-port=8080"
2. elb-configure-healthcheck helloWorldWeb --target "HTTP:8080/test/index.html" --interval 60 --timeout 5 --unhealthy-threshold 5 --healthy-threshold 5
AWS command line toolsCreate a new Elastic Load Balancer
13. January 2013 Slide 24
![Page 24: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/24.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. as-create-launch-config helloWorldTomcat --image-id ami-c37474b7 --instance-type t1.micro --group helloSg --key myKey --user-data-file cloudinit_tomcat_demoapp.sh
2. as-create-auto-scaling-group helloWorldAutoScaling --launch-configuration helloWorldTomcat --max-size 2 --min-size 1 --availability-zones eu-west-1a,eu-west-1b --load-balancers helloWorldWeb
AWS command line toolsCreate an Auto Scaling Group
13. January 2013 Slide 25
![Page 25: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/25.jpg)
© Zühlke 2013Introduction to Amazon Web Services | Christian Tschenett
1. as-put-scaling-policy MyScaleUpPolicy --auto-scaling-group helloWorldAutoScaling --adjustment=1 --type ChangeInCapacity --cooldown 300
2. mon-put-metric-alarm MyHighLatencyAlarm --metric-name Latency --namespace "AWS/ELB" --dimensions "LoadBalancerName=helloWorldWeb" --comparison-operator GreaterThanThreshold --evaluation-periods 2 --period 60 --statistic Average --threshold 0.3 --alarm-actions arn:…/MyScaleUpPolicy
AWS command line toolsSetup Scaling Policies and Alarms
13. January 2013 Slide 26
![Page 26: Leverage Amazon Web Services to build Elastic IT-Infrastructure Architectures…](https://reader035.vdocuments.net/reader035/viewer/2022062417/5516b2c3550346f6208b52fb/html5/thumbnails/26.jpg)
http://www.youtube.com/watch?v=HVGLx8OW5Ds
this presentation contains icons provided by Amazon Web Services and by openclipart.org