Enviar pesquisa
Carregar
負荷テストについて
•
1 gostou
•
1,815 visualizações
Takahiro Ishida
Seguir
2016年8月17日に開催されたskill wednesdayの時に発表した資料です。
Leia menos
Leia mais
Engenharia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 25
Baixar agora
Baixar para ler offline
Recomendados
なんとかStormに負けたくないEmacs初級篇
なんとかStormに負けたくないEmacs初級篇
Kenta USAMI
5分でわかる静的解析入門
5分でわかる静的解析入門
Kenta USAMI
Predefを使ったsqlのトレース
Predefを使ったsqlのトレース
悠滋 山本
Emacsを使ってrubyのwebアプリを作って見た!!
Emacsを使ってrubyのwebアプリを作って見た!!
Ueki Kouji
H2O and php
H2O and php
Junichi Ishida
Biglt endered-2021-12-11
Biglt endered-2021-12-11
ssuserc8477f
CgiSecure
CgiSecure
Net Kanayan
Js async
Js async
Shunji Makino
Recomendados
なんとかStormに負けたくないEmacs初級篇
なんとかStormに負けたくないEmacs初級篇
Kenta USAMI
5分でわかる静的解析入門
5分でわかる静的解析入門
Kenta USAMI
Predefを使ったsqlのトレース
Predefを使ったsqlのトレース
悠滋 山本
Emacsを使ってrubyのwebアプリを作って見た!!
Emacsを使ってrubyのwebアプリを作って見た!!
Ueki Kouji
H2O and php
H2O and php
Junichi Ishida
Biglt endered-2021-12-11
Biglt endered-2021-12-11
ssuserc8477f
CgiSecure
CgiSecure
Net Kanayan
Js async
Js async
Shunji Makino
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Mais conteúdo relacionado
Destaque
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Destaque
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
負荷テストについて
1.
負荷テストについて skill wednesday 2016.8.17
2.
自己紹介 なまえ: 石田尭大 おしごと: サーバーサイド 好きなもの:
酒, 音楽 好きな言語: Ruby, Python, PHP etc… (まあ何か動的なやつ) (でもelixirいいよね。 最近全然書いてないけど)
3.
負荷テストについて ※HTTP APIを中心に話します
4.
…そもそも何で負荷テストをするの?
5.
Web(に限らずですが)アプリケーションが直面する問題 ・運用開始したは良いけれども、思うような性能が出ていない (大してユーザー居ないのに全然アクセス捌けない!!!) ・ユーザーが順調に集まって開始早々サーバーがヒーヒー言っている (性能上限が分かっていなかった!)
6.
チューニングの必要性のため つまるところ…
7.
最終的にはこのようなサイクルを回したい テストの実施 ボトルネックを推測 改善施策を実施
8.
でも負荷テストって何すればいいんだ?
9.
そもそも負荷テストにはどのような種類があるのか 基礎テスト : システムの負荷特性を調べるための基本的なテスト ストレステスト
: システムの限界値を探るためのテスト ピークロードテスト : 高負荷時を想定したテスト スパイクテスト : メディア露出など、瞬間的なアクセス発生と発生後を想定したテスト 耐久テスト : 長時間の稼働を想定したテスト
10.
知りたいことはなんだろう
11.
負荷テストを行う上で最低限知りたい事 スループット : 単位時間あたりに処理出来るデータ量 レスポンスタイム
: 処理要求に対してシステムが応答するまでに掛かる時間 リソース使用量 : メモリ・CPU・ネットワーク使用量
12.
こんな感じの図で表現したい
13.
この図を得るため以下を実施 5分間、エンドポイントに対して、リクエストを発生させて負荷を掛ける このテストを10クライアントずつ数を変化させて、グラフを生成するのに必要な分計測を 実施 基礎テスト+ストレステストのような感じ
14.
テストするAPIを選別 本来は全てやるべきであるが、 コードと設計書から重要なAPIを選別してテスト対象に
15.
計測に使用したツール cURL dstat (pm2-interface) テストツール。pythonでシナリオ作成可能 レスポンスタイムをlogに出力するために使用。 リソース使用量をlogに出力するために使用。 プロセス自体のリソース使用量を logに出力するために使用。 計測自体はスクリプトを書いて、半自動実行できるように
16.
データを整理して図が得られた!
17.
ここで結果をダラダラ並べても面白くはないので…
18.
ボトルネックについて考えてみる
19.
ボトルネックと言っても多岐に渡る DBネック ネットワークネック CPUネック ディスクネック(I/Oネック) etc...
20.
どこが問題なのか切り分ける DBのCPU Utilizationが高騰していないか SQL実行数が予想以上に多くないか 不要なデーター読み出しをしていないか キャッシュを利用出来ているか
21.
ここの部分で何が起きているか考える ※GETパラメータに応じてデーターを DBから持ってきてJSONにして返す処理
22.
問題の切り分け RDSのCPU Utilizationは最大でも11% Network Trafficも20Mbps程度 APサーバー内部で、ディスクに書くような処理は無い (dstatで見てもioの読み書きは発生していない) APサーバーのCPU
Utilizationが50% CPUネックの疑いが大!!!
23.
CPUネックと分かったら サーバー側コードでの該当部分を見る 処理内容精査 冗長な部分が有れば修正 これ以上修正出来なければサーバーの 台数を増やせないか検討 再度負荷テスト
24.
結論 ・ボトルネックの箇所は処理内容で全然異なる ・吐き出されるログが全て物語っているので、頭を回して読み取る
25.
ご清聴ありがとうございました
Baixar agora