Post on 20-Jan-2015
description
transcript
PrometSource CDMUG Using LoadStorm
http://www.flickr.com/photos/nebraskasc
-> LEARN WHEN TO LOAD TEST -> UNDERSTAND HOW TO LOAD TEST WITH LOAD STORM
Objectives
About Me
• PRESENTER• ANDY KUCHARSKI• @AKUCHARSKI
• PROMET SOURCE• FOUNDER • @PROMETSOURCE
About Promet• Focus on Drupal• Founded in 2003• Offices in the US (Chicago, San Jose)
What Load Testing is notFront End Performance Testing
High Availability analysis
http://www.flickr.com/photos/peterlozano
Why Load TestCapacity PlanningCapacity Testing
Performance Tuning
www.LoadStorm.com allows you to quickly and easily remove create a test load hitting your site from Amazon and Azure cloud servers
The Victim – Drupal 6 Ubercart site
The Victim - 44 objects on home page
Click icon to add picture
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
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
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)
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)
Two scenarios, main one will register a user in four steps
The Servers – Amazon EC2 Small and Medium VS RS Cloud 2G and 4G
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
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
While running load tests, what’s happening on the server? Apache is consuming all resources, its actually not the database.
20 to 115 users in 40 minutes
Result: EC2 Medium Peeks at 75 users again
Random Server Fail – test needs to be restarted
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
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
While running load tests, what’s happening on the server? Apache is consuming all resources, its actually not the database.