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

機械学習でサーバの負荷状態を把握したい

tsurubee
March 22, 2019

 機械学習でサーバの負荷状態を把握したい

tsurubee

March 22, 2019
Tweet

More Decks by tsurubee

Other Decks in Technology

Transcript

  1. !UTVSVCFF(.01FQBCP *OD
    )PTUJOH$BTVBM5BMLT
    ػցֶशͰαʔόͷ
    ෛՙঢ়ଶΛ೺Ѳ͍ͨ͠

    View full-size slide

  2. ࣗݾ঺հ
    (.0ϖύϘגࣜձࣾ
    ϗεςΟϯάࣄۀ෦
    ΠϯϑϥνʔϜ
    !UTVSVCFF

    View full-size slide

  3. ࠓ೔࿩͢͜ͱ
    wʮΠϯϑϥºσʔλαΠΤϯεʯʹ͍ͭͯ͜Μͳ͜ͱ

    Ͱ͖Δͱ໘നͦ͏ͩͳʔͱࢲ͕ߟ͍͑ͯΔ͜ͱ
    wࠓճ͸αʔό؂ࢹʹয఺Λ౰ͯͯ࿩͠·͢

    View full-size slide

  4. wΠϯϑϥͷݱ৔ʹ͸೔ʑେྔͷσʔλ͕ྲྀΕ͍ͯΔ
    wσʔλΛߴղ૾౓Ͱऔಘɾ஝ੵͰ͖Δ؀ڥ͕੔͖͍ͬͯͯΔ
    ʢ1SPNFUIFVTɺ,BGLBͳͲʣ
    wσʔλ͸஝ੵ͢Δ͚ͩͰ͸ͳ͘׆༻͍ͨ͠
    w஝ੵͨ͠େྔͷσʔλʹػցֶशΛద༻Ͱ͖Ε͹ɺ৽ͨͳ

    ஌ࣝൃݟʹܨ͕ΓՁ஋Λ૑଄Ͱ͖ΔͷͰ͸ͳ͍͔

    എܠɿҰൠ࿦

    View full-size slide

  5. wϗεςΟϯάαʔό͸ҟৗ͕ൃੜ͠΍͍͢ˍ੍ޚͮ͠Β͍
    wߴूੵͷڞ༻αʔό
    wαʔό্Ͱಈ࡞͢ΔίϯςϯπΛ؅ཧͰ͖ͳ͍
    wϢʔβ͸αʔόΛબ΂ͳ͍ͨΊɺՄೳͳݶΓฏ౳ʹշదͳ

    αʔό؀ڥΛఏڙ͍ͨ͠
    എܠɿϨϯλϧαʔόʢ-PMJQPQ)FUFNMʣ

    View full-size slide

  6. wϗεςΟϯάαʔό͸ҟৗ͕ൃੜ͠΍͍͢ˍ੍ޚͮ͠Β͍
    wߴूੵͷڞ༻αʔό
    wαʔό্Ͱಈ࡞͢ΔίϯςϯπΛ؅ཧͰ͖ͳ͍
    wϢʔβ͸αʔόΛબ΂ͳ͍ͨΊɺՄೳͳݶΓฏ౳ʹշదͳ

    αʔό؀ڥΛఏڙ͍ͨ͠
    എܠɿϨϯλϧαʔόʢ-PMJQPQ)FUFNMʣ
    αʔόͷঢ়ଶΛਫ਼៛ʹ೺Ѳ੍ͯ͠ޚ͍ͨ͠

    View full-size slide

  7. wϗεςΟϯάαʔό͸ҟৗ͕ൃੜ͠΍͍͢ˍ੍ޚͮ͠Β͍
    wߴूੵͷڞ༻αʔό
    wαʔό্Ͱಈ࡞͢ΔίϯςϯπΛ؅ཧͰ͖ͳ͍
    wϢʔβ͸αʔόΛબ΂ͳ͍ͨΊɺՄೳͳݶΓฏ౳ʹշదͳ

    αʔό؀ڥΛఏڙ͍ͨ͠
    എܠɿϨϯλϧαʔόʢ-PMJQPQ)FUFNMʣ
    αʔόͷঢ়ଶΛਫ਼៛ʹ೺Ѳ੍ͯ͠ޚ͍ͨ͠
    ػցֶशʹΑΔ
    Ξϓϩʔν͕༗ޮ

    View full-size slide

  8. wαʔόͷϦιʔε࢖༻ঢ়گ΍ϩάͳͲͷ؂ࢹର৅ͷϝτϦ
    Ϋε͝ͱʹᮢ஋Λઃఆ͠ɺͦͷᮢ஋Λ্ճΔ৔߹ʹΞϥʔτ
    Λൃใ͢Δʮᮢ஋ϕʔεͷ؂ࢹʯ͕Ұൠత
    αʔό؂ࢹͷݱঢ়
    $16࢖༻཰
    ࣌ؒ
    ᮢ஋
    ΞϥʔτΛൃใ

    View full-size slide

  9. ݱঢ়Λ೺Ѳ্ͨ͠Ͱ
    ඞͣߟ͑ͳ͚Ε͹ͳΒͳ͍
    ͜ͱ͕͋Δ

    View full-size slide

  10. ຊ౰ʹػցֶश͕ඞཁͳͷ͔
    ʮ.BDIJOF-FBSOJOH5IF)JHI*OUFSFTU$SFEJU$BSEPG
    5FDIOJDBM%FCUʯ %4DVMMFZFUBM (PPHMF

    wػցֶशΛγεςϜʹ૊ΈࠐΉͷ͸େ͖ͳٕज़తෛ࠴Λ
    ๊͑ࠐΉϦεΫ͕͋Δ͜ͱΛೝࣝ͢Δ
    w࿦จதͰ͸༷ʑͳϦεΫཁҼʹ͍ͭͯઆ໌͞Ε͍ͯΔ

    View full-size slide

  11. ຊ౰ʹػցֶश͕ඞཁͳͷ͔
    ʮ.BDIJOF-FBSOJOH5IF)JHI*OUFSFTU$SFEJU$BSEPG
    5FDIOJDBM%FCUʯ %4DVMMFZFUBM (PPHMF

    wػցֶशΛγεςϜʹ૊ΈࠐΉͷ͸େ͖ͳٕज़తෛ࠴Λ
    ๊͑ࠐΉϦεΫ͕͋Δ͜ͱΛೝࣝ͢Δ
    w࿦จதͰ͸༷ʑͳϦεΫཁҼʹ͍ͭͯઆ໌͞Ε͍ͯΔ
    ػցֶशΛʮ࢖͏ʯ͜ͱ͕໨తʹͳͬͯ͸ͳΒͳ͍

    ࢖Θͳͯ͘ࡁΉͳΒ࢖Θͳ͍͕࠷ྑͷબ୒

    View full-size slide

  12. ᮢ஋ϕʔεͷ؂ࢹͷݶք
    ؂ࢹͷਫ਼౓Λ্͛ΔͨΊʹ͸໌ࣔతʹࣄલ஌ࣝΛೖΕͯ
    ϧʔϧΛ૿΍͍͔ͯ͘͠͠ͳ͍
    ྫ͑͹ɺ
    ̍ฏ೔ͷ"͔࣌Β#࣌ͷؒͰɺ͔ͭαʔόΛϦϦʔεͯ͠
    ͔Β$ϲ݄ະຬͷ$16࢖༻཰͕%Λ௒͑ͨͱ͖͸ҟৗ
    ̎$16࢖༻཰͕&Ҏ಺Ͱ͋Δͱ͖ʹϝϞϦ࢖༻཰͕'
    Ҏ্ʹͳͬͨͱ͖͸ҟৗ

    View full-size slide

  13. ᮢ஋ϕʔεͷ؂ࢹͷݶք
    ؂ࢹͷਫ਼౓Λ্͛ΔͨΊʹ͸໌ࣔతʹࣄલ஌ࣝΛೖΕͯ
    ϧʔϧΛ૿΍͍͔ͯ͘͠͠ͳ͍
    ྫ͑͹ɺ
    ̍ฏ೔ͷ"͔࣌Β#࣌ͷؒͰɺ͔ͭαʔόΛϦϦʔεͯ͠
    ͔Β$ϲ݄ະຬͷ$16࢖༻཰͕%Λ௒͑ͨͱ͖͸ҟৗ
    ̎$16࢖༻཰͕&Ҏ಺Ͱ͋Δͱ͖ʹϝϞϦ࢖༻཰͕'
    Ҏ্ʹͳͬͨͱ͖͸ҟৗ
    ਓ͕ؒ໌ࣔతʹࢦఆɾ؅ཧͰ͖Δϧʔϧͷ਺ʹ͸ݶք͕͋Δ
    JGจ஍ࠈʹ͍͍ؕͬͯ͘ɾɾ

    View full-size slide

  14. ᮢ஋ϕʔεͷ؂ࢹͷݶք
    ؂ࢹͷਫ਼౓Λ্͛ΔͨΊʹ͸໌ࣔతʹࣄલ஌ࣝΛೖΕͯ
    ϧʔϧΛ૿΍͍͔ͯ͘͠͠ͳ͍
    ྫ͑͹ɺ
    ̍ฏ೔ͷ"͔࣌Β#࣌ͷؒͰɺ͔ͭαʔόΛϦϦʔεͯ͠
    ͔Β$ϲ݄ະຬͷ$16࢖༻཰͕%Λ௒͑ͨͱ͖͸ҟৗ
    ̎$16࢖༻཰͕&Ҏ಺Ͱ͋Δͱ͖ʹϝϞϦ࢖༻཰͕'
    Ҏ্ʹͳͬͨͱ͖͸ҟৗ
    ਓ͕ؒ໌ࣔతʹࢦఆɾ؅ཧͰ͖Δϧʔϧͷ਺ʹ͸ݶք͕͋Δ
    JGจ஍ࠈʹ͍͍ؕͬͯ͘ɾɾ
    ࣌ܥྻੑ

    View full-size slide

  15. ᮢ஋ϕʔεͷ؂ࢹͷݶք
    ؂ࢹͷਫ਼౓Λ্͛ΔͨΊʹ͸໌ࣔతʹࣄલ஌ࣝΛೖΕͯ
    ϧʔϧΛ૿΍͍͔ͯ͘͠͠ͳ͍
    ྫ͑͹ɺ
    ̍ฏ೔ͷ"͔࣌Β#࣌ͷؒͰɺ͔ͭαʔόΛϦϦʔεͯ͠
    ͔Β$ϲ݄ະຬͷ$16࢖༻཰͕%Λ௒͑ͨͱ͖͸ҟৗ
    ̎$16࢖༻཰͕&Ҏ಺Ͱ͋Δͱ͖ʹϝϞϦ࢖༻཰͕'
    Ҏ্ʹͳͬͨͱ͖͸ҟৗ
    ਓ͕ؒ໌ࣔతʹࢦఆɾ؅ཧͰ͖Δϧʔϧͷ਺ʹ͸ݶք͕͋Δ
    JGจ஍ࠈʹ͍͍ؕͬͯ͘ɾɾ
    ࣌ܥྻੑ
    ଟ࣍ݩੑʢ૬ؔੑʣ

    View full-size slide

  16. ݁ہͲ͏͍͏ͱ͖ʹ
    ػցֶश͕࢖͑Δͷʁ

    View full-size slide

  17. wσʔλͷ࣌ܥྻੑΛߟྀ͍ͨ͠৔߹
    w͜ͷ࣌ظͷ͜ͷ࣌ؒଳʹͦͷ஋͸ҟৗ͡Όͳ͍ʁ

    Έ͍ͨͳύλʔϯ
    wσʔλಉ࢜ͷ૬ؔ΍ଟ࣍ݩੑΛߟྀ͍ͨ͠৔߹
    wͦͷ஋ͷ૊߹ͤ͸ҟৗ͡Όͳ͍ʁΈ͍ͨͳύλʔϯ

    ػցֶश͕༗ޮͳέʔε

    View full-size slide

  18. wσʔλͷ࣌ܥྻੑΛߟྀ͍ͨ͠৔߹
    w͜ͷ࣌ظͷ͜ͷ࣌ؒଳʹͦͷ஋͸ҟৗ͡Όͳ͍ʁ

    Έ͍ͨͳύλʔϯ
    wσʔλಉ࢜ͷ૬ؔ΍ଟ࣍ݩੑΛߟྀ͍ͨ͠৔߹
    wͦͷ஋ͷ૊߹ͤ͸ҟৗ͡Όͳ͍ʁΈ͍ͨͳύλʔϯ

    ػցֶश͕༗ޮͳέʔε
    ͞Βʹͦͷ྆ํͷଟ࣍ݩ࣌ܥྻσʔλ͔Βͷ஌ࣝൃݟ͸ɺ
    ϧʔϧϕʔεͰ͸೉͘͠ɺػցֶशͷಘҙ෼໺

    View full-size slide

  19. ͡Ό͋Ͳ͏΍ͬͯػցֶशΛ
    ద༻͍ͯ͘͠ͷ͔ʁ

    View full-size slide

  20. αʔόΛଟ࣍ݩ࣌ܥྻσʔλͱͯ͠ଊ͑ɺ
    ͦͷಛ௃Λநग़͢Δʢಛ௃ϕΫτϧԽʣ
    ಘΒΕͨಛ௃͔Βঢ়ଶΛਫ਼៛ʹ೺Ѳ͢Δ
    ʢෛՙঢ়گͷ೺Ѳɺҟৗ༧ଌͳͲʣ

    View full-size slide

  21. ·ͣ͸ಛ௃ϕΫτϧԽ

    View full-size slide

  22. ಛ௃ϕΫτϧԽ
    ʮ৘ใਪનγεςϜೖ໳ɿߨٛεϥΠυʯΑΓҾ༻
    IUUQTXXXTMJEFTIBSFOFU,FOUB0LVTT

    View full-size slide

  23. ಛ௃ϕΫτϧԽ
    ʮ৘ใਪનγεςϜೖ໳ɿߨٛεϥΠυʯΑΓҾ༻
    IUUQTXXXTMJEFTIBSFOFU,FOUB0LVTT
    αʔό

    View full-size slide

  24. αʔόͷಛ௃ϕΫτϧԽ
    αʔόͷঢ়ଶΛΑ͘දݱͨ͠ಛ௃ϕΫτϧͷઃܭ͕ॏཁ
    $16࢖༻཰
    ϝϞϦ࢖༻཰
    -"
    ɹɹɹ












    ಛ௃ϕΫτϧ
    ن֨Խ
    ಛҟ஋෼ղ Χʔωϧؔ਺ FUD
    ಛ௃ϕΫτϧͷઃܭ͸ࣗ༝౓͕ߴ͍
    αʔό
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾ
    ɾɾɾ ࣌ؒ
    ଟ࣍ݩ࣌ܥྻσʔλ
    ن֨Խ
    ࣌ؒ

    View full-size slide

  25. ࠷ߴͷಛ௃ϕΫτϧ
    ͕ಘΒΕͨΒʜ

    View full-size slide

  26. ಛ௃ϕΫτϧΛ࢖ͬͨαʔό؂ࢹ
    αʔόͷঢ়ଶΛදݱͨ͠
    ಛ௃ϕΫτϧ
    ΞϧΰϦζϜͷબ୒΋ࣗ༝౓͕ߴ͍
    ࣌ؒ
    0OF$MBTT
    47.
    ࠞ߹෼෍
    Ϟσϧ
    ෦෼ۭؒ๏
    σΟʔϓ
    ϥʔχϯά

    View full-size slide

  27. IUUQTTQFBLFSEFDLDPNTVHJZBNBNBDLFSFMNFFUVQOVNCFS
    ࣄྫɿ.BDLFSFMʢגࣜձࣾ͸ͯͳʣ

    View full-size slide

  28. ஫໨͍ͯ͠ΔΞϧΰϦζϜ

    View full-size slide

  29. ࣌ܥྻΫϥελϦϯά
    IUUQTCMPHUTVSVCFFUFDIFOUSZ
    IUUQTCMPHUTVSVCFFUFDIFOUSZ
    ڭࢣͳֶ͠शͰ͋ΔΫϥελϦϯάΛ࣌ܥྻσʔλʹదԠ
    ͨ͠΋ͷ

    View full-size slide

  30. ͳͥΫϥελϦϯάʁ
    ϗεςΟϯάαʔόͷಛ௃
    wಉ͡ϩʔϧʢ໾ׂʣͰ࢖ΘΕ͍ͯΔαʔόͷ୆਺͕ଟ͍
    ʢ-PMJQPQͩͱ਺ඦ୆εέʔϧʣ
    wಉҰϩʔϧͰ͋Δ͕ɺαʔόຖʹಛ௃͕େ͖͘ҟͳΔ
    w࣌ؒଳʹΑͬͯෛՙঢ়ଶ͕େ͖͘ҟͳΔ
    ֎Ε஋ݕ஌΍มԽ఺ݕ஌ͳͲͷϝτϦΫεͷઈର஋Λ༻͍
    ͨҟৗݕ஌ΑΓɺ૬ରతʹݟͯଞͱৼΔ෣͍͕ҟͳΔ΋ͷ
    ݕग़͢Δํ͕૬ੑ͕ྑͦ͞͏

    View full-size slide

  31. ࣌ܥྻΫϥελϦϯάͷద༻Πϝʔδ
    ಛ௃ϕΫτϧಉ࢜ͷྨࣅ౓Λࢉग़͠ɺଞͱৼΔ෣͍͕
    ҟͳΔαʔόΛ͋ͿΓग़͢
    αʔόΛ্ۭؒͷ఺ͱͯ͠දݱͯ͠
    ఺ಉ࢜ͷڑ཭ʢྨࣅ౓ʣΛࢉग़
    ूஂ͔Β཭Ε͍ͯΔ
    ΋ͷΛҟৗͱ͢Δ
    ࣌ؒ
    ͭͷ఺ʹ୆ͷαʔόͷ
    ଟ࣍ݩ࣌ܥྻσʔλͷ৘
    ใ͕ೖ͍ͬͯΔΠϝʔδ

    View full-size slide

  32. UTDMVTUFS࣌ܥྻΫϥελϦϯάύοέʔδ
    ಈత࣌ؒ৳ॖ๏ʢ%58ʣɾLNFEPJET๏Λ࣮૷

    View full-size slide

  33. UTDMVTUFS࣌ܥྻΫϥελϦϯάϥΠϒϥϦ
    ࣍ݩ࡟আ΍ྨࣅ౓ࢉग़ͷख๏ͳͲɺಠཱͨ͠ෳ਺ͷॲཧ
    ͷ૊Έ߹ΘͤΛࣗ༝ʹม͑ΒΕΔ
    IUUQTVNFYQFSUVNFEVNZpMFQVCMJDBUJPO@QEG

    View full-size slide

  34. ·ͱΊ
    wαʔό্Ͱಈ࡞͢Δίϯςϯπ͕؅ཧͰ͖ͣɺҟৗ੍͕ޚ͠
    ͮΒ͍ϗεςΟϯά؀ڥʹ͓͍ͯػցֶशΛ༻͍ͨαʔό؂ࢹ
    ͸༗ޮͳͷͰ͸ͳ͍͔
    wαʔόΛ࣌ܥྻଟ࣍ݩσʔλͱͯ͠ଊ͑ɺαʔόͷঢ়ଶΛΑ
    ͘දݱͨ͠ಛ௃ϕΫτϧΛઃܭ͢Δ͜ͱ͕ॏཁ
    wಛ௃ϕΫτϧΛͲ͏࢖͏͔ʹ΋ଟ͘ͷબ୒͕͋ΓɺϗεςΟ
    ϯάαʔόʹ͓͍ͯ͸࣌ܥྻΫϥελϦϯά͕༗ޮͳͷͰ͸ͳ
    ͍͔ͱߟ͍͑ͯΔ
    w͍·ໝ૝͍ͯ͠Δ͜ͱΛ࣮ફ͍͖͍ͯͨ͠

    View full-size slide

  35. ͝ਗ਼ௌ͋Γ͕ͱ͏
    ͍͟͝·ͨ͠ʂʂ

    View full-size slide