Upgrade to Pro — share decks privately, control downloads, hide ads and more …

サーバレス時代の負荷テスト戦略 / Load testing strategy for se...

Avatar for geeawa geeawa
January 22, 2020

サーバレス時代の負荷テスト戦略 / Load testing strategy for serverless

Avatar for geeawa

geeawa

January 22, 2020

More Decks by geeawa

Other Decks in Technology

Transcript

  1. App

  2. App EC2 r4.large × 1 ApachBench $ ab -n 100

    -c 10 http://example.com
  3. EC2 EC2 EC2 EC2 EC2 EC2 EC2 EC2 EC2 EC2

    EC2 EC2 EC2 EC2 App r4.large × 15 Master
  4. install deploy invoke remove serverless-artillery $ npm install -g serverless-artillery

    $ slsart deploy —stage dev $ slsart invoke —stage dev $ slsart remove
  5. App ⚡Serverless Artillery⚡ get /todos get /todos/{{ id }} put

    /todos/{{ id }} post /todos/{{ id }} delete /todos/{{ id }} TODOリスト アプリケーション https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb-and-offline
  6. Lambda (cron) GetServiceGraph API Slack AWS X-Ray ALERT 監視 Response

    time 4xx (error) 429 (throttling) 5xx (failure)