stress test drupal on amazon ec2 vs. rackspace cloud
DESCRIPTION
RackSpace vs Amazon EC2 stress evaluation of responding to user registration on a Drupal 6 ubercart ecommerce site test using LoadStorm. We have stood up an eCommerce site built with Drupal6 and ubercart and stood it up on two most popular cloud providers. We then built a stress test using LoadStorm and tried to push the sites and servers to the limit. Here are the results of our experiment.TRANSCRIPT
![Page 1: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/1.jpg)
PrometSource CDMUG Using LoadStorm
http://www.flickr.com/photos/nebraskasc
![Page 2: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/2.jpg)
-> LEARN WHEN TO LOAD TEST -> UNDERSTAND HOW TO LOAD TEST WITH LOAD STORM
Objectives
![Page 3: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/3.jpg)
About Me
• PRESENTER• ANDY KUCHARSKI• @AKUCHARSKI
• PROMET SOURCE• FOUNDER • @PROMETSOURCE
![Page 4: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/4.jpg)
About Promet• Focus on Drupal• Founded in 2003• Offices in the US (Chicago, San Jose)
![Page 5: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/5.jpg)
What Load Testing is notFront End Performance Testing
High Availability analysis
http://www.flickr.com/photos/peterlozano
![Page 6: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/6.jpg)
Why Load TestCapacity PlanningCapacity Testing
Performance Tuning
![Page 7: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/7.jpg)
![Page 8: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/8.jpg)
![Page 9: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/9.jpg)
![Page 10: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/10.jpg)
www.LoadStorm.com allows you to quickly and easily remove create a test load hitting your site from Amazon and Azure cloud servers
![Page 11: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/11.jpg)
The Victim – Drupal 6 Ubercart site
![Page 12: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/12.jpg)
The Victim - 44 objects on home page
Click icon to add picture
![Page 13: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/13.jpg)
How to Set up a load test - Step 1 – create a Plan Plan is a collection of Scripts, steps and data about the tests its always the first
step and it’s the highest level
![Page 14: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/14.jpg)
How to Set up a load test - Step 2 – create a ScenarioA scenario is a collection of test steps (user actions, like a click or a form submit).
Weighing (if you have more than one scenario) min/max pause and form data set
![Page 15: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/15.jpg)
How to Set up a load test - Step 2 – create a Step (and repeat)
Steps are user actions. Load storm allows for links, new pages, random clicks, static data and form data (for required unique values)
![Page 16: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/16.jpg)
How to Set up a load test - Step 3 – create a Step (and repeat)
Steps are user actions. Load storm allows for links, new pages, random clicks, static data and form data (for required unique values)
![Page 17: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/17.jpg)
Two scenarios, main one will register a user in four steps
![Page 18: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/18.jpg)
The Servers – Amazon EC2 Small and Medium VS RS Cloud 2G and 4G
![Page 19: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/19.jpg)
20 to 115 users in 40 minutes
• Average Response time• Peak Response time• Error rate %
• User Load and Requests per second
EC2 Small: Peeked at 75 users
![Page 20: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/20.jpg)
20 to 115 users in 40 minutes
• Average Response time• Peak Response time• Error rate %
• User Load and Requests per second
Result: RS peeked at 65 users
![Page 21: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/21.jpg)
![Page 22: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/22.jpg)
While running load tests, what’s happening on the server? Apache is consuming all resources, its actually not the database.
![Page 23: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/23.jpg)
20 to 115 users in 40 minutes
Result: EC2 Medium Peeks at 75 users again
Random Server Fail – test needs to be restarted
![Page 24: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/24.jpg)
20 to 115 users in 40 minutes
• Average Response time• Peak Response time• Error rate %
• User Load and Requests per second
Result: EC2 Medium Peeks at 75 users again
![Page 25: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/25.jpg)
20 to 115 users in 40 minutes
• Average Response time• Peak Response time• Error rate %
• User Load and Requests per second
Result: RS 2G, keeps going at 115
![Page 26: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/26.jpg)
![Page 27: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/27.jpg)
While running load tests, what’s happening on the server? Apache is consuming all resources, its actually not the database.
![Page 28: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud](https://reader036.vdocuments.site/reader036/viewer/2022062511/54bd51c14a7959cc288b4598/html5/thumbnails/28.jpg)