SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
BUILDING
THE
CLOUD


Jeff
Barr,
Senior
Web
Services
Evangelist

jbarr@amazon.com

@jeEarr

G OALS 
F OR 
T ODAY 


•    Introduce
you
to
AWS

•    Show
you
how
the
pieces
fit
together

•    Provide
background
for
second
half
of
this
webinar

•    Answer
your
AWS
and
cloud
compuRng
quesRons

I NTRODUCING 
AWS


•  AWS
=
“Amazon
Web
Services”

•  One
of
our
three
businesses:

   –  Online
Retail

   –  Seller
Business
(Marketplace)

   –  Web
Service
Infrastructure
            Amazon Web
                                              Services
•  Pay
As
You
Go
Pricing
Model
             Or “AWS” for short…

•  Two
Levels:

   –  Infrastructure
as
a
Service
(IaaS)

   –  Pla_orm
as
a
Service
(PaaS)

B UILDING 
 THE 
C LOUD 


•  Business


•  Security


•  Presence


•  Technical

B UILDING 
 THE 
C LOUD 
‐
B USINESS 


•    Amazon’s
Brand
Name

•    Self‐serve
Signup

•    User
Accounts

•    Pay
As
You
Go

•    Credit
Card
Billing

B UILDING 
 THE 
C LOUD 
‐
S ECURITY 


•    Security
is
Job
#1
for
Us

•    Designed
for
MulR‐Tenancy

•    SAS
70
CerRficaRon

•    Security
White
Paper

     –  Physical
Security

     –  Logical
Security

•  Published
Best
PracRces

•  hfp://aws.amazon.com/security

B UILDING 
 THE 
C LOUD 
‐
P RESENCE 


AWS
Regions:

 US
East
(Northern
Virginia)

 US
West
(Northern
California)

 Europe
(Dublin)

 Asia
Pacific
(Singapore)

 More
to
come…




AWS
CloudFront
LocaRons

   Ashburn,
VA
/
Dallas,
TX
/
Los
Angeles,
CA
/
Miami,
FL
/
Newark,
NJ
/

   Palo
Alto,
CA
/
Seafle,
WA
/
St.
Louis,
MO
/
Amsterdam
/
Dublin
/

   Frankfurt
/
London
/
Hong
Kong
/
Tokyo
/
Singapore
/
New
York

BUILDING
THE
CLOUD
‐
TECHNICAL





                                  


A MAZON 
E LASTIC 
C OMPUTE 
C LOUD 


•  Amazon
EC2:
on‐demand
compute
power

    –  Obtain
and
boot
new
server
instances
in
minutes

    –  Scale
capacity
up
or
down
as
needed

    –  $0.085
per
hour
and
up


•  Key
features:

    –    Support
for
Windows,
Linux,
and
OpenSolaris

    –    Complete
flexibility
to
install
any
open
source
or
commercial
soqware

    –    Supports
all
major
web
and
applicaRon
pla_orms

    –    MulRple
Availability
Zones

    –    ElasRc
IP
Addresses

    –    ElasRc
Block
Storage

    –    ElasRc
Load
Balancing



    –    Auto
Scaling

    –    Amazon
CloudWatch

A MAZON 
R ELATIONAL 
D ATABASE 
S ERVICE 
(RDS)


•  Create
a
new
relaRonal
database
with
one
API
call

•  Offload
common
administraRve
tasks
to
AWS

•  Use
exisRng
code
and
tools

•  Scale
up
processing
or


   storage
with
one
API
call

•  Recover
database
using


   snapshot
or
log
file

•  MySQL
5.1

AWS
P ACE 
 OF 
I NNOVATION 
–
2010

 »
Amazon
EC2
Reserved
Instances


                                               »
RDS
SSL
Support

 



with
Windows,
Extra
Large
High


                                               »
CloudWatch
EBS
Metrics

 



Memory
Instances

                                               »
S3
Console
Support

 »
Amazon
S3
Versioning
Feature

                                               »
Import/Export
API

 »
Consolidated
Billing
for
AWS

                                               »
CloudFront
HTTPS
Support

 »
Lower
pricing
for
Outbound
Data


                                               »
CloudFront
POP
in
NY

 



Transfer

                       »
Singapore
Region
     »
CloudFront
Price
ReducRon

                       »
RDS
in
Europe
        »
ElasRc
MapReduce
updates

                       »
ELB
sessions




   2010

    Jan
       Feb
     Mar
       Apr
      May
    Jun
     Jul




                                                            »
??

                 »
Amazon
SNS

                                                            »
??

                                                            »
??


                               »
RDS
Console
Support

                               » S3
Reduced
Redundancy
Storage

»
AWS
SoluRon
Pages
           » RDS
MulR‐AZ

                               » CloudFront
Streaming
Logs

                               » VPC
in
Europe

F INAL 
T HOUGHTS 


•  AWS
Trends:

   –    ConRnuous
innovaRon

   –    AddiRonal
services

   –    AddiRonal
features

   –    AddiRonal
locaRons



•  This
is
the
Rme
to
learn
and
start
to
use
the
cloud!

G ETTING 
S TARTED 
W ITH 
AWS


•  Create
developer
account
at
hfp://aws.amazon.com


•  Download
access
keys,
SDKs,
developer
tools


•  Build
and
deploy
applicaRon


•  AWS
Blog:
hfp://aws.typepad.com


Hosting Drupal on AWS
                                                   http://acquia.com/resources/
                                                             acquia-tv
            Barry Jaspan
            Senior Architect, Acquia
            barry.jaspan@acquia.com
            @bjaspan



Amazon Web Services Building Blocks for Drupal Applications and Hosting           © 2010 Acquia, Inc.
Acquia Hosting Overview
                  •  Managed web hosting for Drupal
                         •  High performance, scalability, availability
                         •  Combined infrastructure- and application-level
                            support from one vendor
                  •  Single or multi-tier
                         •  Load balancers, web nodes, database clusters,
                            memcached, network filesystems, ...
                         •  One instance, separate instances, or any
                            combination
                  •  Automated
                         •  We provisioned for a “20M uniques on day one”
                            customer ... in a few minutes.
Amazon Web Services Building Blocks for Drupal Applications and Hosting      © 2010 Acquia, Inc.
Load balancing




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Load balancing on AWS
                  •  No hardware LB is available
                  •  Round-robin DNS to web nodes is bad for
                     high-availability
                  •  Elastic Load Balancer (ELB)
                         •  CNAME requires http://www.TLD
                         •  Limited flexibility (but now with stickiness!)
                  •  Elastic IP address (EIP) + software LB
                         •  Allows http://TLD
                         •  Only one EIP per server
                         •  We use nginx for LB and Varnish for caching
Amazon Web Services Building Blocks for Drupal Applications and Hosting      © 2010 Acquia, Inc.
Software load balancer




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Shared les




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
File sharing on AWS
                  •  Drupal needs a POSIX filesystem for user-
                     uploaded files
                  •  Elastic Block Store (EBS) is single-instance
                  •  rsync does not scale past N=2 web nodes
                  •  S3FS is worse than useless for this
                         •  Too slow, non-POSIX, unreliable, unsupported
                  •  A network filesystem is required
                         •  NFS?
                         •  More later...


Amazon Web Services Building Blocks for Drupal Applications and Hosting     © 2010 Acquia, Inc.
Basic web stack




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
HA load balancer
                  •  Load balancer might fail
                  •  Elastic IP
                         •  Requires a hot spare 
                         •  EIP must be reassigned to a hot spare
                  •  Elastic Load Balancer
                         •  For us, can’t talk directly to web nodes
                                 •  nginx provides virtual host flexibility, concurrency
                                    protection, etc
                                 •  Varnish provides caching
                         •  Also requires a hot spare (or second active
                            instance)
Amazon Web Services Building Blocks for Drupal Applications and Hosting                   © 2010 Acquia, Inc.
HA load balancer with EIP




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
HA lesystem
                  •  NFS 
                         •  Cannot tolerate server failure
                         •  Not replicated
                                 •  DRBD with virtual IP reassignment won’t work
                  •  AFS
                         •  Tolerates server failure
                         •  Not replicated
                  •  GlusterFS
                         •  Replicated and distributed
                         •  GPL, commercially supported, under active dev
                         •  Easy to use, tricky to optimize just right
Amazon Web Services Building Blocks for Drupal Applications and Hosting             © 2010 Acquia, Inc.
HA lesystem with
 GlusterFS




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
HA database
                  •  Multi-AZ Relational DB Service (RDS) 
                         •  Failover takes 3 minutes
                  •  Active/passive master MySQL replication
                         •  Must avoid “split-brain” operation
                                 •  All web nodes must fail over simultaneously
                                 •  Heartbeat with virtual IP reassignment not possible
                                 •  Failover mechanism must itself be HA
                                       •         Using MySQL proxy just leads to the same problem
                                 •  Requires synchronous app-level failover
                         •  We store db election in GlusterFS
                                 •  Any other HA replicated data store would do
Amazon Web Services Building Blocks for Drupal Applications and Hosting                              © 2010 Acquia, Inc.
High-availability web stack




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Machine con g
                  •  All these instances need to be built
                  •  Incremental custom AMIs
                         •  Time consuming during development/debugging
                         •  Poor fit for source-code control
                         •  Leads to mystery configurations
                  •  Automated configuration scripts/language
                         •  Incremental updates are simple 
                         •  Good fit for source-code control
                         •  Known process from a clean, base AMI
                  •  Combining the two may be best
Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Static con g with puppet




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Elasticity
                  •  Elastic scalability means dynamic
                     configuration
                         •  Balancers: info on all web nodes
                         •  Web nodes (Drupal): info on all db servers
                         •  FS servers: info on all EBS volumes to use
                         •  FS clients: info on all FS servers to use
                  •  All (re-)started instances get a new IP
                         •  EIPs are limited and cost more to use
                         •  All servers need current internal IPs
                         •  Admins need current external IPs
                  •  Requires frequent manual updates, or
Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.


                     automation
Dynamic data-driven con g




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Email from AWS
                  •  AWS IPs are on many spam blacklists
                         •  Can’t reliably be used to send mail
                  •  Requires a non-cloud mail server or service
                     provider

                  •  Note: Jeff tells me this situation has improved




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Colo mail server




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Everything else
                  •  I’ve only talked about cloud-specific issues
                  •  To self-host (anywhere), you also need:
                         •  Backups
                         •  24x7 monitoring
                         •  Ops staff
                         •  Caffeine
                         •  Ibuprofen




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.
Management and ops stack




Amazon Web Services Building Blocks for Drupal Applications and Hosting   © 2010 Acquia, Inc.

Más contenido relacionado

La actualidad más candente

Awsgsg wah-linux
Awsgsg wah-linuxAwsgsg wah-linux
Awsgsg wah-linux
Sebin John
 
Training AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWSTraining AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWS
Bùi Quang Lâm
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
Tom Laszewski
 

La actualidad más candente (20)

Awsgsg wah-linux
Awsgsg wah-linuxAwsgsg wah-linux
Awsgsg wah-linux
 
Big Data answers in seconds with Amazon Athena
Big Data answers in seconds with Amazon AthenaBig Data answers in seconds with Amazon Athena
Big Data answers in seconds with Amazon Athena
 
Comenzando com la nube hibrida
Comenzando com la nube hibrida Comenzando com la nube hibrida
Comenzando com la nube hibrida
 
Deep Dive on Amazon EC2 Instances (March 2017)
Deep Dive on Amazon EC2 Instances (March 2017)Deep Dive on Amazon EC2 Instances (March 2017)
Deep Dive on Amazon EC2 Instances (March 2017)
 
Amazon EC2 & VPC HOL
Amazon EC2 & VPC HOLAmazon EC2 & VPC HOL
Amazon EC2 & VPC HOL
 
(ARC311) Extreme Availability for Mission-Critical Applications | AWS re:Inve...
(ARC311) Extreme Availability for Mission-Critical Applications | AWS re:Inve...(ARC311) Extreme Availability for Mission-Critical Applications | AWS re:Inve...
(ARC311) Extreme Availability for Mission-Critical Applications | AWS re:Inve...
 
Training AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWSTraining AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWS
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloud
 
AWS as platform for scalable applications
AWS as platform for scalable applicationsAWS as platform for scalable applications
AWS as platform for scalable applications
 
Advanced Task Scheduling with Amazon ECS
Advanced Task Scheduling with Amazon ECSAdvanced Task Scheduling with Amazon ECS
Advanced Task Scheduling with Amazon ECS
 
Cloud Architecture best practices
Cloud Architecture best practicesCloud Architecture best practices
Cloud Architecture best practices
 
AWS Webcast - Backup & Restore for ElastiCache/Redis: Getting Started & Best ...
AWS Webcast - Backup & Restore for ElastiCache/Redis: Getting Started & Best ...AWS Webcast - Backup & Restore for ElastiCache/Redis: Getting Started & Best ...
AWS Webcast - Backup & Restore for ElastiCache/Redis: Getting Started & Best ...
 
Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)Introduction to Amazon Web Services (AWS)
Introduction to Amazon Web Services (AWS)
 
ECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container Day
ECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container DayECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container Day
ECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container Day
 
AWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS CloudAWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS Cloud
 
Deep Dive into Amazon ElastiCache Architecture and Design Patterns (DAT307) |...
Deep Dive into Amazon ElastiCache Architecture and Design Patterns (DAT307) |...Deep Dive into Amazon ElastiCache Architecture and Design Patterns (DAT307) |...
Deep Dive into Amazon ElastiCache Architecture and Design Patterns (DAT307) |...
 
Accelerating Application Performance with Amazon ElastiCache (DAT207) | AWS r...
Accelerating Application Performance with Amazon ElastiCache (DAT207) | AWS r...Accelerating Application Performance with Amazon ElastiCache (DAT207) | AWS r...
Accelerating Application Performance with Amazon ElastiCache (DAT207) | AWS r...
 
AWS EC2
AWS EC2AWS EC2
AWS EC2
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 

Destacado

Taskworld Webinar : Getting Stared with Taskworld
Taskworld Webinar : Getting Stared with TaskworldTaskworld Webinar : Getting Stared with Taskworld
Taskworld Webinar : Getting Stared with Taskworld
Taskworld
 
Getting Started with Drupal and Acuqia
Getting Started with Drupal and AcuqiaGetting Started with Drupal and Acuqia
Getting Started with Drupal and Acuqia
Acquia
 
Hemanth Kumar - Drupal Architect
Hemanth Kumar - Drupal ArchitectHemanth Kumar - Drupal Architect
Hemanth Kumar - Drupal Architect
Hemanth Kumar
 

Destacado (20)

Acquia Managed Cloud: Highly Available Architecture for Highly Unpredictable ...
Acquia Managed Cloud: Highly Available Architecture for Highly Unpredictable ...Acquia Managed Cloud: Highly Available Architecture for Highly Unpredictable ...
Acquia Managed Cloud: Highly Available Architecture for Highly Unpredictable ...
 
Building enterprise high availability application with drupal
Building enterprise high availability application with drupalBuilding enterprise high availability application with drupal
Building enterprise high availability application with drupal
 
Taskworld Webinar : Getting Stared with Taskworld
Taskworld Webinar : Getting Stared with TaskworldTaskworld Webinar : Getting Stared with Taskworld
Taskworld Webinar : Getting Stared with Taskworld
 
Getting Started with Drupal and Acuqia
Getting Started with Drupal and AcuqiaGetting Started with Drupal and Acuqia
Getting Started with Drupal and Acuqia
 
Level up with taskworld
Level up with taskworldLevel up with taskworld
Level up with taskworld
 
D8 update-2-22-12
D8 update-2-22-12D8 update-2-22-12
D8 update-2-22-12
 
Stop selling Drupal, start selling solutions to business problems.
Stop selling Drupal, start selling solutions to business problems. Stop selling Drupal, start selling solutions to business problems.
Stop selling Drupal, start selling solutions to business problems.
 
Amplexor Drupal for the Enterprise seminar - Acquia: dream it, Drupal it
Amplexor Drupal for the Enterprise seminar - Acquia: dream it, Drupal itAmplexor Drupal for the Enterprise seminar - Acquia: dream it, Drupal it
Amplexor Drupal for the Enterprise seminar - Acquia: dream it, Drupal it
 
Drupal aegir AWS
Drupal aegir AWSDrupal aegir AWS
Drupal aegir AWS
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
 
Integrating Drupal into your Enterprise Architecture
Integrating Drupal into your Enterprise ArchitectureIntegrating Drupal into your Enterprise Architecture
Integrating Drupal into your Enterprise Architecture
 
PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)
 
Scalable Drupal Infrastructure
Scalable Drupal InfrastructureScalable Drupal Infrastructure
Scalable Drupal Infrastructure
 
Nurturing Vs. Damaging Culture
Nurturing Vs. Damaging CultureNurturing Vs. Damaging Culture
Nurturing Vs. Damaging Culture
 
Iksula Drupal Solutions
Iksula Drupal SolutionsIksula Drupal Solutions
Iksula Drupal Solutions
 
Mobile-izing Your Organization with Drupal: Acquia webinar
Mobile-izing Your Organization with Drupal: Acquia webinarMobile-izing Your Organization with Drupal: Acquia webinar
Mobile-izing Your Organization with Drupal: Acquia webinar
 
Bad camp2016 Release Management On Live Websites
Bad camp2016 Release Management On Live WebsitesBad camp2016 Release Management On Live Websites
Bad camp2016 Release Management On Live Websites
 
How Cloud PaaS Improves Performance while Reducing Costs
How Cloud PaaS Improves Performance while Reducing CostsHow Cloud PaaS Improves Performance while Reducing Costs
How Cloud PaaS Improves Performance while Reducing Costs
 
Hemanth Kumar - Drupal Architect
Hemanth Kumar - Drupal ArchitectHemanth Kumar - Drupal Architect
Hemanth Kumar - Drupal Architect
 
Drupal In The Cloud
Drupal In The CloudDrupal In The Cloud
Drupal In The Cloud
 

Similar a Amazon Web Services Building Blocks for Drupal Applications and Hosting

Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
Tom Laszewski
 
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
IndicThreads
 
Moving to the Cloud: AWS, Zend, RightScale
Moving to the Cloud: AWS, Zend, RightScaleMoving to the Cloud: AWS, Zend, RightScale
Moving to the Cloud: AWS, Zend, RightScale
mmoline
 
Netflix web-adrian-qcon
Netflix web-adrian-qconNetflix web-adrian-qcon
Netflix web-adrian-qcon
Yiwei Ma
 
Scaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services
 

Similar a Amazon Web Services Building Blocks for Drupal Applications and Hosting (20)

AWS Distilled
AWS DistilledAWS Distilled
AWS Distilled
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
What are clouds made from
What are clouds made fromWhat are clouds made from
What are clouds made from
 
[Jun AWS 201] Technical Workshop
[Jun AWS 201] Technical Workshop[Jun AWS 201] Technical Workshop
[Jun AWS 201] Technical Workshop
 
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
Current State of Affairs – Cloud Computing - Indicthreads Cloud Computing Con...
 
O'Reilly Webcast: Architecting Applications For The Cloud
O'Reilly Webcast: Architecting Applications For The CloudO'Reilly Webcast: Architecting Applications For The Cloud
O'Reilly Webcast: Architecting Applications For The Cloud
 
Scaling up to Your First 10 Million Users
Scaling up to Your First 10 Million UsersScaling up to Your First 10 Million Users
Scaling up to Your First 10 Million Users
 
Moving to the Cloud: AWS, Zend, RightScale
Moving to the Cloud: AWS, Zend, RightScaleMoving to the Cloud: AWS, Zend, RightScale
Moving to the Cloud: AWS, Zend, RightScale
 
Netflix web-adrian-qcon
Netflix web-adrian-qconNetflix web-adrian-qcon
Netflix web-adrian-qcon
 
PaaS with Java
PaaS with JavaPaaS with Java
PaaS with Java
 
SAP on Amazon web services
SAP on Amazon web servicesSAP on Amazon web services
SAP on Amazon web services
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
Scaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
 
Cloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsCloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web Apps
 
SV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source PlatformSV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source Platform
 
The Netflix Open Source Platform
The Netflix Open Source PlatformThe Netflix Open Source Platform
The Netflix Open Source Platform
 
SDEC2011 Using Couchbase for social game scaling and speed
SDEC2011 Using Couchbase for social game scaling and speedSDEC2011 Using Couchbase for social game scaling and speed
SDEC2011 Using Couchbase for social game scaling and speed
 
Cloud Computing - Challenges & Opportunities
Cloud Computing - Challenges & OpportunitiesCloud Computing - Challenges & Opportunities
Cloud Computing - Challenges & Opportunities
 
Create cloud service on AWS
Create cloud service on AWSCreate cloud service on AWS
Create cloud service on AWS
 

Más de Acquia

Taking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next LevelTaking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next Level
Acquia
 

Más de Acquia (20)

Acquia_Adcetera Webinar_Marketing Automation.pdf
Acquia_Adcetera Webinar_Marketing Automation.pdfAcquia_Adcetera Webinar_Marketing Automation.pdf
Acquia_Adcetera Webinar_Marketing Automation.pdf
 
Acquia Webinar Deck - 9_13 .pdf
Acquia Webinar Deck - 9_13 .pdfAcquia Webinar Deck - 9_13 .pdf
Acquia Webinar Deck - 9_13 .pdf
 
Taking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next LevelTaking Your Multi-Site Management at Scale to the Next Level
Taking Your Multi-Site Management at Scale to the Next Level
 
CDP for Retail Webinar with Appnovation - Q2 2022.pdf
CDP for Retail Webinar with Appnovation - Q2 2022.pdfCDP for Retail Webinar with Appnovation - Q2 2022.pdf
CDP for Retail Webinar with Appnovation - Q2 2022.pdf
 
May Partner Bootcamp 2022
May Partner Bootcamp 2022May Partner Bootcamp 2022
May Partner Bootcamp 2022
 
April Partner Bootcamp 2022
April Partner Bootcamp 2022April Partner Bootcamp 2022
April Partner Bootcamp 2022
 
How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story
 
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CXUsing Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
 
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development WorkflowImprove Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
 
September Partner Bootcamp
September Partner BootcampSeptember Partner Bootcamp
September Partner Bootcamp
 
August partner bootcamp
August partner bootcampAugust partner bootcamp
August partner bootcamp
 
July 2021 Partner Bootcamp
July  2021 Partner BootcampJuly  2021 Partner Bootcamp
July 2021 Partner Bootcamp
 
May Partner Bootcamp
May Partner BootcampMay Partner Bootcamp
May Partner Bootcamp
 
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASYDRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
 
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead MachineWork While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
 
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B LeadsAcquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
 
April partner bootcamp deck cookieless future
April partner bootcamp deck  cookieless futureApril partner bootcamp deck  cookieless future
April partner bootcamp deck cookieless future
 
How to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutionsHow to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutions
 
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
 
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
 

Último

Último (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Amazon Web Services Building Blocks for Drupal Applications and Hosting

  • 2. G OALS 
F OR 
T ODAY 
 •  Introduce
you
to
AWS
 •  Show
you
how
the
pieces
fit
together
 •  Provide
background
for
second
half
of
this
webinar
 •  Answer
your
AWS
and
cloud
compuRng
quesRons

  • 3. I NTRODUCING 
AWS
 •  AWS
=
“Amazon
Web
Services”
 •  One
of
our
three
businesses:
 –  Online
Retail
 –  Seller
Business
(Marketplace)
 –  Web
Service
Infrastructure
 Amazon Web Services •  Pay
As
You
Go
Pricing
Model
 Or “AWS” for short… •  Two
Levels:
 –  Infrastructure
as
a
Service
(IaaS)
 –  Pla_orm
as
a
Service
(PaaS)

  • 4. B UILDING 
 THE 
C LOUD 
 •  Business
 •  Security
 •  Presence
 •  Technical

  • 5. B UILDING 
 THE 
C LOUD 
‐
B USINESS 
 •  Amazon’s
Brand
Name
 •  Self‐serve
Signup
 •  User
Accounts
 •  Pay
As
You
Go
 •  Credit
Card
Billing

  • 6. B UILDING 
 THE 
C LOUD 
‐
S ECURITY 
 •  Security
is
Job
#1
for
Us
 •  Designed
for
MulR‐Tenancy
 •  SAS
70
CerRficaRon
 •  Security
White
Paper
 –  Physical
Security
 –  Logical
Security
 •  Published
Best
PracRces
 •  hfp://aws.amazon.com/security

  • 7. B UILDING 
 THE 
C LOUD 
‐
P RESENCE 
 AWS
Regions:
 US
East
(Northern
Virginia)
 US
West
(Northern
California)
 Europe
(Dublin)
 Asia
Pacific
(Singapore)
 More
to
come…
 AWS
CloudFront
LocaRons
 Ashburn,
VA
/
Dallas,
TX
/
Los
Angeles,
CA
/
Miami,
FL
/
Newark,
NJ
/
 Palo
Alto,
CA
/
Seafle,
WA
/
St.
Louis,
MO
/
Amsterdam
/
Dublin
/
 Frankfurt
/
London
/
Hong
Kong
/
Tokyo
/
Singapore
/
New
York

  • 9. A MAZON 
E LASTIC 
C OMPUTE 
C LOUD 
 •  Amazon
EC2:
on‐demand
compute
power
 –  Obtain
and
boot
new
server
instances
in
minutes
 –  Scale
capacity
up
or
down
as
needed
 –  $0.085
per
hour
and
up
 •  Key
features:
 –  Support
for
Windows,
Linux,
and
OpenSolaris
 –  Complete
flexibility
to
install
any
open
source
or
commercial
soqware
 –  Supports
all
major
web
and
applicaRon
pla_orms
 –  MulRple
Availability
Zones
 –  ElasRc
IP
Addresses
 –  ElasRc
Block
Storage
 –  ElasRc
Load
Balancing


 –  Auto
Scaling
 –  Amazon
CloudWatch

  • 10. A MAZON 
R ELATIONAL 
D ATABASE 
S ERVICE 
(RDS)
 •  Create
a
new
relaRonal
database
with
one
API
call
 •  Offload
common
administraRve
tasks
to
AWS
 •  Use
exisRng
code
and
tools
 •  Scale
up
processing
or

 storage
with
one
API
call
 •  Recover
database
using

 snapshot
or
log
file
 •  MySQL
5.1

  • 11. AWS
P ACE 
 OF 
I NNOVATION 
–
2010
 »
Amazon
EC2
Reserved
Instances

 »
RDS
SSL
Support
 



with
Windows,
Extra
Large
High

 »
CloudWatch
EBS
Metrics
 



Memory
Instances
 »
S3
Console
Support
 »
Amazon
S3
Versioning
Feature
 »
Import/Export
API
 »
Consolidated
Billing
for
AWS
 »
CloudFront
HTTPS
Support
 »
Lower
pricing
for
Outbound
Data

 »
CloudFront
POP
in
NY
 



Transfer
 »
Singapore
Region
 »
CloudFront
Price
ReducRon
 »
RDS
in
Europe
 »
ElasRc
MapReduce
updates
 »
ELB
sessions
 2010
 Jan
 Feb
 Mar
 Apr
 May
 Jun
 Jul
 »
??
 »
Amazon
SNS
 »
??
 »
??
 »
RDS
Console
Support
 » S3
Reduced
Redundancy
Storage
 »
AWS
SoluRon
Pages
 » RDS
MulR‐AZ
 » CloudFront
Streaming
Logs
 » VPC
in
Europe

  • 12. F INAL 
T HOUGHTS 
 •  AWS
Trends:
 –  ConRnuous
innovaRon
 –  AddiRonal
services
 –  AddiRonal
features
 –  AddiRonal
locaRons
 •  This
is
the
Rme
to
learn
and
start
to
use
the
cloud!

  • 13. G ETTING 
S TARTED 
W ITH 
AWS
 •  Create
developer
account
at
hfp://aws.amazon.com
 •  Download
access
keys,
SDKs,
developer
tools
 •  Build
and
deploy
applicaRon
 •  AWS
Blog:
hfp://aws.typepad.com


  • 14. Hosting Drupal on AWS http://acquia.com/resources/ acquia-tv Barry Jaspan Senior Architect, Acquia barry.jaspan@acquia.com @bjaspan Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 15. Acquia Hosting Overview •  Managed web hosting for Drupal •  High performance, scalability, availability •  Combined infrastructure- and application-level support from one vendor •  Single or multi-tier •  Load balancers, web nodes, database clusters, memcached, network filesystems, ... •  One instance, separate instances, or any combination •  Automated •  We provisioned for a “20M uniques on day one” customer ... in a few minutes. Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 16. Load balancing Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 17. Load balancing on AWS •  No hardware LB is available •  Round-robin DNS to web nodes is bad for high-availability •  Elastic Load Balancer (ELB) •  CNAME requires http://www.TLD •  Limited flexibility (but now with stickiness!) •  Elastic IP address (EIP) + software LB •  Allows http://TLD •  Only one EIP per server •  We use nginx for LB and Varnish for caching Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 18. Software load balancer Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 19. Shared les Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 20. File sharing on AWS •  Drupal needs a POSIX filesystem for user- uploaded files •  Elastic Block Store (EBS) is single-instance •  rsync does not scale past N=2 web nodes •  S3FS is worse than useless for this •  Too slow, non-POSIX, unreliable, unsupported •  A network filesystem is required •  NFS? •  More later... Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 21. Basic web stack Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 22. HA load balancer •  Load balancer might fail •  Elastic IP •  Requires a hot spare •  EIP must be reassigned to a hot spare •  Elastic Load Balancer •  For us, can’t talk directly to web nodes •  nginx provides virtual host flexibility, concurrency protection, etc •  Varnish provides caching •  Also requires a hot spare (or second active instance) Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 23. HA load balancer with EIP Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 24. HA lesystem •  NFS •  Cannot tolerate server failure •  Not replicated •  DRBD with virtual IP reassignment won’t work •  AFS •  Tolerates server failure •  Not replicated •  GlusterFS •  Replicated and distributed •  GPL, commercially supported, under active dev •  Easy to use, tricky to optimize just right Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 25. HA lesystem with GlusterFS Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 26. HA database •  Multi-AZ Relational DB Service (RDS) •  Failover takes 3 minutes •  Active/passive master MySQL replication •  Must avoid “split-brain” operation •  All web nodes must fail over simultaneously •  Heartbeat with virtual IP reassignment not possible •  Failover mechanism must itself be HA •  Using MySQL proxy just leads to the same problem •  Requires synchronous app-level failover •  We store db election in GlusterFS •  Any other HA replicated data store would do Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 27. High-availability web stack Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 28. Machine con g •  All these instances need to be built •  Incremental custom AMIs •  Time consuming during development/debugging •  Poor fit for source-code control •  Leads to mystery configurations •  Automated configuration scripts/language •  Incremental updates are simple •  Good fit for source-code control •  Known process from a clean, base AMI •  Combining the two may be best Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 29. Static con g with puppet Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 30. Elasticity •  Elastic scalability means dynamic configuration •  Balancers: info on all web nodes •  Web nodes (Drupal): info on all db servers •  FS servers: info on all EBS volumes to use •  FS clients: info on all FS servers to use •  All (re-)started instances get a new IP •  EIPs are limited and cost more to use •  All servers need current internal IPs •  Admins need current external IPs •  Requires frequent manual updates, or Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc. automation
  • 31. Dynamic data-driven con g Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 32. Email from AWS •  AWS IPs are on many spam blacklists •  Can’t reliably be used to send mail •  Requires a non-cloud mail server or service provider •  Note: Jeff tells me this situation has improved Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 33. Colo mail server Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 34. Everything else •  I’ve only talked about cloud-specific issues •  To self-host (anywhere), you also need: •  Backups •  24x7 monitoring •  Ops staff •  Caffeine •  Ibuprofen Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.
  • 35. Management and ops stack Amazon Web Services Building Blocks for Drupal Applications and Hosting © 2010 Acquia, Inc.