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

アクセス頻度予測を用いてサーバーリソースの増減を行う「計画的スケーリング」 / pepabo_tech_conference_10

Ryo Takaishi
November 08, 2017

アクセス頻度予測を用いてサーバーリソースの増減を行う「計画的スケーリング」 / pepabo_tech_conference_10

第10回ペパボテックカンファレンス~インフラエンジニアがもっとおもしろくできる!~
https://pepabo.connpass.com/event/69866/

Ryo Takaishi

November 08, 2017
Tweet

More Decks by Ryo Takaishi

Other Decks in Technology

Transcript

  1. ∁ੴྒ(.01FQBCP *OD
    ୈճϖύϘςοΫΧϯϑΝϨϯε
    ΞΫηεස౓༧ଌΛ༻͍ͯ
    αʔόʔϦιʔεͷ૿ݮΛߦ͏
    ʮܭըతεέʔϦϯάʯ

    View full-size slide

  2. ΤϯδχΞ
    ∁ੴྒ!S@UBLBJTIJ
    ٕज़෦Πϯϑϥάϧʔϓ
    IUUQTSFQMJOGP

    View full-size slide

  3. ࠷ۙͷ׆ಈ

    View full-size slide

  4. ࣸਅలΛ΍Γ·͢ʂ
    w Ր
    ʙ ೔


    wौ୩ΪϟϥϦʔϧσί

    View full-size slide

  5. ໨࣍
    ՝୊ͱղܾํ๏
    ઃܭ
    ධՁ
    ՝୊ͳͲ
    ·ͱΊ

    View full-size slide

  6. ࡞඼਺ສ఺
    ొ࿥࡞Ո਺ສਓ

    View full-size slide

  7. XXXαʔό୆

    View full-size slide

  8. εέʔϧΞ΢τͷΞʔΩςΫνϟ
    XXX
    XXX
    XXX
    XXX
    XXX
    XXX
    XXX
    XXX
    XXX
    MC
    XXX
    OHJOYDPOTVMUFNQMBUF IBLBUBOZBIMBVODIa
    ŠBWBJMBCJMJUZ@[POFOZBIBa
    ŠDPVOU
    IBLBUBOZBITDBMFa
    ŠDPVOU

    View full-size slide

  9. ΞʔΩςΫνϟ·ͱΊ
    wNJOOF͸ؾܰʹεέʔϧͰ͖Δ؀ڥ
    w೔ʑͷϐʔΫλΠϜ΍57์ૹʹ͋Θͤͯεέʔϧ
    wʮଟΊʹΠϯελϯε༻ҙ͓͖ͯ͠·͠ΐ͏ʙʯ
    wͱͯ΋ศར

    View full-size slide

  10. ͕ͩɺ͔͠͠ʜ

    View full-size slide

  11. ࣌ؒଳʹΑͬͯ༨৒Ϧιʔε͕ൃੜ͢Δ

    View full-size slide

  12. Ϧιʔε࠷దԽ
    wͦͷ࣌఺ͷෛՙΛࡹ͚Δ࠷దͳϦιʔεྔʹ͍ͨ͠
    wෛՙΛݕ஌͔ͯ͠ΒͰ͸ؒʹ߹Θͳ͍
    wࣄલʹϦιʔεΛ༻ҙ͓͚ͯ͠͹ʜʁ
    w͕ɺ࠷దͳΠϯελϯε୆਺͕ෆ໌

    View full-size slide

  13. ϖύϘݚڀॴһʹΑΔ
    ఏҊख๏

    View full-size slide

  14. ΞΫηεස౓༧ଌʹجͮ͘Ծ૝αʔό
    ͷܭըతΦʔτεέʔϦϯά

    View full-size slide

  15. IUUQTSBOEQFQBCPDPNBSUJDMFJPUNJZBLFZ

    View full-size slide

  16. Ͳ͏͍͏΋ͷ͔
    wΞΫηεස౓͕෼͔Ε͹ඞཁͳϦιʔε΋Θ͔Δ
    w͜Ε·ͰूΊ͖ͯͨΞΫηεϩάΛ׆༻
    w-45.ɿ௕ظؒͷ࣌ܥྻσʔλʹڧ͍
    wฏ೔ɾٳ೔ͷҧ͍ͱ͍ͬͨෆఆظͳཁҼʹ΋ରԠ

    View full-size slide

  17. ՝୊ɿ·ͱΊ
    wϐʔΫλΠϜΛج४ͱͯ͠ϦιʔεΛఏڙ͢ΔͱϦιʔ
    εա৒ͱͳΔ࣌ؒଳ͕ൃੜ͢Δ
    wෛՙʹԠͨ͡ద੾ͳϦιʔεڙڅΛߦ͍ɺ࠷దԽΛਤ
    Γ͍ͨ
    wΞΫηεϩά͔ΒΞΫηεස౓Λ༧ଌ͠ɺϦιʔεڙ
    څͷࢦඪͱ͢Δ

    View full-size slide

  18. ඞཁͳίϯϙʔωϯτ͸Կ͔ʁ
    ΞΫηεස౓༧ଌ܅ 4JEFLJR

    αʔόʔ୆਺ܭࢉɾ૿ݮ܅ IBLBUB$-*UPPM

    View full-size slide

  19. ͜Ε͕ܭըతεέʔϧͷߏ੒ͩʂ
    DSPO
    3FEJT
    ΞΫηεස౓༧ଌ܅
    4JEFLJR

    /ZBI&OEQPJOU
    ༧ଌΞΫηε਺ͷऔಘ
    ఆظ࣮ߦ
    αʔόʔ୆਺ܭࢉɾ૿ݮ܅
    IBLBUB

    ඞཁαʔόʔ୆਺Λܭࢉɾ૿ݮ
    ༧૝ΞΫηεස౓Λอଘ

    View full-size slide

  20. ܭըతεέʔϧͷྲྀΕ
    ࣌ ࣌
    ຖ೔࣌ա͗ɿظ෼ͷΞΫηε਺Λ༧ଌ
    ࣌ ࣌ ࣌ ࣌ʜ
    ຖ࣌෼ࠒɿ
    ࣍ͷ࣌ؒͷΞΫηεස౓༧ଌσʔλΛऔಘ
    ඞཁͳαʔόʔ୆਺Λܭࢉ͠ɺ૿ݮΛ࣮ࢪ

    View full-size slide

  21. ඞཁαʔόʔ਺ͷܭࢉ
    w༧ଌΞΫηεස౓Λϕʔεͱ͢Δ
    wαʔόʔ͕ҰఆͷεϧʔϓοτΛҡ࣋Ͱ͖ΔΑ͏ͳ୆਺ʹ͍ͨ͠
    wεϧʔϓοτظ଴஋ɺࠓճ͸/FX3FMJDͷ਺஋ͱܦݧଇ͔ΒٻΊͨ
    ඞཁ୆਺༧ଌΞΫηεස౓εϧʔϓοτظ଴஋

    View full-size slide

  22. αʔόʔ਺ܭࢉͷྫ
    w༧ଌΞΫηεස౓ɿ ϦΫΤετ࣌
    wεϧʔϓοτظ଴஋ɿ SQN
    ඞཁ୆਺༧ଌΞΫηεස౓εϧʔϓοτ஋


    View full-size slide

  23. ઃܭ·ͱΊ
    wΞΫηεස౓༧ଌɺඞཁϦιʔεྔܭࢉɾ૿ݮͷ͕ͭඞཁ
    wΞΫηεස౓༧ଌ͸೔ʹճ
    wϦιʔε૿ݮͷλΠϛϯά͸࣌ؒʹճ
    wϦιʔεྔܭࢉ͸༧ଌ஋ͱεϧʔϓοτظ଴஋Λݩʹܭࢉ

    View full-size slide

  24. ಈ͔ͯ͠Έͨ

    View full-size slide

  25. ͪΌΜͱಈ͍ͨ

    View full-size slide

  26. XXXαʔόʔͷDQVVTFS
    ܭըతεέʔϧɿແޮ
    ܭըతεέʔϧɿ༗ޮ

    View full-size slide

  27. XXXαʔόʔͷDQVVTFS
    ܭըతεέʔϧɿແޮ
    ܭըతεέʔϧɿ༗ޮ

    View full-size slide

  28. XXXαʔόʔ୆਺ͷભҠ
    ܭըతεέʔϧɿແޮ ܭըతεέʔϧɿ༗ޮ

    View full-size slide

  29. αʔόʔͷՔಇίετ͕ʹʂ

    View full-size slide

  30. ࢼݧӡ༻·ͱΊ
    w͓͓ΉͶ͏·͍ͬͨ͘
    wεέʔϧ͠ͳ͍৔߹ʹൺ΂ɺෛՙ͕ۉ౳ʹͳΔ͜ͱ͕
    ֬ೝͰ͖ͨ
    wՔಇίετ͕ʹͳΔ͜ͱΛ֬ೝͰ͖ͨ

    View full-size slide

  31. ͚ͬ͜͏͍͍ײ͡ʹಈ͍͕ͨʜ

    View full-size slide

  32. ͍͔ͭ͘՝୊΋

    View full-size slide

  33. ՝୊
    ༧ଌͷਫ਼౓௿ԼʹΑΔϦιʔεෆ଍
    εέʔϧͷ߹ؒʹෛՙ͕૿͑ͨ৔߹ͷରԠ

    View full-size slide

  34. ༧ଌͷਫ਼౓௿ԼʹΑΔϦιʔε͕ෆ଍
    w༧ଌ΋εέʔϧ΋ಈ࡞͍ͯ͠Δ
    w͔͠͠ɺ࣌ʑϦιʔεෆ଍ʹͳΔɻͳͥͩΖ͏ʁ
    wˠ༧ଌਫ਼౓͕௿Լ͍ͯͨ͠

    View full-size slide

  35. ղܾࡦɾڭ܇
    wղܾࡦ
    wϞσϧΛ࠶ੜ੒͢Δ͜ͱͰਫ਼౓Λ໭͢͜ͱ͕Ͱ͖ͨ
    wڭ܇
    wϞσϧͷ࠷దԽ͸ఆظతʹߦ͏ඞཁ͕͋Γͦ͏

    View full-size slide

  36. εέʔϧͷ߹ؒʹෛՙ্͕ঢ
    wεέʔϧ͸࣌ؒຖʹ࣮ࢪ
    w࣌ؒͷؒʹঃʑʹΞΫηε͕૿͑Δ
    wඍົʹϦιʔε͕଍Γͳ͘ͳΓΞϥʔτʹʜ

    View full-size slide

  37. ղܾࡦʢҊʣ
    wෛՙʹԠͨ͡Φʔτεέʔϧ΋૊Έ߹ΘͤΔ
    wࡉཻ͔͍౓ʢ෼ͳͲʣͰ༧ଌɾεέʔϧ͢Δ

    View full-size slide

  38. ·ͱΊ
    wΞΫηεස౓༧ଌΛ༻͍Φʔτεέʔϧ
    wϖύݚͱ࿈ܞɾ෼୲͠ɺ࣮ݱ
    wࢼݧӡ༻͠ɺ૝ఆ௨Γʹεέʔϧ͢Δ͜ͱΛ֬ೝ
    wࢼͯ͠Έͯ՝୊΋໌Β͔ʹ

    View full-size slide

  39. Α͔ͬͨ͜ͱ
    wϖύݚͱ࿈ܞ͠ɺ৽ٕज़ͷ׆༻ΛࢼΈΔ͜ͱ͕Ͱ͖ͨ
    wΦʔτεέʔϧΛߦ͏ࡍʹ஫ҙ͢΂͖఺Λ஌Εͨ

    View full-size slide

  40. ࢓ֻ͚͕͏·͘ಈ͘ͷ͸ָ͍͠ʂʂ

    View full-size slide

  41. ࠓޙʹ͍ͭͯ
    wਫ਼౓޲্ ༧ଌϞσϧɺεϧʔϓοτظ଴஋ʣ
    wෛՙΛىҼͱ͢ΔΦʔτεέʔϧͱͷ࿈ܞ
    wఆظ࣮ߦϞσϧͷ࠶ݕ౼
    wͳͲͳͲ

    View full-size slide

  42. ࠷ޙʹ֮͑ͯؼͬͯ΄͍͜͠ͱ

    View full-size slide

  43. ࣸਅలΛ΍Γ·͢ʂ
    w Ր
    ʙ ೔


    wौ୩ΪϟϥϦʔϧσί

    View full-size slide

  44. ͜Ε΋͋Δ͚Ͳ΍ͬͺΓʂ

    View full-size slide

  45. We are hiring!
    ϖύΧϨظੜืूதʂˠ !QC@SFDSVJU

    View full-size slide