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

今日から始める Flood.io / fuka-taisaku-night-01

kikunantoka
February 06, 2019

今日から始める Flood.io / fuka-taisaku-night-01

- ギフティでの負荷対策の重要性
- Flood.io について
- Flood.io の活用
- 30万RPM を耐えるためにやったこと

kikunantoka

February 06, 2019
Tweet

More Decks by kikunantoka

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ about: name: Fumitaka Kikukawa twitter: @kikunantoka job: engineer work_at:

    giftee Inc. // giftee is a good company. url: https://kikunantoka.com
  2. LINEೝূͷύλʔϯ΋ఏڙ HJGUFFΠϯελϯτ΢ΟϯGPS-*/&ͷڧΈᶃ ©2018 gi)ee Inc. all rights reserved J நબ͔Βܠ඼ͷఏڙ·ͰҰؾ௨؏Ͱ͝ఏڙ

    நબγεςϜ ʢΠϯελϯτ΢Οϯʣ σδλϧΪϑτͷఏڙ ʢछྨҎ্ͷܠ඼ʣ ϦΞϧλΠϜʹநબɺ ͦͷ৔Ͱܠ඼Λ෇༩
  3. Flood.io ͱ͸ • Selenium, JMeter ( + ruby-jmeter) , Gatling

    • ޷͖ͳςετπʔϧΛ࢖͏͜ͱ͕Ͱ͖Δ • طʹGatlingͷςετίʔυ͕͋ͬͨͷͰɺGatlingΛ࠾༻
  4. DBͷઃఆΛݟ௚͢ • DB ͷ Pool ਺΍ Puma ͷ Thread ਺ɺWorker

    ਺͸ద੾͔ • DB ͷ Pool ਺ -> Puma ͷεϨου਺ • Puma ͷ Worker ਺ -> CPUͷίΞ਺ • Puma ͷ Thread ਺ -> CPU࢖༻཰ͱ૬ஊ
  5. ࠷৽ͷΠϯελϯελΠϓΛ࢖͏ ໊લ W$16 3". $16ΫϨδοτ࣌ؒ ྉۚ࣌ؒ UTNBMM   

    64% UTNBMM    64% • ίεύ͕ྑ͍ • Puma ͷ Worker ਺Λ 2 ʹͰ͖Δ -> 2ഒͷεϨου਺ • ͨͩ͠ɺAWSଆͰϦιʔε͕଍Γͳ͘ͳΔϦεΫ͕͋Δ
  6. WebαʔόΛཱͯ·͘Ε͹͍͍͍ͬͯ͏࿩Ͱ͸ͳ͍ • db.r4.16xlargeͷ৔߹ • 32 Threads x 2 Workers •

    1୆͋ͨΓ 64 Threads • 6000 / 64 = 93.75 • 92୆͙Β͍͕ݶքʂ