Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

29
PrometSource CDMUG Using LoadStorm http://www.flickr.com/photos/ne braskasc

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 of Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

Page 1: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

PrometSource CDMUG Using LoadStorm

http://www.flickr.com/photos/nebraskasc

Page 2: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

-> 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

About Me

• PRESENTER• ANDY KUCHARSKI• @AKUCHARSKI

• PROMET SOURCE• FOUNDER • @PROMETSOURCE

Page 4: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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

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

Why Load TestCapacity PlanningCapacity Testing

Performance Tuning

Page 7: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Page 8: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Page 9: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Page 10: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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

The Victim – Drupal 6 Ubercart site

Page 12: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

The Victim - 44 objects on home page

Click icon to add picture

Page 13: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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

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

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

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

Two scenarios, main one will register a user in four steps

Page 18: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

The Servers – Amazon EC2 Small and Medium VS RS Cloud 2G and 4G

Page 19: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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

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
Page 22: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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

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

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

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
Page 27: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

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
Page 29: Stress Test Drupal on Amazon EC2 vs. RackSpace cloud

[email protected]@akucharski@prometsource