ECサービスの負荷テストの裏側 / performance-testing-and-analysis

ECサービスの負荷テストの裏側 / performance-testing-and-analysis

676954675cda206b7baae939a82a8ef4?s=128

Kenichi Takahashi

May 25, 2015
Tweet

Transcript

  1. GMO Pepabo, Inc. TAKAHASHI Kenichi 2015/05/25 Testing Casual Talks #2

    &$αʔϏεͷ ෛՙςετͷཪଆ
  2. 넝堀⨳♧!LFODIBO (.0لػن吳䒭⠓爡 䪮遭鿇䪮遭㛇湍ث٦ي IUUQTIVDSFBNOFU

  3. ·ͱΊ  (BUMJOH IUUQHBUMJOHJP ͷϨ ϙʔτͰ͸ෆ଍͍ͯͨ࣌͠ܥྻͷࢄ ෍ਤΛ࡞੒͢Δ࢓૊ΈΛ࡞ΓɺΞϓ Ϧέʔγϣϯͷಛੑͷ೺Ѳͱɺଥ౰ ͳΞΫηεύλʔϯͷ࡞੒ʹ໾ཱͯ Δ͜ͱ͕Ͱ͖ͨͷͰ঺հ͠·͢ɻ

  4. None
  5. None
  6. ෛՙςετ΍Δͧ

  7. ॳΊͯ ෛՙςετ΍Δͧ

  8. ॳΊͯͷෛՙςετ  ࣮ࢪܭըͷཱҊ  ؀ڥͷ༻ҙ  ଥ౰ͳγφϦΦͷ࡞੒  σʔλͷऩूͱ෼ੳͷ࢓૊Έ࡞Γ 

    FUDʜ
  9. ॳΊͯͷෛՙςετ  ࣮ࢪܭըͷཱҊ  ؀ڥͷ༻ҙ  ଥ౰ͳγφϦΦͷ࡞੒  σʔλͷऩूͱ෼ੳͷ࢓૊Έ࡞Γ 

    FUDʜ
  10. (BUMJOHͷϨϙʔτ

  11. Ϩϙʔτ͔Βݟ͑Δ΋ͷ  ϦΫΤετͷ੒൱ͱׂ߹  ࠷େ࠷খɺฏۉɺඪ४ภࠩ  ɺύʔηϯλΠϧ  શମͷͷϦΫΤετ͕׬͍ྃͯ͠Δඵ਺

  12. ΋͏গ͠஌Γ͍ͨ  ෼෍Λৄ͘͠ݟ͍ͨ  ࣮ࡍͷόϥπΩ  ϊΠζ͕ͳ͍͔  ࣌ܥྻͷσʔλ͕ݟ͍ͨ 

    ϦΫΤετ։࢝࣌ͱॲཧ࣌ؒͷ૬ؔ  .JOɺ.BYͷ܏޲͕ͳ͍͔
  13. TJNVMBUJPOMPH UTW TFDVSF1VSDIBTF4JNVMBUJPOQVSDIBTFTJNVMBUJPO 36/    3FDPSEFE4JNVMBUJPO 64&3 45"35

      3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  KRVFSZNJOKT    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ໊લ Ϣʔβ*% ϥϕϧ 3FR։࢝ 3FRऴྃ 3FTऴྃ 3FT։࢝
  14. TJNVMBUJPOMPH UTW TFDVSF1VSDIBTF4JNVMBUJPOQVSDIBTFTJNVMBUJPO 36/    3FDPSEFE4JNVMBUJPO 64&3 45"35

      3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 64&3 45"35   3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  @TIPX@QSPEVDU     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ʜ    0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  QSPEVDU@TUPDLKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  DBSUKT     0,  3FDPSEFE4JNVMBUJPO 3&26&45  KRVFSZNJOKT    0,  3FDPSEFE4JNVMBUJPO 3&26&45  MJQIQ ໊લ Ϣʔβ*% ϥϕϧ 3FR։࢝ 3FRऴྃ 3FTऴྃ 3FT։࢝ (BUMJOHͷ γεςϜϩά΋͸͍ͬͯΔ
  15. γεςϜϩάΛ࡟আ͢Δ  ࡶͳϫϯϥΠφʔ  γεςϜϩάͱແବͳλϒΛ࡟আ egrep -v "RUN|USER" simulation.log \

    | ruby -pe 'gsub(/[\t ]*$/, "")' \ | ruby -pe 'gsub(/\t+/, "\t")' > simulation.tsv
  16. (PPHMF%PDTʹJNQPSU

  17. ՄࢹԽ

  18. Θ͔͖ͬͯͨ͜ͱ  ࠷খ஋͸࠷ޙͰαʔόͷෛՙ͕Լͬ ͖ͯͨͱ͖ʹग़͍ͯΔ  ॠؒతͳෛՙΑΓ΋ܧଓతʹϢʔβ ͕དྷΔγφϦΦ͕༗ޮͦ͏  (PPHMF%PDT͸ສߦ͘Β͍ͷ547 ΛೖΕͯ΋େৎ෉

    ΋ͬ͞Γ͸͢Δ
  19. ෼ੳ݁Ռͷ׆༻  ΞϓϦέʔγϣϯͷಛੑͷ೺Ѳ  Ͳ͏͍͏ෛՙʹऑ͍ͷ͔ͱ͍͏ԾઆཱҊ  ύϑΥʔϚϯενϡʔχϯάͷ໨ඪमਖ਼  ౰ॳ͸ॠؒతͳΞΫηεΛ໨ඪʹ͍ͯͨ͠ 

    ςετγφϦΦͷमਖ਼  ܧଓతͳΞΫηεΛ͢Δύλʔϯʹमਖ਼
  20. ·ͱΊ  (BUMJOH IUUQHBUMJOHJP ͷϨ ϙʔτͰ͸ෆ଍͍ͯͨ࣌͠ܥྻͷࢄ ෍ਤΛ࡞੒͢Δ࢓૊ΈΛ࡞ΓɺΞϓ Ϧέʔγϣϯͷಛੑͷ೺Ѳͱɺଥ౰ ͳΞΫηεύλʔϯͷ࡞੒ʹ໾ཱͯ Δ͜ͱ͕Ͱ͖ͨͷͰ঺հ͠·ͨ͠ɻ