SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
Drupal in the Cloud

               by Azhan
    Founder/Director S & A Solutions
Drupal in the Cloud

> Drupal and S & A Solutions

• S & A Solutions – who?
      • doing it with Drupal since 2007
      • Over 70 projects in 5 years
      • More than 20 clients
      • 99% Drupal projects
      • We love Drupal (obviously!)
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

• Content publishing of stories from Asia
• Launched in 2010 using Amazon EC2+RDS
• Drupal 6, on shared hosting during development
• Despite performance tuning efforts, still slow pages

"Ok S & A, so what do we do now?"
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

S & A commissioned to do a site performance evaluation

We need to
    • Find out what is causing the slow pages
    • Find out what server size is suitable
    • Decide between single tier or multi-tier
    • Provide a solution for short term/future scalability
    • Prove with benchmarking test results
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

Drupal and other optimizations done:
• Turned on Boost module, CSS/Javascript aggregation
• Optimized images, custom module SQL queries
• Removed references to missing files/images

Results:
• Reduced page loading times from 8 secs to 5 secs
     • average ~ 30-40% improvement
     • Apparent network latency stays at 3-4 secs

> Hints on bottleneck in the network, web server, database
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

Network test:
    • wget download test >> 132kb/sec (good)
    • ping latency hovering 200-300ms
      (normal for SG to USA)
Network no longer the suspect

• Apache ab –k -n100 -c1 >> 2-5 secs per page load (SLOW!)
• 70% content errors when ramped up to n=100, c=10

Final suspects:
Web server, MySQL needs more CPU and/or memory
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

Other opportunities in improving performance
    • Serve static files using a CDN (> 1GB of static files)
    • Load balanced web servers
    • Memcached / Varnish
    • Reverse proxy eg. Nginx
    • Tune & recompile Apache/MySQL for performance
    • Allocate more resources to Apache and MySQL (easy)
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

Other opportunities in improving performance
    • Serve static files using a CDN (> 1GB of static files)
    • Load balanced web servers
    • Memcached / Varnish
    • Reverse proxy eg. Nginx
    • Tune & recompile Apache/MySQL for performance
    • Allocate more resources to Apache and MySQL (easy)
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

TheAsiaMag asked for Amazon web services
• US West Virginia availability zone
      • mostly worldwide audience
• 4 types of server configurations were tried
• involves a Load balancer, EC2 with EBS, RDS
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

1st run: Load balancer, 2x EC2 micro instances, small RDS
2nd run: Load balancer, 1x LARGE EC2 instance, small RDS
3rd run: Load balancer, 1x small EC2 instance, small RDS
4th run: Load balancer, 1x medium EC2 instance, small RDS

Benchmarking tools used:
• Apache ab
• Drupal Devel module, MySQL slow logs
• Firebug
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

RESULTS of 1st run: Apache ab -n10000 -c10
Load balancer, 2x EC2 micro instances, small RDS

EC2 CPU 100%
EC2 RAM 100% (no swap)
RDS CPU 100%

Apache server dies at a random time within a day
and could not revive itself
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

RESULTS of 2nd run: Apache ab -n10000 -c10
Single LARGE EC2 instance, small RDS

10,000 requests completed in under 20mins
EC2 CPU 5-10%
EC2 RAM 30-50%
RDS CPU <5%

Impressive, but overkill. And expensive!
Drupal in the Cloud

> Case Study 1 – http://theasiamag.com

RESULTS of 3rd run: Apache ab -n10000 -c10
Single small EC2 instance, small RDS

10,000 requests completed in 1hr
EC2 CPU 15-20%
EC2 RAM 85%
RDS CPU 50%

Performance is just OK, but cost is within budget!
No need for 4th run.
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

• Property listing portal, launched in 2010
• Drupal 5, dedicated server hosting
• In 2011 - slow pages, occasional server deaths

“S & A, what do we do?”
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

The problem
• Just 1000+ properties
• 10k page views per month
• Very complex search+filters using native Drupal search
• Real time statistics killing the site
• Watchdog?!!!

First aid
• Identified slow queries, MySQL always using too much RAM
• Had to “kill” watchdog
• Plenty of opportunity for code optimization, but have to wait
• Hardware upgrade to rescue the site first
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

• Current hosting at a leading US-based reputable company
• Amazon web services suggested as an alternative
Drupal in the Cloud

> Scalability challenges

• Code, database, OS optimizations
• Single, monster server vs multi-tier architecture
• How to handle spikes in traffic/load
• Security, reliability
• Cost for all the fancy setup
• Time to do all that?!

without breaking the bank!

> I know we could do all that with Amazon web services
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Proposed architecture on Amazon web services
• Load balancer
• 2x small EC2 for web server
• 1x small EC2 for hosting static files
      • Shared by all web servers via NFS
• 1x LARGE RDS for MySQL database
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Final architecture on Amazon web services
• Load balancer (later, perhaps)
• Single LARGE EC2 for web server + MySQL

Keep it simple!

Building the business case for the move to AWS:
• Benchmarking the AWS setup vs the current site
• AWS setup has identical CPU, double RAM
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Amazon setup vs dedicated server
               Current                   Amazon web services
CPU            Dual core AMD 64bit CPU   4 ECUs (Intel Xeon dual core equivalent)
OS             64bit RHEL 4              64bit Ubuntu 11.10
RAM            4GB                       7.5GB
Location       USA                       USA (West Virginia)
Average Cost   USD 300 per month         USD 200 per month



Upgrading “current” to 8GB, RHEL will cost USD700!
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
                             12
                                                         11


                             10
 No of requests per second




                              8
      (more is better)




                              6                                Current
                                                               AWS
                                   4
                              4


                              2


                              0
                                  Apache ab requests per sec
                                   Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
                14

                      12
                12


                10
 Time in secs




                 8
                                                    Current
                 6                                  AWS
                                              4.4
                 4


                 2


                 0
                     Apache ab timing per request
                       Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
              2500




              2000     1941




              1500
 Time in ms




                                                     Current
              1000                                   AWS


              500


                                             102
                0
                     Devel PHP timings on Homepage
                        Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
                120


                        100
                100



                80
 Time in secs




                60
                                                        Current
                                                        AWS
                40



                20                              18



                 0
                      Devel PHP timings on Query page
                         Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
                6
                    5.46

                5



                4
 Time in secs




                3
                                                    Current
                                                    AWS
                2
                                             1.44

                1



                0
                       Firebug network latency
                       Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Benchmarking test results comparison
                70


                     60
                60


                50
 Time in secs




                40

                                                      Current
                30
                                                      AWS
                                                20
                20


                10


                0
                     Firebug full page loading time
                       Benchmarking Tests
Drupal in the Cloud

> Case Study 2 – http://holidaycube.com

Client is convinced!

(Yeay!!)
Drupal in the Cloud

> Why Amazon web services?

No to AWS
• Could easily have been other hosting providers
     • Other cloud vendors can address scalability issues
• Getting over the Amazonian barriers
• AWS may be viewed as “difficult” by some
Drupal in the Cloud

 > Why Amazon web services?

Yes, AWS!
• A platform for benchmarking, server sizing
• Easy and quick to create/kill servers, run tests
• Actually a safe, cheap and controlled means of
  hosting your site or application
• Easily spawn additional servers to cater to “high” periods
  eg. A product launch lasting 4 weeks
  terminate the additional servers after site traffic has died down


You can get really creative designing your architecture
Drupal in the Cloud

> Drupal web load balancing

Amazon Load Balancer

Normally a complex setup with traditional hosting,
 the AWS Console makes it so easy to set this up in minutes
Drupal in the Cloud

> Drupal and memcached

http://drupal.org/project/memcache
Amazon ElastiCache

Normally a complex setup with traditional hosting
 the AWS Console makes it so easy to set this up in minutes
 if paired with the Drupal memcache module
Drupal in the Cloud

> Drupal and CDN

http://drupal.org/project/cdn
http://drupal.org/project/cloudfront

Amazon Cloudfront or S3
Drupal in the Cloud

> Drupal and high availability

Amazon multi-Availability Zones for EC2 and RDS
Drupal in the Cloud

> Drupal and MySQL

Running MySQL can be done using one of
 the following options:

MySQL on Amazon EC2
MySQL on Amazon RDS
Multi-AZ RDS
Drupal in the Cloud

 > Drupal & Amazon web services

Amazon CloudFormation
“Templates” to quickly deploy a Drupal stack into the cloud
Drupal in the Cloud

> Drupal & Amazon web services

It works!
Drupal in the Cloud

> Questions?

Email: azhan@snasolutions.com.sg
Website: http://www.snasolutions.com.sg

Thank you!

Weitere ähnliche Inhalte

Was ist angesagt?

(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWSAmazon Web Services
 
Use case for using the ElastiCache for Redis in production
Use case for using the ElastiCache for Redis in productionUse case for using the ElastiCache for Redis in production
Use case for using the ElastiCache for Redis in production知教 本間
 
Zero-downtime Hadoop/HBase Cross-datacenter Migration
Zero-downtime Hadoop/HBase Cross-datacenter MigrationZero-downtime Hadoop/HBase Cross-datacenter Migration
Zero-downtime Hadoop/HBase Cross-datacenter MigrationScott Miao
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)Amazon Web Services
 
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013Marcus Barczak
 
5 things you don't know about Amazon Web Services
5 things you don't know about Amazon Web Services5 things you don't know about Amazon Web Services
5 things you don't know about Amazon Web ServicesSimone Brunozzi
 
CPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCoburn Watson
 
(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You Thousands(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You ThousandsAmazon Web Services
 
London devops logging
London devops loggingLondon devops logging
London devops loggingTomas Doran
 
Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]Fastly
 
Microservices blue-green-deployment-with-docker
Microservices blue-green-deployment-with-dockerMicroservices blue-green-deployment-with-docker
Microservices blue-green-deployment-with-dockerKidong Lee
 
Datacenter Computing with Apache Mesos - BigData DC
Datacenter Computing with Apache Mesos - BigData DCDatacenter Computing with Apache Mesos - BigData DC
Datacenter Computing with Apache Mesos - BigData DCPaco Nathan
 
2015 ZendCon - Do you queue
2015 ZendCon - Do you queue2015 ZendCon - Do you queue
2015 ZendCon - Do you queueMike Willbanks
 
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and more
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and moreScaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and more
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and moreDropsolid
 
White Paper: Scaling Servers and Storage for Film Assets
White Paper: Scaling Servers and Storage for Film AssetsWhite Paper: Scaling Servers and Storage for Film Assets
White Paper: Scaling Servers and Storage for Film AssetsPerforce
 
Building your own slack bot on the AWS stack
Building your own slack bot on the AWS stackBuilding your own slack bot on the AWS stack
Building your own slack bot on the AWS stackTorontoNodeJS
 
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 UsersAmazon Web Services
 
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013Data Replication Options in AWS (ARC302) | AWS re:Invent 2013
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013Amazon Web Services
 

Was ist angesagt? (20)

(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS
 
Use case for using the ElastiCache for Redis in production
Use case for using the ElastiCache for Redis in productionUse case for using the ElastiCache for Redis in production
Use case for using the ElastiCache for Redis in production
 
Zero-downtime Hadoop/HBase Cross-datacenter Migration
Zero-downtime Hadoop/HBase Cross-datacenter MigrationZero-downtime Hadoop/HBase Cross-datacenter Migration
Zero-downtime Hadoop/HBase Cross-datacenter Migration
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)
 
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
Integrating multiple CDN providers at Etsy - Velocity Europe (London) 2013
 
Otimizando servidores web
Otimizando servidores webOtimizando servidores web
Otimizando servidores web
 
5 things you don't know about Amazon Web Services
5 things you don't know about Amazon Web Services5 things you don't know about Amazon Web Services
5 things you don't know about Amazon Web Services
 
CPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performance
 
(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You Thousands(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You Thousands
 
London devops logging
London devops loggingLondon devops logging
London devops logging
 
Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]Caching the Uncacheable [Long Version]
Caching the Uncacheable [Long Version]
 
New AWS Services
New AWS ServicesNew AWS Services
New AWS Services
 
Microservices blue-green-deployment-with-docker
Microservices blue-green-deployment-with-dockerMicroservices blue-green-deployment-with-docker
Microservices blue-green-deployment-with-docker
 
Datacenter Computing with Apache Mesos - BigData DC
Datacenter Computing with Apache Mesos - BigData DCDatacenter Computing with Apache Mesos - BigData DC
Datacenter Computing with Apache Mesos - BigData DC
 
2015 ZendCon - Do you queue
2015 ZendCon - Do you queue2015 ZendCon - Do you queue
2015 ZendCon - Do you queue
 
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and more
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and moreScaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and more
Scaling Drupal in AWS Using AutoScaling, Cloudformation, RDS and more
 
White Paper: Scaling Servers and Storage for Film Assets
White Paper: Scaling Servers and Storage for Film AssetsWhite Paper: Scaling Servers and Storage for Film Assets
White Paper: Scaling Servers and Storage for Film Assets
 
Building your own slack bot on the AWS stack
Building your own slack bot on the AWS stackBuilding your own slack bot on the AWS stack
Building your own slack bot on the AWS stack
 
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
 
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013Data Replication Options in AWS (ARC302) | AWS re:Invent 2013
Data Replication Options in AWS (ARC302) | AWS re:Invent 2013
 

Andere mochten auch

How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)
How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)
How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)DOCOMO Innovations, Inc.
 
Newswriting I syllabus
Newswriting I syllabusNewswriting I syllabus
Newswriting I syllabuschellc14
 
2 Installation of Drupal
2  Installation of Drupal2  Installation of Drupal
2 Installation of DrupalWingston
 
Freshman Fileshare
Freshman FileshareFreshman Fileshare
Freshman Filesharelexshinn06
 
Installing wordpress using wamp on your windows machine
Installing wordpress using wamp on your windows machineInstalling wordpress using wamp on your windows machine
Installing wordpress using wamp on your windows machineRichard Albina
 
Web hosting presentations by hostindia.net
Web hosting presentations by hostindia.netWeb hosting presentations by hostindia.net
Web hosting presentations by hostindia.netHostin Services Pvt Ltd
 
Hong Kong Drupal User Group - Sep 13th
Hong Kong Drupal User Group - Sep 13thHong Kong Drupal User Group - Sep 13th
Hong Kong Drupal User Group - Sep 13thWong Hoi Sing Edison
 
Amazon AWS and Drupal
Amazon AWS and DrupalAmazon AWS and Drupal
Amazon AWS and Drupalpixelcat
 
Scaling Drupal & Deployment in AWS
Scaling Drupal & Deployment in AWSScaling Drupal & Deployment in AWS
Scaling Drupal & Deployment in AWS永对 陈
 
New: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPNew: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPRupesh Kumar
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudVladimir Ilic
 
Step by step how to create database with phpmyadmin
Step by step how to create database with phpmyadminStep by step how to create database with phpmyadmin
Step by step how to create database with phpmyadminFathimah Azkiya
 
Amazon Ec2 Application Design
Amazon Ec2 Application DesignAmazon Ec2 Application Design
Amazon Ec2 Application Designguestd0b61e
 

Andere mochten auch (13)

How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)
How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)
How to Manage Your Cloud by Drupal (DrupalCon CPH 2010)
 
Newswriting I syllabus
Newswriting I syllabusNewswriting I syllabus
Newswriting I syllabus
 
2 Installation of Drupal
2  Installation of Drupal2  Installation of Drupal
2 Installation of Drupal
 
Freshman Fileshare
Freshman FileshareFreshman Fileshare
Freshman Fileshare
 
Installing wordpress using wamp on your windows machine
Installing wordpress using wamp on your windows machineInstalling wordpress using wamp on your windows machine
Installing wordpress using wamp on your windows machine
 
Web hosting presentations by hostindia.net
Web hosting presentations by hostindia.netWeb hosting presentations by hostindia.net
Web hosting presentations by hostindia.net
 
Hong Kong Drupal User Group - Sep 13th
Hong Kong Drupal User Group - Sep 13thHong Kong Drupal User Group - Sep 13th
Hong Kong Drupal User Group - Sep 13th
 
Amazon AWS and Drupal
Amazon AWS and DrupalAmazon AWS and Drupal
Amazon AWS and Drupal
 
Scaling Drupal & Deployment in AWS
Scaling Drupal & Deployment in AWSScaling Drupal & Deployment in AWS
Scaling Drupal & Deployment in AWS
 
New: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPNew: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPP
 
Scaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloudScaling drupal horizontally and in cloud
Scaling drupal horizontally and in cloud
 
Step by step how to create database with phpmyadmin
Step by step how to create database with phpmyadminStep by step how to create database with phpmyadmin
Step by step how to create database with phpmyadmin
 
Amazon Ec2 Application Design
Amazon Ec2 Application DesignAmazon Ec2 Application Design
Amazon Ec2 Application Design
 

Ähnlich wie Drupal camp.sg 2012 session - Drupal in the cloud

Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?
Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?
Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?DATAVERSITY
 
Scaling the Platform for Your Startup
Scaling the Platform for Your StartupScaling the Platform for Your Startup
Scaling the Platform for Your StartupAmazon Web Services
 
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...Amazon Web Services
 
Amazon Web Services Building Blocks for Drupal Applications and Hosting
Amazon Web Services Building Blocks for Drupal Applications and HostingAmazon Web Services Building Blocks for Drupal Applications and Hosting
Amazon Web Services Building Blocks for Drupal Applications and HostingAcquia
 
NICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStackNICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStacklaurabeckcahoon
 
4 C’s for Using Cloud to Support Scientific Research
4 C’s for Using Cloud to Support Scientific Research4 C’s for Using Cloud to Support Scientific Research
4 C’s for Using Cloud to Support Scientific ResearchAvere Systems
 
Improve Page Render Time with Amazon Cloudfront
Improve Page Render Time with Amazon CloudfrontImprove Page Render Time with Amazon Cloudfront
Improve Page Render Time with Amazon CloudfrontPolyvore
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedPromet Source
 
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudPromet Source
 
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudAndy Kucharski
 
MariaDB on Docker
MariaDB on DockerMariaDB on Docker
MariaDB on DockerMariaDB plc
 
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Michael Noel
 
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...Adrian Cockcroft
 
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld
 
PyCon US 2012 - Web Server Bottlenecks and Performance Tuning
PyCon US 2012 - Web Server Bottlenecks and Performance TuningPyCon US 2012 - Web Server Bottlenecks and Performance Tuning
PyCon US 2012 - Web Server Bottlenecks and Performance TuningGraham Dumpleton
 
Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Szabolcs Zajdó
 
Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014Tom Laszewski
 

Ähnlich wie Drupal camp.sg 2012 session - Drupal in the cloud (20)

Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?
Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?
Webinar: Emerging Trends in Data Architecture – What’s the Next Big Thing?
 
Scaling the Platform for Your Startup
Scaling the Platform for Your StartupScaling the Platform for Your Startup
Scaling the Platform for Your Startup
 
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
Dynamic Content Acceleration: Lightning Fast Web Apps with Amazon CloudFront ...
 
Understanding
Understanding Understanding
Understanding
 
Amazon Web Services Building Blocks for Drupal Applications and Hosting
Amazon Web Services Building Blocks for Drupal Applications and HostingAmazon Web Services Building Blocks for Drupal Applications and Hosting
Amazon Web Services Building Blocks for Drupal Applications and Hosting
 
NICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStackNICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStack
 
4 C’s for Using Cloud to Support Scientific Research
4 C’s for Using Cloud to Support Scientific Research4 C’s for Using Cloud to Support Scientific Research
4 C’s for Using Cloud to Support Scientific Research
 
Improve Page Render Time with Amazon Cloudfront
Improve Page Render Time with Amazon CloudfrontImprove Page Render Time with Amazon Cloudfront
Improve Page Render Time with Amazon Cloudfront
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speed
 
SQL Server in the AWS Cloud
SQL Server in the AWS CloudSQL Server in the AWS Cloud
SQL Server in the AWS Cloud
 
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
 
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
 
MariaDB on Docker
MariaDB on DockerMariaDB on Docker
MariaDB on Docker
 
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
Ultimate SharePoint Infrastructure Best Practices Session - Live360 Orlando 2012
 
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
 
SQL Saturday San Diego
SQL Saturday San DiegoSQL Saturday San Diego
SQL Saturday San Diego
 
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
VMworld 2013: Big Data: Virtualized SAP HANA Performance, Scalability and Bes...
 
PyCon US 2012 - Web Server Bottlenecks and Performance Tuning
PyCon US 2012 - Web Server Bottlenecks and Performance TuningPyCon US 2012 - Web Server Bottlenecks and Performance Tuning
PyCon US 2012 - Web Server Bottlenecks and Performance Tuning
 
Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)Cloud cost optimization (AWS, GCP)
Cloud cost optimization (AWS, GCP)
 
Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014
 

Kürzlich hochgeladen

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Kürzlich hochgeladen (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

Drupal camp.sg 2012 session - Drupal in the cloud

  • 1. Drupal in the Cloud by Azhan Founder/Director S & A Solutions
  • 2. Drupal in the Cloud > Drupal and S & A Solutions • S & A Solutions – who? • doing it with Drupal since 2007 • Over 70 projects in 5 years • More than 20 clients • 99% Drupal projects • We love Drupal (obviously!)
  • 3. Drupal in the Cloud > Case Study 1 – http://theasiamag.com • Content publishing of stories from Asia • Launched in 2010 using Amazon EC2+RDS • Drupal 6, on shared hosting during development • Despite performance tuning efforts, still slow pages "Ok S & A, so what do we do now?"
  • 4. Drupal in the Cloud > Case Study 1 – http://theasiamag.com S & A commissioned to do a site performance evaluation We need to • Find out what is causing the slow pages • Find out what server size is suitable • Decide between single tier or multi-tier • Provide a solution for short term/future scalability • Prove with benchmarking test results
  • 5. Drupal in the Cloud > Case Study 1 – http://theasiamag.com Drupal and other optimizations done: • Turned on Boost module, CSS/Javascript aggregation • Optimized images, custom module SQL queries • Removed references to missing files/images Results: • Reduced page loading times from 8 secs to 5 secs • average ~ 30-40% improvement • Apparent network latency stays at 3-4 secs > Hints on bottleneck in the network, web server, database
  • 6. Drupal in the Cloud > Case Study 1 – http://theasiamag.com Network test: • wget download test >> 132kb/sec (good) • ping latency hovering 200-300ms (normal for SG to USA) Network no longer the suspect • Apache ab –k -n100 -c1 >> 2-5 secs per page load (SLOW!) • 70% content errors when ramped up to n=100, c=10 Final suspects: Web server, MySQL needs more CPU and/or memory
  • 7. Drupal in the Cloud > Case Study 1 – http://theasiamag.com Other opportunities in improving performance • Serve static files using a CDN (> 1GB of static files) • Load balanced web servers • Memcached / Varnish • Reverse proxy eg. Nginx • Tune & recompile Apache/MySQL for performance • Allocate more resources to Apache and MySQL (easy)
  • 8. Drupal in the Cloud > Case Study 1 – http://theasiamag.com Other opportunities in improving performance • Serve static files using a CDN (> 1GB of static files) • Load balanced web servers • Memcached / Varnish • Reverse proxy eg. Nginx • Tune & recompile Apache/MySQL for performance • Allocate more resources to Apache and MySQL (easy)
  • 9. Drupal in the Cloud > Case Study 1 – http://theasiamag.com TheAsiaMag asked for Amazon web services • US West Virginia availability zone • mostly worldwide audience • 4 types of server configurations were tried • involves a Load balancer, EC2 with EBS, RDS
  • 10. Drupal in the Cloud > Case Study 1 – http://theasiamag.com 1st run: Load balancer, 2x EC2 micro instances, small RDS 2nd run: Load balancer, 1x LARGE EC2 instance, small RDS 3rd run: Load balancer, 1x small EC2 instance, small RDS 4th run: Load balancer, 1x medium EC2 instance, small RDS Benchmarking tools used: • Apache ab • Drupal Devel module, MySQL slow logs • Firebug
  • 11. Drupal in the Cloud > Case Study 1 – http://theasiamag.com RESULTS of 1st run: Apache ab -n10000 -c10 Load balancer, 2x EC2 micro instances, small RDS EC2 CPU 100% EC2 RAM 100% (no swap) RDS CPU 100% Apache server dies at a random time within a day and could not revive itself
  • 12. Drupal in the Cloud > Case Study 1 – http://theasiamag.com RESULTS of 2nd run: Apache ab -n10000 -c10 Single LARGE EC2 instance, small RDS 10,000 requests completed in under 20mins EC2 CPU 5-10% EC2 RAM 30-50% RDS CPU <5% Impressive, but overkill. And expensive!
  • 13. Drupal in the Cloud > Case Study 1 – http://theasiamag.com RESULTS of 3rd run: Apache ab -n10000 -c10 Single small EC2 instance, small RDS 10,000 requests completed in 1hr EC2 CPU 15-20% EC2 RAM 85% RDS CPU 50% Performance is just OK, but cost is within budget! No need for 4th run.
  • 14. Drupal in the Cloud > Case Study 2 – http://holidaycube.com • Property listing portal, launched in 2010 • Drupal 5, dedicated server hosting • In 2011 - slow pages, occasional server deaths “S & A, what do we do?”
  • 15. Drupal in the Cloud > Case Study 2 – http://holidaycube.com The problem • Just 1000+ properties • 10k page views per month • Very complex search+filters using native Drupal search • Real time statistics killing the site • Watchdog?!!! First aid • Identified slow queries, MySQL always using too much RAM • Had to “kill” watchdog • Plenty of opportunity for code optimization, but have to wait • Hardware upgrade to rescue the site first
  • 16. Drupal in the Cloud > Case Study 2 – http://holidaycube.com • Current hosting at a leading US-based reputable company • Amazon web services suggested as an alternative
  • 17. Drupal in the Cloud > Scalability challenges • Code, database, OS optimizations • Single, monster server vs multi-tier architecture • How to handle spikes in traffic/load • Security, reliability • Cost for all the fancy setup • Time to do all that?! without breaking the bank! > I know we could do all that with Amazon web services
  • 18. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Proposed architecture on Amazon web services • Load balancer • 2x small EC2 for web server • 1x small EC2 for hosting static files • Shared by all web servers via NFS • 1x LARGE RDS for MySQL database
  • 19. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Final architecture on Amazon web services • Load balancer (later, perhaps) • Single LARGE EC2 for web server + MySQL Keep it simple! Building the business case for the move to AWS: • Benchmarking the AWS setup vs the current site • AWS setup has identical CPU, double RAM
  • 20. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Amazon setup vs dedicated server Current Amazon web services CPU Dual core AMD 64bit CPU 4 ECUs (Intel Xeon dual core equivalent) OS 64bit RHEL 4 64bit Ubuntu 11.10 RAM 4GB 7.5GB Location USA USA (West Virginia) Average Cost USD 300 per month USD 200 per month Upgrading “current” to 8GB, RHEL will cost USD700!
  • 21. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 12 11 10 No of requests per second 8 (more is better) 6 Current AWS 4 4 2 0 Apache ab requests per sec Benchmarking Tests
  • 22. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 14 12 12 10 Time in secs 8 Current 6 AWS 4.4 4 2 0 Apache ab timing per request Benchmarking Tests
  • 23. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 2500 2000 1941 1500 Time in ms Current 1000 AWS 500 102 0 Devel PHP timings on Homepage Benchmarking Tests
  • 24. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 120 100 100 80 Time in secs 60 Current AWS 40 20 18 0 Devel PHP timings on Query page Benchmarking Tests
  • 25. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 6 5.46 5 4 Time in secs 3 Current AWS 2 1.44 1 0 Firebug network latency Benchmarking Tests
  • 26. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Benchmarking test results comparison 70 60 60 50 Time in secs 40 Current 30 AWS 20 20 10 0 Firebug full page loading time Benchmarking Tests
  • 27. Drupal in the Cloud > Case Study 2 – http://holidaycube.com Client is convinced! (Yeay!!)
  • 28. Drupal in the Cloud > Why Amazon web services? No to AWS • Could easily have been other hosting providers • Other cloud vendors can address scalability issues • Getting over the Amazonian barriers • AWS may be viewed as “difficult” by some
  • 29. Drupal in the Cloud > Why Amazon web services? Yes, AWS! • A platform for benchmarking, server sizing • Easy and quick to create/kill servers, run tests • Actually a safe, cheap and controlled means of hosting your site or application • Easily spawn additional servers to cater to “high” periods eg. A product launch lasting 4 weeks terminate the additional servers after site traffic has died down You can get really creative designing your architecture
  • 30. Drupal in the Cloud > Drupal web load balancing Amazon Load Balancer Normally a complex setup with traditional hosting, the AWS Console makes it so easy to set this up in minutes
  • 31. Drupal in the Cloud > Drupal and memcached http://drupal.org/project/memcache Amazon ElastiCache Normally a complex setup with traditional hosting the AWS Console makes it so easy to set this up in minutes if paired with the Drupal memcache module
  • 32. Drupal in the Cloud > Drupal and CDN http://drupal.org/project/cdn http://drupal.org/project/cloudfront Amazon Cloudfront or S3
  • 33. Drupal in the Cloud > Drupal and high availability Amazon multi-Availability Zones for EC2 and RDS
  • 34. Drupal in the Cloud > Drupal and MySQL Running MySQL can be done using one of the following options: MySQL on Amazon EC2 MySQL on Amazon RDS Multi-AZ RDS
  • 35. Drupal in the Cloud > Drupal & Amazon web services Amazon CloudFormation “Templates” to quickly deploy a Drupal stack into the cloud
  • 36. Drupal in the Cloud > Drupal & Amazon web services It works!
  • 37. Drupal in the Cloud > Questions? Email: azhan@snasolutions.com.sg Website: http://www.snasolutions.com.sg Thank you!