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

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

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

Kenichi Takahashi

May 25, 2015
Tweet

More Decks by Kenichi Takahashi

Other Decks in Technology

Transcript

  1. GMO Pepabo, Inc.
    TAKAHASHI Kenichi
    2015/05/25 Testing Casual Talks #2
    &$αʔϏεͷ
    ෛՙςετͷཪଆ

    View full-size slide

  2. 넝堀⨳♧!LFODIBO
    (.0لػن吳䒭⠓爡
    䪮遭鿇䪮遭㛇湍ث٦ي
    IUUQTIVDSFBNOFU

    View full-size slide

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

    View full-size slide

  4. ෛՙςετ΍Δͧ

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  8. (BUMJOHͷϨϙʔτ

    View full-size slide

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

    View full-size slide

  10. ΋͏গ͠஌Γ͍ͨ
    ෼෍Λৄ͘͠ݟ͍ͨ
    ࣮ࡍͷόϥπΩ
    ϊΠζ͕ͳ͍͔
    ࣌ܥྻͷσʔλ͕ݟ͍ͨ
    ϦΫΤετ։࢝࣌ͱॲཧ࣌ؒͷ૬ؔ
    .JOɺ.BYͷ܏޲͕ͳ͍͔

    View full-size slide

  11. 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։࢝

    View full-size slide

  12. 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ͷ
    γεςϜϩά΋͸͍ͬͯΔ

    View full-size slide

  13. γεςϜϩάΛ࡟আ͢Δ
    ࡶͳϫϯϥΠφʔ
    γεςϜϩάͱແବͳλϒΛ࡟আ
    egrep -v "RUN|USER" simulation.log \
    | ruby -pe 'gsub(/[\t ]*$/, "")' \
    | ruby -pe 'gsub(/\t+/, "\t")' > simulation.tsv

    View full-size slide

  14. (PPHMF%PDTʹJNQPSU

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide