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

Terraformを用いた機械学習インフラの構築 / Developers Summit 2018 FUKUOKA A-8

bokeneko
September 06, 2018

Terraformを用いた機械学習インフラの構築 / Developers Summit 2018 FUKUOKA A-8

Developers Summit 2018 FUKUOKA での発表資料です。

bokeneko

September 06, 2018
Tweet

More Decks by bokeneko

Other Decks in Technology

Transcript

  1. 5FSSBGPSNΛ༻͍ͨ
    ػցֶशΠϯϑϥͷߏங
    #"4&גࣜձࣾ
    ࢯݪ३ࢤ
    EFWTVNJ""

    View Slide

  2. ࣗݾ঺հ
    w ࢯݪ३ࢤʢ͏͡͸Β͋ͭ͠ʣ
    w ػցֶशΤϯδχΞˏ#"4&
    w ݩ3FUUZΫϥϑτϏʔϧ୲౰ɻ
    ݱ#"4&Ϗʔϧ෦෦௕ɻ
    w ͜ͷลͷϏΞύϒ͸۝भͷϏʔ
    ϧܨ͍ͰΔͱ͜গͳ͍ɻɻɻ
    ͍͍ͱ͋͜Ε͹ڭ͑ͯɻ
    w ΢ΣϧϏʔ෱Ԭͷਫ෩࿊࠷ߴ

    View Slide

  3. ࠷ۙϒϩάॻ͖·ͨ͠
    ʮ:BIPPͷۙ๣୳ࡧπʔϧ/(5Λ࢖ͬͯྨࣅ঎඼
    "1*Λͭ͘Δʯ

    IUUQTEFWCMPHUIFCBTFJOFOUSZ


    View Slide

  4. ը૾ͷಛ௃ྔநग़ͷࣗಈԽ

    View Slide

  5. ఆظతͳಛ௃ྔJOEFYͷߋ৽

    View Slide

  6. ϚΠΫϩαʔϏεԽ͞Εͨ"1*

    View Slide

  7. ࠓ೔࿩͢͜ͱ
    w ػցֶशج൫ΛUFSSBGPSNߏஙͨ͠
    w UFSSBGPSN࢖͏ͱΠϯϑϥઃܭ͠΍
    ͍͢

    View Slide

  8. ॳظͷ#"4&ͷػցֶश؀ڥ
    w #"4&ͰػցֶशΛ୲౰͍ͯ͠Δ%BUB4USBUFHZ
    νʔϜ͕Ͱ͖ͨͷ͸࠷ۙ
    w ج൫ͱ͔ͳ͔ͬͨ
    w ຊ൪ܥ͕૸ͬͯΔಉ͡؀ڥͰ͝ʹΐ͝ʹΐͯͨ͠
    Կ͔͋ͬͨ࣌ຊ൪ר͖ࠐΉՄೳੑ
    w ຊ൪ܥͷதͳͷͰ͍͍ͪͪΠϯϑϥνʔϜʹґཔ
    ͯ͠Ϧιʔε࡞ͬͯ΋Β͏ඞཁ͕͋ͬͨ

    View Slide

  9. ػցֶशͷͭΒΈ

    w ։ൃ༻%#ʹσʔλͳ͍໰୊
    ݸਓ৘ใ͋Δ%#ʹ
    ؾܰʹΞΫηε͢Μ
    ͳʂ
    ຊ൪ͷσʔλΑͤ͜ʂ
    ݚڀʹ͔ͯຊ൪ͷσʔ
    λ͕͍ΔΜ΍ʂ

    View Slide

  10. ػցֶशͷͭΒΈ

    w ͍ΖΜͳϦιʔε͙͢ཉ͍͠໰୊
    ༧ࢉͲ͔͜ΒͰΜͶ
    Μʂ
    ଞʹ΋΍ΒΜͱ͍͔
    Μ͜ͱ͋ΔΜ΍ʂࠓ
    ͙͢Ͱ͖Δ͔͍ʂ
    ϝϞϦ(ʂ
    DPSFʂ
    (16ʂ
    ը૾ສຕʂ
    ࠓ೔͔Βࢼ͍͔ͨ͠
    ΒࠓΠϯελϯε࡞
    Εʂ

    View Slide

  11. ػցֶशͷͭΒΈ

    w ݱߦγεςϜ͕ػցֶश૝ఆͯ͠ͳ͍໰୊
    ӡ༻΍Β؂ࢹ΍Β͋
    ΔΜ΍ʂϙϯϙϯߏ
    ੒ม͑ΕΔ͔͍ʂ
    ࠓͷ··΍ͱແཧ΍ʂ
    Πϯϑϥߏ੒ม͑Δ
    Ͱʂ

    View Slide

  12. ͦͯ͠ઓ૪΁
    ҆ఆӡ༻Λ๦
    ͛ΔςϩϦε
    τ͕ʂ
    Πϊϕʔγϣ
    ϯͷఢΊʂ
    ˞উखͳΠϝʔδͰ͢ɻ#"4&಺Ͱىͬͯ͜Δ༁Ͱ͸͋Γ·ͤΜɻ

    View Slide

  13. ؾܰʹػցֶशΛࢼ͍ͨ͠
    w ຊ൪ͱ͸੾Γ཭͞ΕͨɺͰ΋࣮ݧɾ։ൃʹඞཁ
    ͳσʔλ͸ͪΌΜͱऔΕΔ؀ڥ͕ཉ͍͠
    w ΠϯϑϥΛ͋Δఔ౓ࣗ༝ʹࣗ෼ͨͪͰ༻ҙͰ͖
    Δࡋྔ͕ཉ͍͠
    ػցֶश༻ͷ"84ΞΧ΢ϯτΛผ్༻ҙ͠Α͏ʂ
    ͱ͍͏͜ͱʹ

    View Slide

  14. ػցֶश༻"84ΞΧ΢ϯτ
    w ຊ൪ͷ%#͔ΒఆظతʹσʔλΛૹͬͯ΋Β͏ɻ
    ͦͷࡍʹݸਓ৘ใ͸શ෦ϚεΩϯά
    w ը૾σʔλ͸ຊ൪ͷ4ʹ্͕ͬͨ΋ͷΛͦͷλ
    ΠϛϯάͰίϐʔͯ͘͠Δ
    w ͜ͷ"84ΞΧ΢ϯτͷதͳΒ޷͖ʹΠϯϑϥ͍
    ͍͍ͬͯ͡ʢ˞ػցֶशνʔϜͷ༧ࢉ಺Ͱʣ

    View Slide

  15. ͜ΕͰฏ࿨͕͓ͱͣΕ
    Δʁ

    View Slide

  16. ૪͍ͷλω͸·ͩ͋Δ
    w ṖͷΠϯελϯε܈ɺ༧ࢉΦʔόʔɺFUD
    ஌Δ͔ʂ
    ৭ʑ͔ͭ͏Μ΍ʂ΄ͬ
    ͱ͚ʂ
    ͳΜͰ͜Μͳʹ͔ۚ
    ͔ͬͱΜͶΜʂ
    ͜ͷେྔͷΠϯελ
    ϯε͸ͳΜ΍ʂ

    View Slide

  17. w ԿʹԿΛͲΕ͚ͩ࢖ͬͯΔͷ͔୭Ͱ΋೺ѲͰ͖
    ΔΑ͏ʹ͓͖͍ͯͨ͠ɻ
    w ΠϯϑϥνʔϜ͕νΣοΫ͠΍͍͢Α͏ʹͯ͠
    ͓͖͍ͨɻ

    View Slide

  18. ΠϯϑϥνʔϜͱͷ
    ڞ௨ݴޠͱͯ͠ͷUFSSBGPSN

    View Slide

  19. UFSSBGPSN
    w IUUQTXXXUFSSBGPSNJP
    w "84౳ͷΠϯϑϥߏ੒Λίʔυͱͯ͠ॻ͚Δɻ
    w ػೳ୯ҐͰϞδϡʔϧ࡞ͬͨΓͯ͠Πϯϑϥߏ੒
    ͷ࠶ར༻ੑΛߴΊΒΕΔɻ
    w ΠϯϑϥνʔϜʹ࢖͑Δਓ͕͍ͨͷͰ͜ΕΛڞ
    ௨ݴޠͱͯ͠ར༻͢Δ͜ͱʹɻ

    View Slide

  20. View Slide

  21. UFSSBGPSNͰͷ։ൃϑϩʔ
    w ԿͷͨΊʹԿΛͲΕ͚ͩར༻͠Α͏ͱ͍ͯ͠Δ
    ͔Λࣄલʹίʔυͱͯ͠ॻ͘ɻ
    w ίʔυ͸HJUIVCͰ؅ཧɻΠϯϑϥνʔϜʹ13Λ
    ౤͛Δɻ-(5.͕͍ͭͨΒ࣮ࡍʹ࣮ߦɻ
    w UFSSBGPSNʹॻ͔Εͯͳ͍Ϧιʔε͸͍ͭࡴ͞Ε
    ͯ΋จ۟ݴΘͳ͍ɻ

    View Slide

  22. ػցֶश؀ڥͷΠϯϑϥઃܭ
    UFSSBGPSNͩͱख࡞ۀͰϙνϙν΍ͬͯΔͱ͖ͱൺ
    ΂ͯΠϯϑϥߏ଄Λߟ͑΍͍͢ɻ
    ֤Ϧιʔε͕ͦΕͧΕͲ͏ґଘ͍ͯ͠Δͷ͔͕͸ͬ
    ͖ΓΘ͔Δ͠ɺޙ͔Β΋֬ೝ͠΍͍͢ɻ
    UFSSBGPSNͰ΋ࣗ༝ؾ··ʹॻ͘ͱ͙͢ʹεύήο
    ςΟͳঢ়گʹͳΔͷͰɺνʔϜͱͯ͠ͷେ࿮͸ܾΊ
    ͓ͯ͘ɻ

    View Slide

  23. UFSSBGPSN͸ػೳ͝ͱʹ෼཭

    View Slide

  24. ػೳ಺΋ϞδϡʔϧԽͯ͠؅ཧ

    View Slide

  25. 71$Λػೳ͝ͱʹ෼཭
    ूܭόονܥ
    ը૾ॲཧܥ

    View Slide

  26. 71$ؒͷ௨৴͸71$1FFSJOH
    ܦ༝
    %#ܥ ूܭόονܥ

    View Slide

  27. ֎෦΁ͷ"1*ఏڙ͸"1*
    (BUFXBZܦ༝

    View Slide

  28. w ͲͷػೳͷԿ͕ԿΛͲΕ͚ͩ࢖͍ͬͯΔͷ͔͕
    ໌֬ʹͳΔΑ͏ʹ͢Δ
    w ֤ػೳͷ71$಺͸޷͖ʹ࡞͍͍ͬͯʢཁϨ
    Ϗϡʔʣ
    w 71$ؒɾ71$ͱ֎෦ͷܨ͕ΓΛ࠷খݶʹͯ͠
    ͓͘͜ͱͰࣄނΛ๷͙

    View Slide

  29. ͍ͭ΋χίχί໌࿕Πϯϑϥ

    View Slide

  30. 'VUVSF8PSL
    w UFSSBGPSNͷUGTUBUF UGWBSͷ؅ཧ໰୊ɺͲ͜ͰͩΕ͕࣮ߦ͢Δͷ໰

    w $PEF#VJMEͰ͍͍ײ͡ʹͰ͖ͳ͍͔ͳͱເ૝த
    w BXTͷ੍ݶʹΨϯΨϯҾ͔͔ͬΔͷͲ͏͢Δ͔
    w ઃܭʹڽΓͩ͢ͱ௝੍͍͠ݶʹҾ͔͔ͬΔ໛༷
    w 71$-JOL਺ͷ੍ݶ؇࿨ͯͩ͋͘͠͠ɻɻɻ
    w جຊతʹ؇࿨ਃ੥͔͠ͳ͍͕ɺ੍ݶ಺༰Λ೺Ѳͯ͠Ҿ͔͔ͬΓʹ
    ͍͘ߏ੒ ʹແବͷগͳ͍ߏ੒
    ʹ͸Ͱ͖ΔͩΖ͏ͱ͸ࢥ͍ͬͯΔ

    View Slide