Transcript
Page 1: AWS Webcast - Website Hosting in the Cloud

Website Hosting in the Cloud

Sri Elaprolu

Manager, Solutions Architecture

[email protected]

Page 2: AWS Webcast - Website Hosting in the Cloud

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

DatabaseStorageCompute

Page 3: AWS Webcast - Website Hosting in the Cloud

Compute

EC2Virtual servers in the cloud

Elastic Compute Cloud

• Resizable compute capacity in 30+ instance types

• Reduces the time required to obtain and boot new server instances to minutes

or seconds

• Scale capacity as your computing requirements change

• Pay only for capacity that you actually use

• Choose Linux or Windows

• Deploy across Regions and Availability Zones for reliability

• Support for virtual network interfaces that can be attached to EC2 instances in

your VPC

Page 4: AWS Webcast - Website Hosting in the Cloud

General Purpose

Name vCPUMemory

(GiB)

m3.medium 1 3.75

m3.large 2 7.5

m3.xlarge 4 15

m3.2xlarge 8 30

Compute Optimized

Name vCPUMemory

(GiB)

c3.large 2 3.75

c3.xlarge 4 7

c3.2xlarge 8 15

c3.4xlarge 16 30

c3.8xlarge 32 60

cc2.8xlarge 32 60.5

Memory Optimized

Name vCPUMemory

(GiB)

r3.large 2 15

r3.xlarge 4 30.5

r3.2xlarge 8 61

r3.4xlarge 16 122

r3.8xlarge 32 244

Page 5: AWS Webcast - Website Hosting in the Cloud

Storage Optimized

Name vCPUMemory

(GiB)

Local Storage

(GB)

i2.xlarge 4 30.5 1 x 800 SSD

i2.2xlarge 8 61 2 x 800 SSD

i2.4xlarge 16 122 4 x 800 SSD

i2.8xlarge 32 244 8 x 800 SSD

hs1.8xlarge 16 117 24 x 2048

GPU Instances

Name vCPUMemory

(GiB)

g2.2xlarge 8 15

Cost Optimized Instances

Name vCPUMemory

(GiB)

t2.micro 1 1

t2.small 1 2

t2.medium 2 4

Page 6: AWS Webcast - Website Hosting in the Cloud

Compute

EC2Virtual servers in the cloud

Amazon Machine Image

• Building blocks of EC2 instances

• An AMI is like a template of a computer's root volume.

• Can be public or private and shared with other accounts

• Create hardened or gold “Images” of your EC2 infrastructure

• Copy AMIs between regions

Page 7: AWS Webcast - Website Hosting in the Cloud

Compute

EC2Virtual servers in the cloud

Elastic Block Storage (EBS)

• Use for persistent storage from 1GB – 1TB

• Can use to create RAID configuration for a server

• Off-instance block storage that persists independently

• Storage volumes for use with Amazon EC2 instances – create, attach, backup,

restore and delete

• Can be attached to a running Amazon EC2 instance and exposed as a block

device for raw or formatted (file system) access

• Snapshots are durably saved to S3

• Ideal use cases:

– OS Boot device / root file system; secondary volumes/file systems

– Typical basis for database storage

– Raw block devices for RAID, some databases

• Available in both standard and provisioned IOPS (up to 4k IOPS)

Page 8: AWS Webcast - Website Hosting in the Cloud

Compute

EC2Virtual servers in the cloud

Auto Scaling

• Client Defined Business Rules

• Scale your Amazon EC2 capacity automatically once you define the conditions

(may be 1000’s of servers)

• Can scale up just a little…doesn’t need to be massive number of servers (may

be simply 2 servers)

• Well suited for applications that experience variability in usage

• Set minimum and maximum scaling policies

• Alternate Use is for Fault Tolerance

Page 9: AWS Webcast - Website Hosting in the Cloud

Compute

EC2Virtual servers in the cloud

Elastic Load Balancing

• Supports the routing and load balancing of HTTP, HTTPS and generic TCP

traffic to EC2 instances

• Supports SSL termination and Proxy protocol

• Supports health checks to ensure detect and remove failing instances

• Dynamically grows and shrinks required resources based on traffic

• Seamlessly integrates with Auto-scaling to add and remove instances based

on scaling activities

• Single CNAME provides stable entry point for DNS configuration

• Supports internal load balancing within a VPC

Page 10: AWS Webcast - Website Hosting in the Cloud

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

DatabaseStorageCompute Database

Page 11: AWS Webcast - Website Hosting in the Cloud

Database

Relational Database Service

• Fully-managed, tuned MySQL, PostgreSQL, Oracle 11g, or MS SQL

• Cost-efficient and resizable capacity

• Manages time-consuming database admin tasks

• Code, applications, and tools you already use today work seamlessly

• Automatically patches the database software and backs up your database

• Flexible Licensing: BYOL or License Include

• Multi-AZ deployment option for MySQL, PostgreSQL and Oracle

• Cross-Region Read Replica support for MySQL

RDSManaged Relational Database Service

Page 12: AWS Webcast - Website Hosting in the Cloud

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

DatabaseStorageCompute

Networking

AWS Global AWS Infrastructure

Page 13: AWS Webcast - Website Hosting in the Cloud

Networking

Route 53Route 53Scalable DNS

• Route end users to Internet applications

• Answers DNS queries with low latency by using a global network of DNS

servers

• Latency based routing to closest AWS endpoint (e.g. EC2 instances, Elastic

IPs or ELBs)

• Application Health Checks

• Deep integration with other AWS services (ELB,

EC2 NAT/EIP, etc.)

• DNS failover

Page 14: AWS Webcast - Website Hosting in the Cloud

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

DatabaseStorageCompute StorageCompute

Page 15: AWS Webcast - Website Hosting in the Cloud

Storage

S3

Scalable Storage in the Cloud

Simple Storage Service

• A “Bucket” is equivalent to a “folder”

• Able to store unlimited number of Objects in a Bucket

• Objects from 1B-5 TB; no bucket size limit

• Highly available storage for the Internet (object store)

• HTTP/S endpoint to store and retrieve any amount of data, at any time, from

anywhere on the web

• Highly scalable, reliable, fast, and inexpensive

• Designed to provide annual durability of 99.999999999%

• Designed for 99.99% availability

• Trillions of objects stored

• Peak requests 1,500,000+ per second

Page 16: AWS Webcast - Website Hosting in the Cloud

Storage

CloudFront

• Web service for content delivery

• Distribute content to end users with low latency, high data transfer speeds, and

no commitments

• Delivers your content using a global network of 52 edge locations

• Supports download, streaming, live streaming, and dynamic content

– Key features: RTMP Streaming, HTTPS Delivery, Private Content for HTTP &

Streaming, Programmatic Invalidation, Detailed Logs for HTTP & Streaming, Default

Root Object

• Use Cases: Video and Rich Media, Online Gaming, Interactive Agencies,

Software Downloads, Static Websites

– Static web content that must be delivered to global user base at Highest bandwidth /

Lowest latency / Lowest cost

S3

Scalable Storage in the Cloud

CloudFrontGlobal Content Delivery Network

Page 17: AWS Webcast - Website Hosting in the Cloud

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

DatabaseStorageCompute

Deployment & Administration

Page 18: AWS Webcast - Website Hosting in the Cloud

Deployment & Administration

IAMSecure AWS Access Control

CloudFormation

• Create templates of stack of resources

• Deploy stack from template with runtime parameters

• Templates are simple JSON formatted text files

• CloudFormer supports generating templates from running environments

CloudWatchResource Monitoring

CloudFormationTemplated AWS Resource Creation

"Resources" : {

"Ec2Instance" : {

"Type" : "AWS::EC2::Instance",

"Properties" : {

"SecurityGroups" : [ { "Ref" : "InstanceSecurityGroup" } ],

"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},

"Tags" : [{

"Key" : "MyTag",

"Value" : "TagValue"

}]

}

},

Page 19: AWS Webcast - Website Hosting in the Cloud

Deployment & Administration

IAMSecure AWS Access Control

Elastic Beanstalk

• Simply upload your application (Java, NET, PHP, Node.js, Ruby and Python)

• Automatically handles the deployment details of capacity provisioning, load

balancing, auto-scaling, and application health monitoring

• Retain full control over the AWS resources powering your application

CloudWatchResource Monitoring

CloudFormationTemplated AWS Resource Creation

Elastic BeanstalkAWS Application Container

Page 20: AWS Webcast - Website Hosting in the Cloud

Deployment & Administration

IAMSecure AWS Access Control

OpsWorks

• DevOps service for applications in the AWS cloud

• Helps manage complete application lifecycle:

– Resource provisioning

– Configuration management

– Application deployment

– Software updates

– Monitoring

– Access control

• Visualized through application layers

• Uses Chef recipes used to deploy and configure software components on EC2

instances

CloudWatchResource Monitoring

CloudFormationTemplated AWS Resource Creation

Elastic BeanstalkAWS Application Container

OpsWorksDevOps Application Management

Page 21: AWS Webcast - Website Hosting in the Cloud

Architect for High Availability

Page 22: AWS Webcast - Website Hosting in the Cloud

1. Use Multiple

Availability Zones

Page 23: AWS Webcast - Website Hosting in the Cloud

2. Use Amazon RDS with

Replicas and Standby

Page 24: AWS Webcast - Website Hosting in the Cloud

3. Use Amazon Auto

Scaling groups

Page 25: AWS Webcast - Website Hosting in the Cloud

4. Use Amazon Elastic

Load Balancing

Page 26: AWS Webcast - Website Hosting in the Cloud

A lot of options…

• Configuration Management Systems

– Puppet

– Chef

– Saltstack

• Deployment Frameworks

– Elastic Beanstalk

– OpsWorks

– Ansible

– Fabric

– Capistrano

• Infrastructure Management

– CloudFormation

Page 27: AWS Webcast - Website Hosting in the Cloud

LIVE DEMO


Top Related