SlideShare a Scribd company logo
Preparing for
the Flood
How to Load Test to Prepare
your WordPress site for a
viral event.
Who is this idiot?
My name is Robert Li.
I’m a Solutions Engineer for WP Engine.
I’ve founded 3 startups and exited 1.
I have a 3 year old teacup pomeranian
named Chelsey.
I am a long suffering Knicks fan.
I love making WordPress do weird,
wonderful things.
Takeaways
1. Solutions
2. Why Load Test?
3. What do you need?
4. (Pray to the Demo Gods)
5. Demo
6. How do you prepare?
7. Let’s take a look
Degree of Difficulty: Nerd
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
The problem
Your Site
You’ve created a site with
lots of cool features, that
has a great user
experience, and that
you’ve spend tonne’s of
money (or time) on.
Your Hosting
You’ve signed up to some
hosting that will fit your
new site, in its current
state.
It works great!
The Flood
You send a shirt to an
influencer, they wear it,
you actually start selling
stuff, which is great!
Then your site
goes down.
WHAT HAPPENED...
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
So how many
cars can I
actually fit?
Solution
Let’s do some load testing!
Why Load Test?
Functional Tests don’t
reflect the Real World
Testing the functionality of your site or
application doesn’t reflect how users will
use it in real life. They may run across
bottlenecks in complex situations your
testing can’t account for.
Your code can behave
differently under load
Any changes to code to an established
website can cause it to behave
differently under load. Bugs can appear
that you didn’t detect in other testing.
Servers perform
differently under stress
When scaling to 100s, 1000s or
potentially Millions of concurrent users,
you may get completely different results
for CPU load, error rate, I/O throughput,
and response times.
Houston we
have a
problem
The cost of failure is extremely high.
50% of users will leave if a page takes longer than 6.5s to load. 1 minute of
downtime during Black Friday costs US$4700 on average. Downtime during a
peak traffic event damages brand integrity and creates a snowball effect.
https://royal.pingdom.com/page-load-time-really-affect-bounce-rate/
https://www.blazemeter.com/blog/why-load-testing-is-important/
What do you need?
Execution
How do you execute a load test?
Reaction
How does the server react to the
load test?
Load Testing Terms Primer
Scenarios - A template or script of what a user might do on a site.
Virtual Users/User Agents - Simulated users
Concurrency - How many actions and users are happening and on the site at any
given time
504, 502, 429 errors - When the server is either crapping itself, or protecting itself
from “crapping itself”.
.yaml - The file format that holds scenarios
Execution
Ingredients:
Servings: 1000vu
● Taurus - Open source, creates
the Virtual Users that perform
scenarios.
● Blazemeter - Visualizes the data
(can also execute load tests)
● jMeter - Software to help you
build and tweak scenarios
● Blazemeter Chrome Extension -
Records your actions on a
website to start as the basis for
a scenario
Reaction
Ingredients:
Servings: 1 overloaded server
htop sar -q 1
● Stackdriver/Cloudwatch - Server
monitoring (GCP/AWS).
OpenNMS is agnostic & open
source.
● New Relic - Monitoring the
application (WordPress) itself.
● Pingdom/Uptime
Robot/freshping - Measures
whether the website is up.
● htop/sar -q 1 - Command
Line (CLI) Live monitoring.
CAVEATS
DO NOT LOAD TEST…
❏ On your production
environment
❏ On a shared environment
❏ Without telling your host’s
support/security team
❏ On a site or web
application you don’t have
permission to blast.
x
x
x
x
LET’S START
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
How do you prepare?
Do as much as
possible before testing
Decide what to complete and what to defer.
Bottlenecks found in functional testing?
Optimize to get a true to life response.
Deciding Test Type
Spike - How does a
system respond to a
sudden increase and
decrease in load? e.g.
A Live Online Event
Stress - How does a system
respond to consistent high
intensity loads? Where does
it fail? How does it recover?
e.g. A Flash Sale
Soak - How does a
system respond to
high load over time?
e.g. Black Friday
Creating Realistic
Scenarios
Start with the user journey
Your marketing and web team are
integral to generating realistic test
scenarios.
Have them map out ~5 user profiles
and journeys. Usually this is their
funnel
● From where and how do users
access the site?
● What do they do on the site?
● How do they arrive? In waves?
● How long do they stay?
Determine your KPIs
What is acceptable? Not what is
ideal. What level of existence are
you willing to accept?
Considerations:
● Response Time
● Error %
● Ratio of failed to successful
transactions
● Maximum requests per second
● Apdex Score
Start small before
scaling up big...
Do small scale testing to
discover errors and bottlenecks
in your own scenarios and with
your own tech stack.
Common Questions to ask
yourself:
● Is the script broken?
● Is it calling on a resource that
doesn’t exist or performing an
impossible action?
● Is the testing platform actually
the bottleneck?
● Are there optimizations I can
make to improve headroom?
What is the tipping point?
When does acceptable become unacceptable?
Under load is 80% usage
Test for 120% usage
When number of hits/s
plateaus this indicates:
● System can no longer
support extra concurrent
requests
● You are at max
concurrent users.
LET’S TAKE A LOOK
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?
WHAT DO YOU DO NOW?
Analyze > Tune > Retest > Rinse and Repeat
https://wpengine.com/blog/preparing-for-the-holiday-rush-a-load-testing-guide/
Questions?
Robert Li
E: robert.li@wpengine.com
P: +61-(0)-7-5613-1084
SM: LinkedIn (Look Left!)
https://www.linkedin.com/in/robert-li
Download: https://dsh.re/896ac

More Related Content

PPTX
Performance Tuning Web Apps - The Need For Speed
Vijay Rayapati
 
PDF
Measuring Web Performance (HighEdWeb FL Edition)
Dave Olsen
 
PDF
Debugging WooCommerce - WooConf Talk
Andrew Wikel
 
PPTX
Browsers
Dima Malenko
 
PDF
Breaking out of the Tetris mind set #btconf
Christian Heilmann
 
PPT
Smarr Oscon 2007
briandemant
 
PPTX
Make JavaScript Faster
Steve Souders
 
PDF
Moore vs. May - everything is faster and better: we can fix that
Christian Heilmann
 
Performance Tuning Web Apps - The Need For Speed
Vijay Rayapati
 
Measuring Web Performance (HighEdWeb FL Edition)
Dave Olsen
 
Debugging WooCommerce - WooConf Talk
Andrew Wikel
 
Browsers
Dima Malenko
 
Breaking out of the Tetris mind set #btconf
Christian Heilmann
 
Smarr Oscon 2007
briandemant
 
Make JavaScript Faster
Steve Souders
 
Moore vs. May - everything is faster and better: we can fix that
Christian Heilmann
 

What's hot (20)

ODP
Web performance101
Javier Turégano Molina
 
PDF
The State of the Web - Helsinki meetup
Christian Heilmann
 
PPT
Steve Huffman - Lessons learned while at reddit.com
Carsonified Team
 
PDF
How I Learned to Stop Worrying and Love the Update Button
chris-koerner
 
PDF
Turning huge ships - Open Source and Microsoft
Christian Heilmann
 
PDF
WordCamp Nashville 2016: The promise and peril of Agile and Lean practices
mtoppa
 
PPTX
Surviving Black Friday - CodeMotion
Omri Fima
 
PPTX
How I learned to stop worrying and love UX metrics
Tammy Everts
 
PDF
3 tips to make your Wordpress site faster
Jonathan Alford
 
PDF
Performance.now() fast but not furious
Anna Migas
 
PPT
IWMW 2009: Lightweight Web Management
IWMW
 
PPTX
Creating change from within - DevReach 2012
Dror Helper
 
PDF
The image problem of the web and how to solve it…
Christian Heilmann
 
PPTX
Debugging WordPress for Site Owners
Andrew Wikel
 
PPTX
Angular – Say Goodbye to Javascript Soup
Graeme Foster
 
PPT
Listening in on a Conversation
Julie Bohannon
 
PDF
Magento Optimization Whitepaper
Vladyslav Solodovnyk
 
PDF
The wheel is spinning but the hamster is almost dead - Smartweb 2015
Christian Heilmann
 
PDF
Cache is keeping you from reaching the full potential as a developer (word ca...
Thomas Audunhus
 
PPTX
Cyber-security tips: the heartbleed bug
Debbie Elicksen
 
Web performance101
Javier Turégano Molina
 
The State of the Web - Helsinki meetup
Christian Heilmann
 
Steve Huffman - Lessons learned while at reddit.com
Carsonified Team
 
How I Learned to Stop Worrying and Love the Update Button
chris-koerner
 
Turning huge ships - Open Source and Microsoft
Christian Heilmann
 
WordCamp Nashville 2016: The promise and peril of Agile and Lean practices
mtoppa
 
Surviving Black Friday - CodeMotion
Omri Fima
 
How I learned to stop worrying and love UX metrics
Tammy Everts
 
3 tips to make your Wordpress site faster
Jonathan Alford
 
Performance.now() fast but not furious
Anna Migas
 
IWMW 2009: Lightweight Web Management
IWMW
 
Creating change from within - DevReach 2012
Dror Helper
 
The image problem of the web and how to solve it…
Christian Heilmann
 
Debugging WordPress for Site Owners
Andrew Wikel
 
Angular – Say Goodbye to Javascript Soup
Graeme Foster
 
Listening in on a Conversation
Julie Bohannon
 
Magento Optimization Whitepaper
Vladyslav Solodovnyk
 
The wheel is spinning but the hamster is almost dead - Smartweb 2015
Christian Heilmann
 
Cache is keeping you from reaching the full potential as a developer (word ca...
Thomas Audunhus
 
Cyber-security tips: the heartbleed bug
Debbie Elicksen
 
Ad

Similar to Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events? (20)

PDF
A Perfect Launch, Every Time
Pantheon
 
PPTX
Flight checks -QA for Releases that Prevent Disasters from Escaping into the ...
Brie Hoblin
 
PPTX
Tis The Season: Load Testing Tips and Checklist for Retail Seasonal Readiness
SOASTA
 
PPTX
Tis The Season: Load Testing Tips and Checklist for Retail Seasonal Readiness
SOASTA
 
PPT
Windy cityrails performance_tuning
John McCaffrey
 
PPT
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
John McCaffrey
 
PDF
Web Performance in the Age of HTTP2 - Topconf Tallinn 2016 - Holger Bartel
Holger Bartel
 
PDF
2019 StartIT - Boosting your performance with Blackfire
Marko Mitranić
 
PPTX
Applying a Methodical Approach to Website Performance
PostSharp Technologies
 
PDF
Machine learning pipeline
Vadym Kuzmenko
 
PPTX
Advanced Error Handling Strategies for ColdFusion
Mary Jo Sminkey
 
PDF
Website qa
Jonathan Ross
 
PPT
What Are We Still Doing Wrong
afa reg
 
PPTX
Automated tests
Damian Sromek
 
PDF
Scaling a Web Site - OSCON Tutorial
duleepa
 
PDF
Gatling workshop lets test17
Gerald Muecke
 
PPTX
Production debugging web applications
Ido Flatow
 
PPTX
Diana Carciu - Performance Testing with SoapUi and Siege.pptx
Codecamp Romania
 
PDF
Feedback Loops
Jon Haarmann
 
DOCX
Devops interview questions
enrollmy training
 
A Perfect Launch, Every Time
Pantheon
 
Flight checks -QA for Releases that Prevent Disasters from Escaping into the ...
Brie Hoblin
 
Tis The Season: Load Testing Tips and Checklist for Retail Seasonal Readiness
SOASTA
 
Tis The Season: Load Testing Tips and Checklist for Retail Seasonal Readiness
SOASTA
 
Windy cityrails performance_tuning
John McCaffrey
 
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
John McCaffrey
 
Web Performance in the Age of HTTP2 - Topconf Tallinn 2016 - Holger Bartel
Holger Bartel
 
2019 StartIT - Boosting your performance with Blackfire
Marko Mitranić
 
Applying a Methodical Approach to Website Performance
PostSharp Technologies
 
Machine learning pipeline
Vadym Kuzmenko
 
Advanced Error Handling Strategies for ColdFusion
Mary Jo Sminkey
 
Website qa
Jonathan Ross
 
What Are We Still Doing Wrong
afa reg
 
Automated tests
Damian Sromek
 
Scaling a Web Site - OSCON Tutorial
duleepa
 
Gatling workshop lets test17
Gerald Muecke
 
Production debugging web applications
Ido Flatow
 
Diana Carciu - Performance Testing with SoapUi and Siege.pptx
Codecamp Romania
 
Feedback Loops
Jon Haarmann
 
Devops interview questions
enrollmy training
 
Ad

More from WordCamp Sydney (20)

PDF
Don’t Panic: How To Troubleshoot Your WordPress Site
WordCamp Sydney
 
PDF
WordPress Hosting Survival Guide
WordCamp Sydney
 
PDF
Goodbye Themes, Hello Elementor – Beyond Creating Basic Websites
WordCamp Sydney
 
PDF
Divi 4.x and WooCommerce Changes
WordCamp Sydney
 
PDF
Why No One Is Reading Your Blog Posts (And How To Change That)
WordCamp Sydney
 
PDF
Our Wild Journey Implementing A Headless WordPress Blog
WordCamp Sydney
 
PDF
Escaping Client Hell: 6 Practical Tips To Make Freelancing Fun Again
WordCamp Sydney
 
PDF
Planning Your Website Roadmap: Why Every Website Project Needs One To Save It...
WordCamp Sydney
 
PDF
Website Delivered – It’s The START Of The Relationship!
WordCamp Sydney
 
PDF
5 Steps To Avoiding Burnout: Creating A Healthy Work/Life Balance
WordCamp Sydney
 
PDF
The Healthy Baker - Flipping the Brief
WordCamp Sydney
 
PDF
Gutenberg Block Editor Tips & Tricks
WordCamp Sydney
 
PDF
Let's Get Engaged
WordCamp Sydney
 
PDF
The Science Of WordPress
WordCamp Sydney
 
PDF
Basics of Search Engine Optimisation
WordCamp Sydney
 
PDF
The Future of Web Content (an introduction to the new WordPress editor)
WordCamp Sydney
 
PDF
Beyond the Theme: Affirming the role of the designer in the WordPress ecosystem
WordCamp Sydney
 
PDF
5 Ecommerce Trends to Implement Now
WordCamp Sydney
 
PDF
Modern Local Environment for WordPress in 2018
WordCamp Sydney
 
PDF
Diagnosing WordPress: What to do when things go wrong
WordCamp Sydney
 
Don’t Panic: How To Troubleshoot Your WordPress Site
WordCamp Sydney
 
WordPress Hosting Survival Guide
WordCamp Sydney
 
Goodbye Themes, Hello Elementor – Beyond Creating Basic Websites
WordCamp Sydney
 
Divi 4.x and WooCommerce Changes
WordCamp Sydney
 
Why No One Is Reading Your Blog Posts (And How To Change That)
WordCamp Sydney
 
Our Wild Journey Implementing A Headless WordPress Blog
WordCamp Sydney
 
Escaping Client Hell: 6 Practical Tips To Make Freelancing Fun Again
WordCamp Sydney
 
Planning Your Website Roadmap: Why Every Website Project Needs One To Save It...
WordCamp Sydney
 
Website Delivered – It’s The START Of The Relationship!
WordCamp Sydney
 
5 Steps To Avoiding Burnout: Creating A Healthy Work/Life Balance
WordCamp Sydney
 
The Healthy Baker - Flipping the Brief
WordCamp Sydney
 
Gutenberg Block Editor Tips & Tricks
WordCamp Sydney
 
Let's Get Engaged
WordCamp Sydney
 
The Science Of WordPress
WordCamp Sydney
 
Basics of Search Engine Optimisation
WordCamp Sydney
 
The Future of Web Content (an introduction to the new WordPress editor)
WordCamp Sydney
 
Beyond the Theme: Affirming the role of the designer in the WordPress ecosystem
WordCamp Sydney
 
5 Ecommerce Trends to Implement Now
WordCamp Sydney
 
Modern Local Environment for WordPress in 2018
WordCamp Sydney
 
Diagnosing WordPress: What to do when things go wrong
WordCamp Sydney
 

Recently uploaded (20)

PDF
Keppel Ltd. 1H 2025 Results Presentation Slides
KeppelCorporation
 
PPTX
E-Way Bill under GST – Transport & Logistics.pptx
Keerthana Chinnathambi
 
PDF
12 Oil and Gas Companies in India Driving the Energy Sector.pdf
Essar Group
 
PDF
Equinox Gold - Corporate Presentation.pdf
Equinox Gold Corp.
 
PDF
New Royals Distribution Plan Presentation
ksherwin
 
PPTX
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 
PPTX
Financial Management for business management .pptx
Hasibullah Ahmadi
 
PDF
bain-temasek-sea-green-economy-2022-report-investing-behind-the-new-realities...
YudiSaputra43
 
PDF
Gregory Felber - An Accomplished Underwater Marine Biologist
Gregory Felber
 
PPTX
Brain Based Enterprises - Harmonising Man, Woman and Machine
Peter Cook
 
PDF
Using Innovative Solar Manufacturing to Drive India's Renewable Energy Revolu...
Insolation Energy
 
PPTX
Appreciations - July 25.pptxsdsdsddddddsssss
anushavnayak
 
PPTX
Appreciations - July 25.pptxffsdjjjjjjjjjjjj
anushavnayak
 
PPTX
E-commerce and its impact on business.
pandeyranjan5483
 
PDF
Retinal Disorder Treatment Market 2030: The Impact of Advanced Diagnostics an...
Kumar Satyam
 
PDF
Alan Stalcup - Principal Of GVA Real Estate Investments
Alan Stalcup
 
PPTX
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
PPTX
Social Media Marketing for Business Growth
vidhi622006
 
PDF
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
PDF
High Capacity Core IC Pneumatic Spec-Sheet
Forklift Trucks in Minnesota
 
Keppel Ltd. 1H 2025 Results Presentation Slides
KeppelCorporation
 
E-Way Bill under GST – Transport & Logistics.pptx
Keerthana Chinnathambi
 
12 Oil and Gas Companies in India Driving the Energy Sector.pdf
Essar Group
 
Equinox Gold - Corporate Presentation.pdf
Equinox Gold Corp.
 
New Royals Distribution Plan Presentation
ksherwin
 
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 
Financial Management for business management .pptx
Hasibullah Ahmadi
 
bain-temasek-sea-green-economy-2022-report-investing-behind-the-new-realities...
YudiSaputra43
 
Gregory Felber - An Accomplished Underwater Marine Biologist
Gregory Felber
 
Brain Based Enterprises - Harmonising Man, Woman and Machine
Peter Cook
 
Using Innovative Solar Manufacturing to Drive India's Renewable Energy Revolu...
Insolation Energy
 
Appreciations - July 25.pptxsdsdsddddddsssss
anushavnayak
 
Appreciations - July 25.pptxffsdjjjjjjjjjjjj
anushavnayak
 
E-commerce and its impact on business.
pandeyranjan5483
 
Retinal Disorder Treatment Market 2030: The Impact of Advanced Diagnostics an...
Kumar Satyam
 
Alan Stalcup - Principal Of GVA Real Estate Investments
Alan Stalcup
 
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
Social Media Marketing for Business Growth
vidhi622006
 
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
High Capacity Core IC Pneumatic Spec-Sheet
Forklift Trucks in Minnesota
 

Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPress Site For Viral Events?

  • 1. Preparing for the Flood How to Load Test to Prepare your WordPress site for a viral event.
  • 2. Who is this idiot? My name is Robert Li. I’m a Solutions Engineer for WP Engine. I’ve founded 3 startups and exited 1. I have a 3 year old teacup pomeranian named Chelsey. I am a long suffering Knicks fan. I love making WordPress do weird, wonderful things.
  • 3. Takeaways 1. Solutions 2. Why Load Test? 3. What do you need? 4. (Pray to the Demo Gods) 5. Demo 6. How do you prepare? 7. Let’s take a look Degree of Difficulty: Nerd
  • 9. The problem Your Site You’ve created a site with lots of cool features, that has a great user experience, and that you’ve spend tonne’s of money (or time) on. Your Hosting You’ve signed up to some hosting that will fit your new site, in its current state. It works great! The Flood You send a shirt to an influencer, they wear it, you actually start selling stuff, which is great! Then your site goes down. WHAT HAPPENED...
  • 11. So how many cars can I actually fit?
  • 12. Solution Let’s do some load testing!
  • 14. Functional Tests don’t reflect the Real World Testing the functionality of your site or application doesn’t reflect how users will use it in real life. They may run across bottlenecks in complex situations your testing can’t account for.
  • 15. Your code can behave differently under load Any changes to code to an established website can cause it to behave differently under load. Bugs can appear that you didn’t detect in other testing.
  • 16. Servers perform differently under stress When scaling to 100s, 1000s or potentially Millions of concurrent users, you may get completely different results for CPU load, error rate, I/O throughput, and response times. Houston we have a problem
  • 17. The cost of failure is extremely high. 50% of users will leave if a page takes longer than 6.5s to load. 1 minute of downtime during Black Friday costs US$4700 on average. Downtime during a peak traffic event damages brand integrity and creates a snowball effect. https://royal.pingdom.com/page-load-time-really-affect-bounce-rate/ https://www.blazemeter.com/blog/why-load-testing-is-important/
  • 18. What do you need?
  • 19. Execution How do you execute a load test? Reaction How does the server react to the load test?
  • 20. Load Testing Terms Primer Scenarios - A template or script of what a user might do on a site. Virtual Users/User Agents - Simulated users Concurrency - How many actions and users are happening and on the site at any given time 504, 502, 429 errors - When the server is either crapping itself, or protecting itself from “crapping itself”. .yaml - The file format that holds scenarios
  • 21. Execution Ingredients: Servings: 1000vu ● Taurus - Open source, creates the Virtual Users that perform scenarios. ● Blazemeter - Visualizes the data (can also execute load tests) ● jMeter - Software to help you build and tweak scenarios ● Blazemeter Chrome Extension - Records your actions on a website to start as the basis for a scenario
  • 22. Reaction Ingredients: Servings: 1 overloaded server htop sar -q 1 ● Stackdriver/Cloudwatch - Server monitoring (GCP/AWS). OpenNMS is agnostic & open source. ● New Relic - Monitoring the application (WordPress) itself. ● Pingdom/Uptime Robot/freshping - Measures whether the website is up. ● htop/sar -q 1 - Command Line (CLI) Live monitoring.
  • 23. CAVEATS DO NOT LOAD TEST… ❏ On your production environment ❏ On a shared environment ❏ Without telling your host’s support/security team ❏ On a site or web application you don’t have permission to blast. x x x x
  • 28. How do you prepare?
  • 29. Do as much as possible before testing Decide what to complete and what to defer. Bottlenecks found in functional testing? Optimize to get a true to life response.
  • 30. Deciding Test Type Spike - How does a system respond to a sudden increase and decrease in load? e.g. A Live Online Event Stress - How does a system respond to consistent high intensity loads? Where does it fail? How does it recover? e.g. A Flash Sale Soak - How does a system respond to high load over time? e.g. Black Friday
  • 31. Creating Realistic Scenarios Start with the user journey Your marketing and web team are integral to generating realistic test scenarios. Have them map out ~5 user profiles and journeys. Usually this is their funnel ● From where and how do users access the site? ● What do they do on the site? ● How do they arrive? In waves? ● How long do they stay?
  • 32. Determine your KPIs What is acceptable? Not what is ideal. What level of existence are you willing to accept? Considerations: ● Response Time ● Error % ● Ratio of failed to successful transactions ● Maximum requests per second ● Apdex Score
  • 33. Start small before scaling up big... Do small scale testing to discover errors and bottlenecks in your own scenarios and with your own tech stack. Common Questions to ask yourself: ● Is the script broken? ● Is it calling on a resource that doesn’t exist or performing an impossible action? ● Is the testing platform actually the bottleneck? ● Are there optimizations I can make to improve headroom?
  • 34. What is the tipping point? When does acceptable become unacceptable?
  • 35. Under load is 80% usage Test for 120% usage When number of hits/s plateaus this indicates: ● System can no longer support extra concurrent requests ● You are at max concurrent users.
  • 38. WHAT DO YOU DO NOW? Analyze > Tune > Retest > Rinse and Repeat
  • 40. Questions? Robert Li E: [email protected] P: +61-(0)-7-5613-1084 SM: LinkedIn (Look Left!) https://www.linkedin.com/in/robert-li Download: https://dsh.re/896ac