Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Devour The Cloud With Locust Swarms - Hands On Load Testing
Search
stevenjackson
January 09, 2018
Technology
0
54
Devour The Cloud With Locust Swarms - Hands On Load Testing
Given at CodeMash 2.0.1.8
stevenjackson
January 09, 2018
Tweet
Share
More Decks by stevenjackson
See All by stevenjackson
Death By Specification
stevenjackson
1
23
Looking for Failure
stevenjackson
0
94
Better Software Through Shared Understanding
stevenjackson
0
110
Going to Eleven
stevenjackson
0
51
A Locust Storm Is A Good Thing!
stevenjackson
0
100
Lambda Image Resizing
stevenjackson
0
62
Faliing Your Way To Success
stevenjackson
0
72
Death By Specification(cukeup)
stevenjackson
0
110
Failure Lightning Talk
stevenjackson
0
93
Other Decks in Technology
See All in Technology
2024/4/26 コンピュータ歴史博物館解説告知
toshi_atsumi
0
200
PHPカンファレンス小田原2024
ysknsid25
3
660
「ふりかえりのふりかえり」をふりかえり、実のあるふりかえりにする
naitosatoshi
0
220
プロトタイピングによる不確実性の低減 / Reducing Uncertainty through Prototyping
ohbarye
3
240
Janus
bkuhlmann
1
490
入社後初めてのタスクでk8sアップグレードした話.pdf
kkato1
1
380
o11y入門_外形監視を利用したWebアプリケーションへの最適なモニタリング_TechBrew
k5k
3
100
Algyan イベント振り返り
linyixian
0
190
アプリがつくるNOT A HOTELブランド
hokuts
1
450
レガシーをぶっ壊せ。AEONで始めるDevRelの話 / Qiita Night 2024-2-22
aeonpeople
3
150
「共通基盤」を超えよ! 今、Platform Engineeringに取り組むべき理由
jacopen
25
5.8k
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
8
1.9k
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
318
37k
Building Applications with DynamoDB
mza
88
5.6k
Side Projects
sachag
451
41k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
For a Future-Friendly Web
brad_frost
171
8.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
15
1.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
29
46k
Building a Modern Day E-commerce SEO Strategy
aleyda
16
6.4k
GitHub's CSS Performance
jonrohan
1023
450k
The Language of Interfaces
destraynor
151
23k
What the flash - Photography Introduction
edds
64
11k
Transcript
Devour the Cloud Do you have an AWS Account?
nick @stevejxsn @nickbarendt # codemash #devour-the-cloud
[email protected]
[email protected]
Nick Barendt
Steve Jackson
None
Setup AMIs http://bit.do/devour-aws
AMIs Saleor Locust ami-da98c7a0 ami-a59bc4df You can also search for
“CM2018”
If you leave early…. Remember to stop/terminate your AWS instances!
Explore Saleor (our system under test today)
What is Load Testing?
It’s often pictured this way...
None
Load Testing simulates the experience of “many” concurrent users What
is Load Testing?
Load Testing is not about optimizing the per user experience
Most test tools are bad at Assets Javascript
None
None
None
Needing load testing is a good problem
It’s not hard…. Resource Planning Performance Regressions Architecture Changes
Ok, so what are we focusing on?
Key Question: How many users can I have on my
site before things break?
Key Question: How many users can I add before performance
becomes unacceptable?
None
None
Close Enough
None
It’s About Tradeoffs
None
Why Locust?
Simple When will this endpoint fall over?
Record/Playback Easy to get Started
Programmatic Simple -> Complex
DSL
Scales Horizontally
Scales Horizontally
None
Simple Web UI
None
User Signup http://bit.do/devour-signup
Buy! http://bit.do/devour-buy
User Funnel
None
None
None
None
100% Returning Users (20%) Find Cart Buy 80% 75%
25% 100% New Users (80%) Visit Cart Buy 97% 50%
Find
25% 100% User Funnel Visit Cart Buy 97% 50% Find
100% Find Cart Buy 80% 75% New 80% Old 20%
Weigh Tasks http://bit.do/devour-funnel
Find a Baseline
None
Identify Bottleneck
None
None
?
None
Saleor Architecture
Eliminate Bottleneck
Database Laziness Index Connection Pooling
Caching
Async
Current Architecture
Architecture with Caching
View Caching http://bit.do/devour-caching
Find new Baseline
Next Steps Choose Your Own Adventure http://bit.do/devour-advanced
Thanks! REMEMBER TO SHUT DOWN YOUR MACHINES! @stevejxsn @nickbarendt