Testing In Production the many flavors
Keith Stobie Doyenz (while at Microsoft)
Copies may not be made or distributed for commercial use
the many flavors Keith Stobie Doyenz (while at Microsoft) Copies - - PowerPoint PPT Presentation
Testing In Production the many flavors Keith Stobie Doyenz (while at Microsoft) Copies may not be made or distributed for commercial use Pre-Requisites (risk reduction) Redundancy state quickly recovered if catastrophic failure,
Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 2 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Image from : http://blogs.msdn.com/b/seliot/archive/2011/06/07/testing-in-production-tip-it-really-happens-and-that-s-a-good-thing.aspx
Testing in Production -- Keith Stobie 3 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 4 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 5 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
% of requests Threshold 50% 100ms 90% 200ms 99% 300ms
Testing in Production -- Keith Stobie 6 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 7 2011-10-10 PNSQC
Image from : http://xunitpatterns.com/Delta%20Assertion.html
Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 8 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 9 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie
User Requests Service Backend service Frontend service Data Data Feed Service Backend service Data Data Feed Productio n Test Production Test
10 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Source: Marketing Experiments http://www.marketingexperiments.com Testing in Production -- Keith Stobie 11 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Visitors Randomly Distributed
50% C T R
Version B is better than Version A
Version A (Control)
1.2% of users with a Page View clicked on Signup 2.8% of users with a Page View clicked on Signup
Version B (Treatment)
50% Is the observed difference statistically significant? C T R YES User interactions instrumented, analyzed and compared
Page Title Signup Here Title of Page Signup Here
Figure courtesy of Seth Elliot from his SASQAG (Seattle Area Software Quality Assurance Group) April 2011 Talk Testing in Production - Your Key to Engaging Customers
Click Thru Rate
Testing in Production -- Keith Stobie 13 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
User Requests Service Backend service Frontend service Data Data Feed Service Production Experiment
Testing in Production -- Keith Stobie 14 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
User Requests Service Backend service Frontend service Data Data Feed Service Production Experiment
Service architected internally to have code paths for different alternate
Testing in Production -- Keith Stobie 15 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
User Requests Service Backend service Frontend service Data Data Feed Production Experiment Data
Sometimes it is just the data, e.g. different ranking values that are being tried.
Testing in Production -- Keith Stobie 16 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Future Environment Production Environment User Requests Service Backend service Frontend service Data Data Feed Service Backend service Data Data Feed
Equally good?
Test Production Next Environ
Testing in Production -- Keith Stobie 17 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
User Requests Service Backend service Frontend service Data Data Feed Production Test replayed Requests
Testing in Production -- Keith Stobie 18 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Controller
DC1
Monitoring system Capacity clients Bing Entry point
VI P
DC3
Monitoring system Capacity clients Bing entry point
VI P
DC2
Monitoring system Capacity clients Bing Entry point
VI P
DC…n
Monitoring system Capacity clients Bing entry point
VI P
From: Greg Veith – Workshop on Performance & Reliability 2010 (WOPR14)
Testing in Production -- Keith Stobie 19
utilization
2011-10-10 PNSQC Copies may not be made or distributed for commercial use
User Requests Service Backend service Frontend service Data Data Feed Production Test Data Feed Test Requests
Testing in Production -- Keith Stobie 20 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie
Product Catalog
product when users queries for it?
reviews when users queries for it?
product contains matched offer and review information? Product Authority Product Data Merchant Offers Self Service Portal Product Matching Aggregator User Serving Crawl Pipeline Test Test Review Test Offer Test Product Test Review in Feed? Offers & Reviews matched to Products? Offers & Reviews counts correct? Test Product in Feed? Production Test Offer in Feed?
21 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Data corruption Network latency
Testing in Production -- Keith Stobie
User Requests Service Backend service Frontend service Data Data Feed Productio n Test Production Test
2011-10-10 PNSQC
Service Loss of Service (or machine or … ) Loss of Service (or machine or … )
Image from : http://behance.vo.llnwd.net/profiles/78972/projects/114549/789721221731305.jpg
Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 23 2011-10-10 PNSQC Copies may not be made or distributed for commercial use
Testing in Production -- Keith Stobie 24 2011-10-10 PNSQC Copies may not be made or distributed for commercial use