ColdFusion 10 in the Amazon AWS Cloud Sven Ramuschkat tecracer GmbH
Sven Ramuschkat Focus on Web-Projects - Adobe ColdFusion - Adobe Flash Media Server - Adobe LiveCycle - Adobe Flex, Connect - Java, HTML5, Jquery, Sencha - Grails - Amazon AWS - 30 Employees
Amazon s three Businesses Tens of millions of active customer accounts Nine countries: US, UK, Germany, Japan, France, Canada, China, Italy, Spain Sell on Amazon websites Use Amazon technology for your own retail website Leverage Amazon s massive fulfillment center network Cloud computing infrastructure for hosting web-scale solutions Hundreds of thousands of registered customers Since 2006
How can my organizaton benefit from the Cloud?
Cloud Computing Benefits
Elasticity Elasticity is a fundamental property of the cloud that drives many of its economic benefits
Elasticity 6 am
Elasticity 10 am
Elasticity 25% Savings Web Servers 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Hour during a day
Elasticity Example Wallstreet App 3000 CPU s for one firm s risk management processes 3000 - Number of EC2 Instances 300 CPU s on weekends 300 - Wednesday Thursday Friday Saturday Sunday Monday Tuesday 4/22/2009 4/23/2009 4/24/2009 4/25/2009 4/26/2009 4/27/2009 4/28/2009
What do I need? Amazon AWS actually has 22 Services
And each month new features 2010 or first contact with Amazon AWS hatten
The Scale of AWS: Amazon S3 Growth
The Scale of AWS This was calculated by Huan Liu in his Blog, not Amazon AWS official! Amazon actually has 1.982.384 IP4 Adressen in their Pool. Data center # of server racks # of blade servers US East (Virginia) 5,030 321,920 US West (Oregon) 41 2,624 US West (N. California) 630 40,320 EU West (Ireland) 814 52,096 AP Northeast (Japan) 314 20,096 AP Southeast (Singapore) 246 15,744 SA East (Sao Paulo) 25 1,600 Total 7,100 454,400
Building Blocks
AWS Platform Overview
AWS Global Infrastructure
AWS Worldwide Datacenters 8 Amazon AWS Data Center (AWS Regions) in different Regions of the World. To use which Region is customers choice. German customers should use the Data Center in Ireland because of Data Protection Laws.
Amazon AWS Availability Zones Each Amazon Data Center (AWS Region) has at least 2 Availability Zones Availability Zones are distinct locations that are engineered to be insulated from failures in other Availability Zones and provide inexpensive, low latency network connectivity to other Availability Zones in the same Region. Some AWS Resources like RDS or S3 are redundantly by default.
AWS Worldwide Distribution Amazon CloudFront is a web service for content delivery. It integrates with other Amazon Web Services to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no commitments.
AWS Network Services
Amazon VPC
Amazon VPC
AWS Compute Services
Amazon Elastic Compute Cloud (EC2) EC2 = Virtual Machine Amazon EC2: on-demand compute power Obtain and boot new server instances in minutes Quickly scale capacity up or down Servers from $0.02 (2 cents) per hour On Demand, Reserved, and Spot Pricing Key features: Support for Windows, Linux, FreeBSD, and OpenSolaris Supports all major web and application platforms Deploy across Availability Zones for reliability monitors status and usage
Amazon EC2 One EC2 Compute Unit provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor. This is also the equivalent to an early-2006 1.7 GHz Xeon processor referenced in our original documentation
Amazon EC2
Amazon EC2 Instance Pricing Most customers do not use Reserved Instances and pay to much! By using Reserved Instances you can save up to 70% on EC2 costs
AWS Storage Services
Amazon Elastic Block Store (EBS) 1 GB to 1 TB per Volume in Size EBS-Volumes appropriate for Boot-Volumes and Applications with a need for moderate I/O. Amazon EBS-Volumes performing at 100 IOPS. Normal PC Harddisks with 7.200 RPM performing at 75 100 IOPS Server Harddisks with 15.000 RPM performing at 175-210 IOS.
Elastic Block Store (EBS) with provisioned IOPS Provisioned IOPS are a new EBS volume type designed to deliver predictable, high performance for I/O intensive workloads, such as database applications, that rely on consistent and fast response times. 200 GB EBS Volume with 1.000 IOPS costs: ($0.11 per provisioned IOPS-Month * 1000 IOPS Provisioned ) + 200 GB * $0.138 = $137,60 / Monat. A normal EBS-Volume costs $25 to $30
How EBS Interacts With EC2 and S3
Amazon Simple Storage Service (S3) Amazon Simple Storage Service (Amazon S3) is storage for the Internet. It provides a simple web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web..
Amazon Simple Storage Service (S3)
Amazon Simple Storage Service (S3)
Amazon Glacier for Long-Term Archieves Amazon Glacier is optimized for data that is infrequently accessed and for which retrieval times of several hours are suitable Amazon Glacier is an extremely low-cost, pay-as-you-go storage service that can cost as little as $0.01 per gigabyte per month. Amazon Glacier is designed to provide average annual durability of 99.999999999% for an archive. The service redundantly stores data in multiple facilities and on multiple devices within each facility. Data Upload via API or AWS Console or Tools like http://fastglacier.com/.
AWS Database Services
Amazon Relational Database Service (RDS) Amazon RDS = MySQL, Oracle 11g and SQLServer 2008R2 / 2012 Managed Database Amazon RDS automates common administrative tasks to reduce the complexity and total cost of ownership. Amazon RDS automatically backs up your database and maintains your database software, allowing you to spend more time on application development
Amazon Relational Database Service (RDS)
AWS App Services
AWS Deployment & Administration
Amazon AWS Administration Windows RDP or Linux SSH if your Security Groups allow this Browser based Administration Amazon AWS = Data Center with an API API or Command Line
AWS App Services
AWS App Services
Platform as a Service (PaaS) mit ElasticBeanstalk Easy Deployment and Managing of Applications in AWS You: Create and Upload your Application (Jar, Zip, Git) Elastic Beanstalk: Capacity provisioning (EC2) App Deployment Load balancing (ELB) Auto-scaling (Auto Scaling) Application health monitoring (CloudWatch)
Amazon Simple Storage Service (S3)
Amazon Simple Storage Service (S3)
Using the Amazon Java SDK with CF10 <!--- Download Amazon Java SDK, put aws-java-sdk-1.3.3.jar in ColdFusion/lib folder Download HTTPComponents Client from apache as it depends on this. http://hc.apache.org/downloads.cgi I download the 4.1.1 release extract the 6 jars and drop them in your Coldfusion/lib folder. ---> <cfset accesskeyid = "something"> <cfset secretaccesskey = "something"> <cfset awscreds = createobject("java","com.amazonaws.auth.basicawscredentials").init(accesskeyid,secretaccess Key)> <!--- SQS --> <cfset SQSClient = createobject("java","com.amazonaws.services.sqs.amazonsqsclient").init(awscreds)> <cfset test = SQSClient.setEndpoint("sqs.eu-west-1.amazonaws.com")> <cfset SQSqueueRequest= createobject("java", "com.amazonaws.services.sqs.model.createqueuerequest").init("mysr")> <cfset test = SQSClient.createQueue(SQSqueueRequest)> <cfset test = SQSClient.listQueues()> <cfdump var ="#test.getqueueurls()#"> <cfset Nachricht = "Hello um #now()#">
Amazon AWS CFC Wrapper https://github.com/simonfree/cfawswrapper
CF10 Licenses in the Cloud
Host much does it cost?
Host much does it cost?
www.aws-blog.de
Questions http://www.aws-blog.de http://www.tecracer.de Sven Ramuschkat +49 (0) 511-59095-942 aws@tecracer.de