SlideShare une entreprise Scribd logo
1  sur  12
Art and Science of Load Testing MW18 Radha Nagaraja
Weighing the World Wide
Web: The Art and Science of
Load Testing
Radha Nagaraja
Email: rnagaraja@911memorial.org
National September 11 Memorial and Museum
Presentation at: Museums and the Web, 2018, Vancouver, Canada
Art and Science of Load Testing MW18 Radha Nagaraja
Live Streaming and Events
on 9/11 Anniversary
~ 35 X
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Challenge
Art and Science of Load Testing MW18 Radha Nagaraja
Website Content Management System (CMS)
Website Hosting Stack
Dedicated Database Servers (Primary
and Fallback)
Dedicated Web Servers
Dedicated Load Balancers
Varnish Caching Layer
DDOS Protection and Caching Layer
End-Users (Client-Side)
Client
Monitoring
Tools
Server
Monitoring
Tools
Technology Stack
Art and Science of Load Testing MW18 Radha Nagaraja
Website Hosting Stack
Dedicated Database Servers (Primary
and Fallback)
Dedicated Web Servers
Dedicated Load Balancers
Varnish Caching Layer
Server
Monitoring
Tools
Client
Monitoring
Tools
DDOS
Cache
Memcache
Drupal
Cache
Varnish
Cache
DDOS Protection and Caching Layer
End-Users (Client-Side)
Website Content Management System (CMS)
Technology Stack
Art and Science of Load Testing MW18 Radha Nagaraja
Website Content Management System (CMS)
Website Hosting Stack
Dedicated Database Servers (Primary
and Fallback)
Dedicated Web Servers
Dedicated Load Balancers
Varnish Caching Layer
DDOS Protection and Caching Layer
Server
Monitoring
Tools
End-Users (Client-Side)
Client
Monitoring
Tools
• Visitor Analytics
• Incoming and
Outgoing
Traffic Analytics
• CPU
• Memory
• Database and
CMS Analytics
Technology Stack
Art and Science of Load Testing MW18 Radha Nagaraja
Load Testing: High-Level Workflow
1. Estimate traffic.
2. Provision appropriate (best-estimate) infrastructure.
3. Create traffic (as realistic as possible).
4. Test website performance.
5. Repeat Steps 2-4 as needed.
Art and Science of Load Testing MW18 Radha Nagaraja
Variation of Traffic Patterns During Spike
Art and Science of Load Testing MW18 Radha Nagaraja
Identify the hardware
configuration of the
Production stack
Calculate the upsize
requirements for the
Anniversary by
estimating visitor traffic
Set up a cloned
Production
environment in
collaboration with
hosting provider
Setup a new test Virtual
IP on the DDOS and
caching platform for
routing traffic to the
cloned stack
Setup a new domain for
the load test
environment (e.g.
loadtest.911memorial.o
rg)
Configure the Test
Payment Gateway so
we can make test
transactions
Configure any external
API/database
connections to point to
the test servers.
Configure Analytics for
the cloned domain.
Finally, make test
transactions to test if
everything works as
expected
All set for starting
load testing!
Note: We usually start with running load tests with the current configuration of the Production environment and then run tests on upsized environments
as necessary and compare the difference in performance.
Setting up of the Load Test Environment
Preparing for Load Test
Art and Science of Load Testing MW18 Radha Nagaraja
Defining Load Test Scenario
Art and Science of Load Testing MW18 Radha Nagaraja
Defining and Modeling Use Cases
Sample use case with
anonymous and
authenticated sections
Modeling in the load
testing framework
Art and Science of Load Testing MW18 Radha Nagaraja
Load Test Time Profile and Latency Measurement
A sample time
profile of number of
concurrent users
Variation of latency. It is
seen that the latency
remains approximately
constant while ramping up
number of concurrent users
and during sustained load.
Art and Science of Load Testing MW18 Radha Nagaraja
Conclusions and Summary
• Load tests and performance tests are important to ensure the
website can handle spikes in traffic smoothly.
• Uncover issues that might manifest only under sustained load
• It is crucial to make the load test infrastructure and simulated
traffic as close to real as possible.
• As a precaution, it is still advisable to keep “human components”
online during the high-spike period.

Contenu connexe

Plus de MuseWeb Foundation

Prototyping in collaboration with university libraries
Prototyping in collaboration with university librariesPrototyping in collaboration with university libraries
Prototyping in collaboration with university librariesMuseWeb Foundation
 
MW20 Inside the Climate Converter
MW20 Inside the Climate ConverterMW20 Inside the Climate Converter
MW20 Inside the Climate ConverterMuseWeb Foundation
 
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...MuseWeb Foundation
 
Telling and Sharing Stories Online about Museum Objects
Telling and Sharing Stories Online about Museum ObjectsTelling and Sharing Stories Online about Museum Objects
Telling and Sharing Stories Online about Museum ObjectsMuseWeb Foundation
 
Digital social innovation and the evolving role of digital in museums haith...
Digital social innovation and the evolving role of digital in museums   haith...Digital social innovation and the evolving role of digital in museums   haith...
Digital social innovation and the evolving role of digital in museums haith...MuseWeb Foundation
 
A Crisis of Capacity - Adam Moriarty
A Crisis of Capacity - Adam MoriartyA Crisis of Capacity - Adam Moriarty
A Crisis of Capacity - Adam MoriartyMuseWeb Foundation
 
Understanding Access: Translation Services and Accessibility Programs MW19 Li...
Understanding Access: Translation Services and Accessibility Programs MW19 Li...Understanding Access: Translation Services and Accessibility Programs MW19 Li...
Understanding Access: Translation Services and Accessibility Programs MW19 Li...MuseWeb Foundation
 
Designing a 'No Interface' Audiowalk"
Designing a 'No Interface' Audiowalk"Designing a 'No Interface' Audiowalk"
Designing a 'No Interface' Audiowalk"MuseWeb Foundation
 
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...MuseWeb Foundation
 
MW19: Simple Tangible Interaction
MW19: Simple Tangible InteractionMW19: Simple Tangible Interaction
MW19: Simple Tangible InteractionMuseWeb Foundation
 
Co-creating knowledge_Baggesen
Co-creating knowledge_BaggesenCo-creating knowledge_Baggesen
Co-creating knowledge_BaggesenMuseWeb Foundation
 
Reimagining the Audio Tour for Levinthal’s War, Myth, Desire
Reimagining the Audio Tour for Levinthal’s War, Myth, DesireReimagining the Audio Tour for Levinthal’s War, Myth, Desire
Reimagining the Audio Tour for Levinthal’s War, Myth, DesireMuseWeb Foundation
 
Decolonization in Museum Technology -- Seema Rao
Decolonization in Museum Technology -- Seema RaoDecolonization in Museum Technology -- Seema Rao
Decolonization in Museum Technology -- Seema RaoMuseWeb Foundation
 
Providing Choice and Control In a 360 Degree Environment For Those with Low o...
Providing Choice and Control In a 360 Degree Environment For Those with Low o...Providing Choice and Control In a 360 Degree Environment For Those with Low o...
Providing Choice and Control In a 360 Degree Environment For Those with Low o...MuseWeb Foundation
 
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...Prototyping AR in a University Museum: How User Tests Informed an Accessibili...
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...MuseWeb Foundation
 
Web writing for museums: Analyzing principles and best writing practices for ...
Web writing for museums: Analyzing principles and best writing practices for ...Web writing for museums: Analyzing principles and best writing practices for ...
Web writing for museums: Analyzing principles and best writing practices for ...MuseWeb Foundation
 
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...MuseWeb Foundation
 
Museum Collections on Wikipedia: Opening Up to Open Data Initiatives
Museum Collections on Wikipedia: Opening Up to Open Data InitiativesMuseum Collections on Wikipedia: Opening Up to Open Data Initiatives
Museum Collections on Wikipedia: Opening Up to Open Data InitiativesMuseWeb Foundation
 

Plus de MuseWeb Foundation (20)

Prototyping in collaboration with university libraries
Prototyping in collaboration with university librariesPrototyping in collaboration with university libraries
Prototyping in collaboration with university libraries
 
MW20 Inside the Climate Converter
MW20 Inside the Climate ConverterMW20 Inside the Climate Converter
MW20 Inside the Climate Converter
 
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...
Magus Cagliostro, Wonders.do, Israel: Art of Escape, Magic, and immersive sto...
 
Bots I have met - Paul Rowe
Bots I have met - Paul RoweBots I have met - Paul Rowe
Bots I have met - Paul Rowe
 
Telling and Sharing Stories Online about Museum Objects
Telling and Sharing Stories Online about Museum ObjectsTelling and Sharing Stories Online about Museum Objects
Telling and Sharing Stories Online about Museum Objects
 
Digital social innovation and the evolving role of digital in museums haith...
Digital social innovation and the evolving role of digital in museums   haith...Digital social innovation and the evolving role of digital in museums   haith...
Digital social innovation and the evolving role of digital in museums haith...
 
A Crisis of Capacity - Adam Moriarty
A Crisis of Capacity - Adam MoriartyA Crisis of Capacity - Adam Moriarty
A Crisis of Capacity - Adam Moriarty
 
Understanding Access: Translation Services and Accessibility Programs MW19 Li...
Understanding Access: Translation Services and Accessibility Programs MW19 Li...Understanding Access: Translation Services and Accessibility Programs MW19 Li...
Understanding Access: Translation Services and Accessibility Programs MW19 Li...
 
Designing a 'No Interface' Audiowalk"
Designing a 'No Interface' Audiowalk"Designing a 'No Interface' Audiowalk"
Designing a 'No Interface' Audiowalk"
 
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...
Approaching “Dark Heritage” Through Essential Questions: An Interactive Digit...
 
MW19: Simple Tangible Interaction
MW19: Simple Tangible InteractionMW19: Simple Tangible Interaction
MW19: Simple Tangible Interaction
 
Co-creating knowledge_Baggesen
Co-creating knowledge_BaggesenCo-creating knowledge_Baggesen
Co-creating knowledge_Baggesen
 
Reimagining the Audio Tour for Levinthal’s War, Myth, Desire
Reimagining the Audio Tour for Levinthal’s War, Myth, DesireReimagining the Audio Tour for Levinthal’s War, Myth, Desire
Reimagining the Audio Tour for Levinthal’s War, Myth, Desire
 
Decolonization in Museum Technology -- Seema Rao
Decolonization in Museum Technology -- Seema RaoDecolonization in Museum Technology -- Seema Rao
Decolonization in Museum Technology -- Seema Rao
 
Providing Choice and Control In a 360 Degree Environment For Those with Low o...
Providing Choice and Control In a 360 Degree Environment For Those with Low o...Providing Choice and Control In a 360 Degree Environment For Those with Low o...
Providing Choice and Control In a 360 Degree Environment For Those with Low o...
 
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...Prototyping AR in a University Museum: How User Tests Informed an Accessibili...
Prototyping AR in a University Museum: How User Tests Informed an Accessibili...
 
Web writing for museums: Analyzing principles and best writing practices for ...
Web writing for museums: Analyzing principles and best writing practices for ...Web writing for museums: Analyzing principles and best writing practices for ...
Web writing for museums: Analyzing principles and best writing practices for ...
 
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...
Art in Rich-Prospect: Evaluating Next-Generation User Interfaces for Cultural...
 
Museum Collections on Wikipedia: Opening Up to Open Data Initiatives
Museum Collections on Wikipedia: Opening Up to Open Data InitiativesMuseum Collections on Wikipedia: Opening Up to Open Data Initiatives
Museum Collections on Wikipedia: Opening Up to Open Data Initiatives
 
Affect in information systems
Affect in information systemsAffect in information systems
Affect in information systems
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Dernier (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

MW18 Presentation: Weighing The World Wide Web: The Art And Science Of Load Testing For Unique High-Spike Conditions

  • 1. Art and Science of Load Testing MW18 Radha Nagaraja Weighing the World Wide Web: The Art and Science of Load Testing Radha Nagaraja Email: rnagaraja@911memorial.org National September 11 Memorial and Museum Presentation at: Museums and the Web, 2018, Vancouver, Canada
  • 2. Art and Science of Load Testing MW18 Radha Nagaraja Live Streaming and Events on 9/11 Anniversary ~ 35 X 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Challenge
  • 3. Art and Science of Load Testing MW18 Radha Nagaraja Website Content Management System (CMS) Website Hosting Stack Dedicated Database Servers (Primary and Fallback) Dedicated Web Servers Dedicated Load Balancers Varnish Caching Layer DDOS Protection and Caching Layer End-Users (Client-Side) Client Monitoring Tools Server Monitoring Tools Technology Stack
  • 4. Art and Science of Load Testing MW18 Radha Nagaraja Website Hosting Stack Dedicated Database Servers (Primary and Fallback) Dedicated Web Servers Dedicated Load Balancers Varnish Caching Layer Server Monitoring Tools Client Monitoring Tools DDOS Cache Memcache Drupal Cache Varnish Cache DDOS Protection and Caching Layer End-Users (Client-Side) Website Content Management System (CMS) Technology Stack
  • 5. Art and Science of Load Testing MW18 Radha Nagaraja Website Content Management System (CMS) Website Hosting Stack Dedicated Database Servers (Primary and Fallback) Dedicated Web Servers Dedicated Load Balancers Varnish Caching Layer DDOS Protection and Caching Layer Server Monitoring Tools End-Users (Client-Side) Client Monitoring Tools • Visitor Analytics • Incoming and Outgoing Traffic Analytics • CPU • Memory • Database and CMS Analytics Technology Stack
  • 6. Art and Science of Load Testing MW18 Radha Nagaraja Load Testing: High-Level Workflow 1. Estimate traffic. 2. Provision appropriate (best-estimate) infrastructure. 3. Create traffic (as realistic as possible). 4. Test website performance. 5. Repeat Steps 2-4 as needed.
  • 7. Art and Science of Load Testing MW18 Radha Nagaraja Variation of Traffic Patterns During Spike
  • 8. Art and Science of Load Testing MW18 Radha Nagaraja Identify the hardware configuration of the Production stack Calculate the upsize requirements for the Anniversary by estimating visitor traffic Set up a cloned Production environment in collaboration with hosting provider Setup a new test Virtual IP on the DDOS and caching platform for routing traffic to the cloned stack Setup a new domain for the load test environment (e.g. loadtest.911memorial.o rg) Configure the Test Payment Gateway so we can make test transactions Configure any external API/database connections to point to the test servers. Configure Analytics for the cloned domain. Finally, make test transactions to test if everything works as expected All set for starting load testing! Note: We usually start with running load tests with the current configuration of the Production environment and then run tests on upsized environments as necessary and compare the difference in performance. Setting up of the Load Test Environment Preparing for Load Test
  • 9. Art and Science of Load Testing MW18 Radha Nagaraja Defining Load Test Scenario
  • 10. Art and Science of Load Testing MW18 Radha Nagaraja Defining and Modeling Use Cases Sample use case with anonymous and authenticated sections Modeling in the load testing framework
  • 11. Art and Science of Load Testing MW18 Radha Nagaraja Load Test Time Profile and Latency Measurement A sample time profile of number of concurrent users Variation of latency. It is seen that the latency remains approximately constant while ramping up number of concurrent users and during sustained load.
  • 12. Art and Science of Load Testing MW18 Radha Nagaraja Conclusions and Summary • Load tests and performance tests are important to ensure the website can handle spikes in traffic smoothly. • Uncover issues that might manifest only under sustained load • It is crucial to make the load test infrastructure and simulated traffic as close to real as possible. • As a precaution, it is still advisable to keep “human components” online during the high-spike period.