Ecommerce Load Test

39
ECOMMERCE V2 STACK LOAD TEST Testing Performance through response time and throughput Stephen Rylander

Transcript of Ecommerce Load Test

Page 1: Ecommerce Load Test

ECOMMERCE V2

STACK

LOAD TESTTesting Performance through response time

and throughput

Stephen Rylander

Page 2: Ecommerce Load Test

Session

• Basis for Load Test

• What is Performance?

• Page Views

• Physical Tiers

• Response Times

• IIS Counters

• Preliminary Findings

Page 3: Ecommerce Load Test

BASIS FOR LOAD TEST

Page 4: Ecommerce Load Test

Purpose

•Generate baseline of site by….

• increasing load on the infrastructure and

application in a…

• Controlled and predictable manner

Page 5: Ecommerce Load Test

Specifics

• The ramp up…

• 4 steps

• 250 ::: 6:14 min

• 500 ::: 8:07 min

• 1000 ::: 8:53 min

• 2000 ::: 11:45 min

Page 6: Ecommerce Load Test

Location

• AlertSite’s cloud based (Amazon Web Services) load test

infrastructure

Page 7: Ecommerce Load Test

Steps

START Home

TLP (team landing)

Dlp (department)

Dlp page 2

Post filter / get filtered dlp

T-shirt (product)

Dlp (t-shirt)

Dlp (bedding)

Pdp bedding set

Add to cart / get View cart

Continue to checkout/get sign in page

Post checkout start/ get address info (guest)

Post address / view payment info

Post payment / view confirmation END

Page 8: Ecommerce Load Test

WHAT IS PERFORMANCE?

Page 9: Ecommerce Load Test

2 ways to measure…

Page 10: Ecommerce Load Test

1 - Throughput

• Throughput

• Requests per second

• Transactions per minute

• Executions per click

Page 11: Ecommerce Load Test

2 - Response

• Response Time

• Duration of a task

• Seconds per click

• Page load

• DNS lookup

• Length of time between <click> and seeing page

Page 12: Ecommerce Load Test

Together

• The system should handle 3M page views an hour with

each page returning in less than 2.5 seconds.

Page 13: Ecommerce Load Test

Thinking about Measurements

Averages

• Casual statistic

• Not bad for short periods

• Heavy variance masked

• Can hurt customer

Percentiles

• Different way of viewing

• Like a standardized test

• “Home page should load

in under 2 seconds for

95% of executions.”

Page 14: Ecommerce Load Test

Our customers

feel the

variance, not

the mean.

GE – Six Sigma

Page 15: Ecommerce Load Test

Shoppers vs. Page Views

• 11/14

• 6PM

• 166,397 page views = 30K visitors/hour (sitetracker)

• 7 PM

• 172,716 page views = 31K visitors/hour (sitetracker)

Shoppers/Visitors is only a business concept

applied to historical averaged user behavior.

It is a predictive tool not a capacity planning

tool.

Page 16: Ecommerce Load Test

PAGE VIEWSThe numbers via throughput

Page 17: Ecommerce Load Test

2000 1000 500 250

per/min 2,560.96 2,267.53 2966.6 1930

per/sec 42.68 37.79 49.443333 32.1667

per/hour 153,657.39 136,051.76 177,996.00 115,800.00

Reported

Page 18: Ecommerce Load Test

2000 1000 500 250

per/min 4,217.48 3,779.29 4948.6 3216.6667

per/sec 70.29 62.99 82.47666667 53.611111

per/hour 253,048.70 226,757.65 296,916.00 193,000.00

Real Feel

This year high: NK /hour

Page 19: Ecommerce Load Test

RESPONSE TIME

Page 20: Ecommerce Load Test

0

5

10

15

20

25

30

35

40

45

50

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

2000 users 7.5 12.2 17.8 20.9 46.2 24.13 23.29 22.3 22.9 47.8 0 11.1 19.4 30.4 14.7

1000 users 4.2 7 9.2 10.1 21.5 9.7 8.5 7.9 7.5 12.8 0 4.6 10.5 10.1 13.8

500 users 3.1 3.8 4.8 5.3 9 4.1 4 3.4 3.2 5.6 0 3.99 7.1 7.5 10.3

250 Users 0.9 1 1.4 1.8 5.7 1.3 1.49 1.2 1.1 1.66 0 0.922 1.02 2.3 8.09

Axis

Tit

le

Average Base Page Response Times

Page 21: Ecommerce Load Test
Page 22: Ecommerce Load Test

Wednesday Nov. 11 ::: 123K page views/hour

Page 23: Ecommerce Load Test

Queuing?

Page 24: Ecommerce Load Test

Queuing?

Page 25: Ecommerce Load Test

Trending over position in test 1

Page 26: Ecommerce Load Test

Trending over position in test 2

Page 27: Ecommerce Load Test

Trending over position in test 3

Page 28: Ecommerce Load Test

WEB COUNTERS

Page 29: Ecommerce Load Test

Req/sec

Reqs

Queued

Reqs/sec: avg. 49; max 117

Queued: avg. 273; max 1138

Page 30: Ecommerce Load Test

Reqs current

Reqs queued

Reqs executing

Page 31: Ecommerce Load Test

SERVERS

Page 32: Ecommerce Load Test

WebTrans02

Page 33: Ecommerce Load Test

WEB02

Page 34: Ecommerce Load Test

TAKE AWAYS

Page 35: Ecommerce Load Test

What we saw

• ~20% load increase over our busiest hour this year

• At peak ~10K orders/hour

• Linear scaling; linear slow down

• Physical server capacity ok

Page 36: Ecommerce Load Test

Concerns

• IIS queuing because of…

• Down stream services

• Payment, inventory, etc

• Connection limits

• SQL connection limits per/pool

• Web server worker thread starvation

Page 37: Ecommerce Load Test

What we’ve been doing

• Adding more web tier capacity

• Splitting more app pools

• Bumping up worker processes in external web services

Page 38: Ecommerce Load Test

Next steps

• Verifying new web tier and services capacity

• Analyzing daily performance monitors

• Investigate downstream connections

Page 39: Ecommerce Load Test

ENDThanks.