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

その Kubernetes は 効率的にマシンを活用できているか #CNDT2020_RJKT #CNDT2020_RJKT_B / CNDT2020 Rejekts

Kodai Sakabe
September 02, 2020

その Kubernetes は 効率的にマシンを活用できているか #CNDT2020_RJKT #CNDT2020_RJKT_B / CNDT2020 Rejekts

CNDT2020 Rejekts

その Kubernetes は効率的にマシンを活用できているか / 坂部 広大

Kodai Sakabe

September 02, 2020
Tweet

More Decks by Kodai Sakabe

Other Decks in Technology

Transcript

  1. $/%53FKFLUT$/%5@3+,5$/%5@3+,5@#
    8BOUFEMZ *ODc,PEBJ4BLBCF!LPVEBJJJ
    ͦͷ,VCFSOFUFT͸
    ޮ཰తʹϚγϯΛ׆༻Ͱ͖͍ͯΔ͔

    View full-size slide

  2. ̏
    063(0"-4
    8BOUFEMZ *OD
    % J T D P W F S $ P O O F D U
    & O H B H F 4 / 4
    $ S F B U F B X P S M E X I F S F X P S L E S J W F T Q B T T J P O

    View full-size slide


  3. IUUQTXXXXBOUFEMZDPNDPNQBOJFTXBOUFEMZQPTU@BSUJDMFT
    IUUQTQFSLXBOUFEMZDPN IUUQTXXXXBOUFEMZDPN
    IUUQTQFPQMFXBOUFEMZDPN

    View full-size slide

  4. .JDSPTFSWJDFTPO,VCFSOFUFT
    ݱ ࡏ ͷ ε λ ο π

    . J D S P T F S W J D F T

    / P E F T
    ,
    $ P O U B J O F S T

    View full-size slide






















  5. . J D S P T F S W J D F T 4 F S W F S ) P T U
    ϚγϯͱαʔϏεͷਪҠ
    Π ϯ ϑ ϥ Λ ޮ ཰ త ʹ ಈ ͔ ͢
    ۭ ͍ͯ ͍ Δ Ϧ ιʔεΛ ଞ ͷ α ʔ ϏεͰ ར ༻ ͢Δ ͜ͱͰ ޮ
    ཰ ੑ Λ ߴ Ί Δ

    View full-size slide

  6. w LTΛಋೖͨ͜͠ͱͰɺΫϥελϦϯάʹΑΔந৅Խ͞ΕͨϨΠϠʔ͕ڬ·Δ͜ͱ
    ͰɺϚγϯ͸ޮ཰త͔ͭεέʔϥϒϧʹಈ͘ͱઆ໌͖͕ͯͨ͠ɺɺɺ
    w ࣗಈϏϯύοΩϯάɺਫฏεέʔϧɺϓϥωοτεέʔϧFUD
    w LTΛ͸͡Ίͨͱ͖ɺεέʔϥϒϧͳج൫Λ࣮ݱ͕ͨ͠ɺಉ࣌ʹίετ΋εέʔϥϒ
    ϧʹͳͬͨɻ
    w Ϛγϯίετͷ༧ଌ͕೉͍͠
    w ʮLTʹͳͬͯͲ͜ʹ͓ۚΛ͔͚͍ͯΔͷ͔Θ͔Βͳ͍ʯʮίετ࡟ݮ͠Ζʯ

    ͦͷLT͸ޮ཰తʹϚγϯΛ׆༻Ͱ͖͍ͯΔʁ
    LTΛ࢖ͬͯΈͯɺɺ

    View full-size slide


  7. औ Γ ૊ Έ ͷ μΠ δ Σ ε τ
    ឯ ༨ ۂ ં ͠ ͨ ཤ ྺ

    View full-size slide

  8. w ࿩͢͜ͱ͸ɺʮޮ཰తʹϚγϯΛಈ͔͢͜ͱ͸ɺ૯߹֨ಆٕʹͳΔʯ
    w LTʹΑΓεέʔϥϒϧͳج൫Λ࣮ݱ͕ͨ͠ɺίετ΋εέʔϥϒϧʹͳͬͨ
    w େ͖͘ϦιʔεΛ֬อͯ͠LTΛ҆ఆతʹಈ͔͢͜ͱΛॏࢹ͍ͯͨͨ͠Ί
    w ͦͷޙɺΠϯϑϥνʔϜ಺Ͱվળ
    w ϚγϯΛޮ཰తʹಈ͔ͨ͢Ίʹ͞ΒʹଞνʔϜͱ͍ͬͨ૯߹֨ಆٕʹͳͬͨ
    LTΛ؅ཧ͢Δਓʹ޲͚ͯɺ͜ͷҰ࿈ͷ΍ͬͯΈͨ݁Ռ͕ࢀߟʹͳΕ͹ͱࢥ͍·͢ɻ

    ࿩͢͜ͱ
    ϚγϯΛޮ཰తʹ࢖͍͜ͳ͍ͤͯΔʁ

    View full-size slide

  9. w ʮͦͷLT͸ޮ཰తʹϚγϯΛ׆༻Ͱ͖͍ͯΔ͔ʁʯΛఆྔతʹਤΓ͍ͨ
    w ͖͔͚ͬ͸ɺʮ999ԁίετΧοτʯͱ͍͏ࢦྩ
    w ίετײͰ͍͏ͱɺ"84୅ͷׂ߹͸શମ͔Βݟͯߴ͍
    w &$3%4&MBTUJDBDIF PUIFST

    w &$͸ɺ΄΅LTར༻ͩͬͨ
    w ʮϚγϯΛޮ཰తʹಈ͔͢ίεύ͕ྑ͍ʯͱ͍͏;͏ʹఆٛͨ͠
    w ޮ཰Խ QPE͋ͨΓͷύϑΥʔϚϯε
    ίετ

    w طଘ؀ڥͷίεύΛ্͛ΔBOEίετͷ૿Ճ཰ΛԼ͛Δ
    w ར༻Մೳͳίετͷ্ݶΛఈ্͛͢Δ ྫੜ࢈ੑΛ্͛Δɻࣄۀʹߩݙ


    ޮ཰తίεύ
    ఆྔతʹਤΓ͍ͨ

    View full-size slide

  10. ΞΠσΟΞग़͔͠Β࣮ફ·Ͱ
    w ϓϩμΫτ։ൃɾΠϯϑϥɾٕज़ج൫ͰݟΔ֯౓ʹΑͬͯରࡦ͕౓͔ΘΔ
    ૝ఆ֎ͷ໰୊
    w ϙετϞʔςϜ͔Β͍͔ͭ͘ىͬͨ͜͜ͱΛ঺հ
    ΞΠσΟΞ͸ෳ਺ͷ໰୊Λղܾ͢Δ
    w H31$Խɺπʔϧ։ൃ

    ΞδΣϯμ
    ϚγϯΛޮ཰తʹ࢖͍͜ͳ͍ͤͯΔʁ

    View full-size slide

  11. ΞΠσΟΞग़͔͠Β࣮ફ·Ͱ
    ϓϩμΫτ։ൃɾΠϯϑϥɾٕज़ج൫ͰݟΔ֯౓ʹΑͬͯରࡦ͕౓͔ΘΔ

    View full-size slide

  12. w ϓϩμΫτ։ൃɾΠϯϑϥɾٕज़ج൫Ͱ·ͣ͸ϒϨετ
    w &MBTUJ$BDIFΛQPEʹม͑ͨΒ҆͘ͳΔͷͰ͸ʁ
    w ஌͍ͬͯΔ৘ใ΍ݱࡏͷঢ়گͰ౓มΘΔ
    w ,PONBSJ%BZίʔυΛॻ͔ͣʹͲΜͲΜফ͢ͷ͕Ұ൪ίεύ͕ྑ͍
    w (PPHMF%PDT΍NJSPͰΞΠσΟΞΛग़͢ɻ
    w ΞΠσΟΞΛग़͢
    w ΞΠσΟΞΛυϝΠϯͰ෼ྨ
    w ϓϥΠΦϦςΟΛઃఆ
    w ޮՌΛֹۚͰܭࢉ͠ɺΦʔφʔΛܾΊΔ

    ΞΠσΟΞιϯ
    ΞΠσΟΞग़͔͠Β࣮ફ·Ͱ

    View full-size slide

  13. w ݱঢ়ɺར༻͍ͯ͠Δ&MBTJ$BDIFͷTQFD͔Βߟ͑Δͱɺ1PEͷ΄͏͕ίετ͕ߴ
    ͘෇͍ͨ
    w 1PE͋ͨΓͷඅ༻໘
    w 1PEʹͳΔ͜ͱͰίετͷଥ౰ੑ͕ݟ͑ʹ͘͘ͳΔ
    w ͢ͰʹϦβʔϒυΠϯελϯεΛߪೖ͍ͯ͠Δ
    w ӡ༻ίετ
    w TJEFLJRͳͲͷεςʔτϑϧͷ৔߹ͩͱTQPUJOTUBODFͰӡ༻͢ΔϦεΫ
    w όʔδϣϯΞοϓɾΫϥελϦϯά౳ͷϚωʔδυɾαʔϏεͷԸܙ
    w TQFDΛԼ͛Δ౳͢Δͱ1PEʹม͑Δͱे෼ޮՌ͸͋Δ͜ͱ͕Θ͔ͬͨ

    3FEJTͷ&MBTUJ$BDIFWT1PE
    ݱঢ়ɺͲͪΒ͕ྑ͍ʁ

    View full-size slide

  14. w 1PEฤ ࡟ݮޮՌҐ

    w 71")1")1"ͰϦΫΤετ਺ɺ71"Ͱ$16ΛݟΔ
    w 3FEJTͷ&MBTUJ$BDIFWT1PE
    w /PEFฤ ࡟ݮޮՌҐ

    w DMVTUFSBVUPTDBMFS σʔλ෼ੳͷΑ͏ͳϝϞϦΛେྔʹ࢖͏΋ͷʹ͍ͭͯ
    ͸ɺඞཁͳλΠϛϯάͰಈ͕͘ɺීஈ͸୆
    w TQPUJOTUBODF׆༻։ൃ؀ڥͰར༻
    w அࣺ཭ฤ,PONBSJ%BZ ࡟ݮޮՌҐ

    w ໾໨͕ऴ͑ͨ΋ͷΛফ͢

    ΍ͬͨ͜ͱ
    ΞΠσΟΞ͔Β࣮ࢪͨ͜͠ͱ

    View full-size slide

  15. ΞΠσΟΞιϯ͔Β࣮ࢪ·ͰΛৼΓฦΓ͢Δͱ
    w ͢΂ͯΛ͓ۚ׵ࢉͯ͠༏ઌ౓͕ߴ͍ͱ͜ΖΛணख
    w ༷ʑͳνʔϜΛר͖ࠐΜͰΞΠσΟΞιϯͨ͜͠ͱͰΠϯϑϥҎ֎ͷྖҬ΋ରࡦͰ͖
    ͨ
    w ༷ʑͳࢹ఺͕ೖΔ͜ͱͰɺ1PEʹͨ͠Βྑ͘ͳΔͷͰ͸ʁͱ͍͏ઌೖ؍Λࣺͯͯௐ
    ࠪͨ݁͠Ռɺํ਑͕౓มΘͬͨ

    ΍ͬͨ͜ͱͷ૯ׅ
    ΞΠσΟΞ͔Β࣮ࢪͨ͜͠ͱ

    View full-size slide

  16. ૝ఆ֎ͷ໰୊
    ϙετϞʔςϜ͔Β͍͔ͭ͘ىͬͨ͜͜ͱΛ঺հ

    View full-size slide

  17. w LTDMVTUFSதͷಛఆͷ/PEFͰ5ISFBE&SSPSDBOUDSFBUF5ISFBE3FTPVSDF
    UFNQPSBSJMZVOBWBJMBCMF͕ଓ͚ͯى͖͍ͯͨ
    w /PEF୯ҐͷQPE͕૿͑ͨλΠϛϯάͱκϯϏϓϩηε͕૿Ճ͍ͯͨ͠
    w QSPDTZTLFSOFMQJE@NBY ͕σϑΥϧτͷ··ʹͳ͍ͬͯͨ͜ͱͱκϯϏϓϩ
    ηε͕ൃੜͨ͜͠ͱͰ໰୊͕ىͬͨ͜
    w ରࡦͱͯ͠ɺLVCFSOFUFTLVCFSOFUFTͰ΋σϑΥϧτͷQJE@NBY͸௿͍ͱݴٴ
    ͕͋Γɺ૿΍ͨ͠ɻκϯϏϓϩηεΛಛఆͯ͠ରࡦͨ͠ɻ

    UISFBEQPPMΤϥʔ QJE@NBY

    ىͬͨ͜͜ͱ
    IUUQTHJUIVCDPNLVCFSOFUFTLVCFSOFUFTJTTVFTJTTVFDPNNFOU

    View full-size slide

  18. w 4QPU *OTUBODF Λ༻͍ͯɺ໷ؒ͸ࢭΊΔӡ༻Λ։࢝ͨ͠ɻ͍͟Ӧۀ࣌ؒʹͳͬͯ

    *OTVGGJDJFOU*OTUBODF$BQBDJUZʹͳͬͯJOTUBODF্ཱ͕͕ͪΒͳ͍໰୊͕ൃੜ͠
    ͨ
    w ͜Ε·ͰϦβʔϒυΠϯελϯεΛߪೖͨ͜͠ͱͰɺ໷ؒ΋্ཱͪ͛ͨ··Ͱ͋
    ͕ͬͨɺ4QPU*OTUBODFΛར༻ͯ͠ฏ೔͚ͩ҆Ձʹىಈ͢ΔΑ͏ʹมߋͨ͠
    w ϦβʔϒυΠϯελϯεΛ΍Ίͨ͜ͱͰϦιʔε֬อ͕ߦΘΕ͓ͯΒͣɺ͍͟ඞ
    ཁͳͱ͖ʹΠϯελϯεΛىಈͰ͖ͳ͔ͬͨ
    w ରࡦͱͯ͠͸ɺۭ͖͕͋ΔΠϯελϯελΠϓʹۓٸҾͬӽ͠ɻɻ

    ேى͖ͨΒ։ൃ؀ڥ͕ਧ͖ඈͿ
    ىͬͨ͜͜ͱ

    View full-size slide

  19. w ,VCFSOFUFT ͷ /PEF ͋ͨΓͷ 1PE ਺ͷ૿ՃΛىҼͱ͠ɺϚΠΫϩαʔϏεͰߦ
    ͍ͬͯΔαʔϏεؒ௨৴ͷ໿ͰωοτϫʔΫΤϥʔ %/4ͷ໊લղܾͷࣦഊ
    ͕
    ൃੜͨ͠ɻ
    w /PEF͋ͨΓͷ1PE਺ͷ૿ՃʹΑͬͯ"31UBCMFͷΤϯτϦ͕૿͑ͨ
    w "31UBCMFͷΤϯτϦͷ্ݶ஋͸ͩͬͨɻ
    w ͖͍͠஋ʹୡͨ͠λΠϛϯά͔Β OFJHICPVS BSQ@DBDIF OFJHICPS UBCMF
    PWFSGMPX͕ൃੜ͢ΔΑ͏ʹͳͬͨ͜ͱ͕ݪҼͩͱߟ͑ΒΕΔɻ
    w ରࡦͱͯ͠͸ɺ QSPDTZTOFUJQWOFJHIEFGBVMUHD@UISFTI Λνϡʔχϯ
    άͨ͠

    BSQ@DBDIFUBCMFͷ্ݶ஋
    ىͬͨ͜͜ͱ

    View full-size slide

  20. w DMVTUFS ͷ BVUP TDBMF ͔Βൃੜͨ͠ TDBMF EPXO Πϕϯτ͕ෳ਺௨஌͞Εͨࡍʹ
    $SPO+PC͕࿈ଓͰ࣮ߦ͞Εͨ
    w 4DBMF%PXOEFMFUJOHQPEGPSOPEFTDBMFEPXOͱ͍͏FWFOU͕ൃੜ
    w ,JMMJOH4UPQQJOHDPOUBJOFSKPC͕ෳ਺ճ௨஌
    w ͨ·ͨ·ൃੜͨ͠$SPO+PC͕FYBDUMZPODF ਖ਼֬ʹҰճ͚ͩಈ͍ͯ΄͍͠
    ͳδϣ
    ϒͰ͋ͬͨͨΊؾ͍ͮͨ
    w ճආࡦͱͯ͠͸ɺADMVTUFSBVUPTDBMFSLVCFSOFUFTJPTBGFUPFWJDUGBMTFAͱ͍
    ͏BOOPUBUJPOΛ෇༩౳

    $SPO+PCͷ࿈ଓ࣮ߦ
    ىͬͨ͜͜ͱ

    View full-size slide

  21. w IFSPLVͷΑ͏ͳ࢖ͬͯͳ͍ͱ͖͸ఀࢭ͢Δ'BB4
    w TQPUJOTUBODFͷ׆༻
    w &WFOUESJWFOͰεέʔϧͤ͞Δ
    w ,VCFSOFUFT&WFOUESJWFO"VUPTDBMJOHIUUQTLFEBTI
    w ࣌ؒଳͰTDBMFͤ͞ΔɻಛఆͷϢʔβ͕͖ͨͱ͖ʹTDBMFͤ͞ΔͳͲɻ
    w LTͷWFSTJPO্͛ଓ͚ͳ͍ͱίεύ্͕Βͳ͍໰୊ରॲ
    w ؾܰʹVQHSBEFͰ͖Δํ๏
    w ίεύʹؔ࿈ͯ͠ɺύϑΥʔϚϯεͱίϯόʔδϣϯͷҼՌΛग़͍ͨ͠
    w ࡟ݮ͚ͩͰͳͯ͘ɺ౤ࢿ͕ՄೳʹͳΔ

    ࠓޙͷల๬
    վળͷ༨஍͸ͨ͘͞Μ͋Δ

    View full-size slide

  22. ༷ʑͳ໰୊ʹૺ۰Ͱ͖ͨ͜ͱͰɺ΋͏Ұ౓ΞΠσΟΞιϯ΍Δͱ͖ʹ׆͔ͤΔ
    w ಉࣦ͡ഊ͠ͳ͍Α͏ʹϙετϞʔςϜͱͯ͠·ͱΊͨ͜ͱͰڞ༗Ͱ͖ͨ
    w ࠓޙ΋ΞΠσΟΞιϯΛߦ͏ͱ͖ʹࢀߟ৘ใͱͯ͠׆͔ͤΔ

    ૝ఆ֎ͷ໰୊ͷ૯ׅ
    ϙετϞʔςϜͷॏཁੑ

    View full-size slide


  23. ΞΠσΟΞ͸ෳ਺ͷ໰୊Λղܾ͢Δ
    H31$Խɺπʔϧ։ൃ

    View full-size slide

  24. ύϑΥʔϚϯε΍ج൫ࣗମΛ੔උ༷ͯ͠ʑͳ՝୊Λ·ͱΊͯղܾ͢Δ
    w ίετࣗମͱίετͷ૿Ճ཰ΛԼ͛Δɻ
    w ੜ࢈ੑΛ্͛Δ͜ͱͰίετͷڐ༰ൣғΛ޿͛Δ
    ͭͷऔ૊ΈΛ঺հ
    w H31$ಋೖʹΑΔ௿ϨΠςϯγʔ͔ͭߴεϧʔϓοτͷ࣮ݱ
    w ࣾ಺πʔϧLVCFGPSLͰੜ࢈ੑΛ্͛Δ

    ΞΠσΟΞ͔Β༷ʑͳ՝୊Λ·ͱΊͯղܾ͢Δ
    ٕज़తͳ౤ࢿ

    View full-size slide


  25. H31$ಋೖͷ࣮ݱ
    H31$ಋೖʹΑΔ௿ϨΠςϯγʔ͔ͭߴεϧʔϓοτͷ࣮ݱ

    View full-size slide


  26. IUUQTFWFOUDMPVEOBUJWFEBZTKQDOEUUBMLT

    View full-size slide


  27. ࣾ಺πʔϧLVCFGPSLͰੜ࢈ੑΛ্͛Δ
    5FMFQSFTFODFͱ*TUJPΛ࢖ͬͨࣗ෼ઐ༻ͷΫϥελΛ͍࣋ͬͯΔΑ͏ͳ։ൃ؀ڥͷߏங

    View full-size slide


  28. IUUQTFWFOUDMPVEOBUJWFEBZTKQDOEUUBMLT

    View full-size slide


  29. ৄ͘͠͸1PEEF&OHJOFFS
    1PEDBTUͰ঺հ͞Ε͍ͯ·͢
    IUUQTBODIPSGNQPEEFFOHJOFFSFQJTPEFTLVCFGPSL*TUJP
    JOUFHSBUFEUFMFQSFTFODFFJWEIB

    View full-size slide

  30. ΞΠσΟΞग़͔͠Β࣮ફ·Ͱ
    w ͢΂ͯΛ͓ۚ׵ࢉͯ͠༏ઌ౓͕ߴ͍ͱ͜ΖΛணख
    w ༷ʑͳϩʔϧΛר͖ࠐΜͰͷΞΠσΟΞιϯ͸౓ํ਑มΘΔ͘Β͍ޮՌత
    ૝ఆ֎ͷ໰୊
    w ಉࣦ͡ഊ͠ͳ͍Α͏ʹϙετϞʔςϜ
    ΞΠσΟΞ͸ෳ਺ͷ໰୊Λղܾ͢Δ
    w ίετࣗମͱίετͷ૿Ճ཰ΛԼ͛Δɻίετͷڐ༰ൣғΛ޿͛Δɻ

    ·ͱΊ
    ϚγϯΛޮ཰తʹ࢖͍͜ͳ͍ͤͯΔʁ

    View full-size slide

  31. 8 F B S F ) J S J O H
    IUUQTXXXXBOUFEMZDPNDPNQBOJFTXBOUFEMZ

    View full-size slide