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

EKS for Fargate vs EC2 Design comparison

Ad22fcf5773b906c08330f4d57242212?s=47 Kohei Ota
December 05, 2019

EKS for Fargate vs EC2 Design comparison

Ad22fcf5773b906c08330f4d57242212?s=128

Kohei Ota

December 05, 2019
Tweet

More Decks by Kohei Ota

Other Decks in Technology

Transcript

  1. &,4GPS'BSHBUFBOE&$ %FTJHODPNQBSJTPO !JOEVDUPS

  2. ͜ͷࢿྉͷ໨త w &,4GPS'BSHBUFʹ͸͍͔ͭ͘ͷ੍ݶࣄ߲͕͋Δ@ w ͜ΕΛ஌Δ͜ͱͰɺಈ͔͍ͨ͠ϫʔΫϩʔυʹରͯ͠'BSHBUF͕ద੾ͳ ͷ͔ͦ͏͡Όͳ͍ͷ͔Λཧղ͢Δ w େ·͔ͳߏ੒ʢσβΠϯʣͷ؍఺͔Βɺ&,4΍'BSHBUF͕ͳʹΛ΍͍ͬͯ Δͷ͔Λཧղ͢Δ w

    ,VCFSOFUFTΛ׬શʹཧղ͢Δ
  3. &,4GPS'BSHBUFͬͯ؆୯ͳͷʁ

  4. :FTBOEOP

  5. ࣮ࡍɺҎલΑΓ͸؆୯ʹͳͬͨ w ϫʔΧʔϊʔυʢϊʔυάϧʔϓʣΛ؅ཧ͢Δඞཁ͕ͳ͘ͳͬͨ w ίϯτϩʔϧϓϨʔϯͰ͋ΔϚελʔͱɺσʔλϓϨʔϯͰ͋Δ
 ϫʔΧʔͲͪΒͷ؅ཧ΋"84ʹ·͔ͤͯྑ͍ w Ϋϥελʔ؅ཧऀ͸Ϛελʔͷόʔδϣϯͱɺ'BSHBUFͷ
 ϙϦγʔ؅ཧ͚ͩΛ͢Ε͹ྑ͍ w

    ΞϓϦέʔγϣϯ։ൃऀ͸ίϯςφΛೖΕସ͑Δํ๏͚ͩΛ
 ஌͍ͬͯΕ͹Α͍
  6. ͨͩ͠ɺ'BSHBUFࣗମͷ
 ཧղ͕લఏ

  7. 'BSHBUFͷಛ௃ w ࣮ଶ͸ίϯςφϥϯλΠϜ͚͕ͩೖͬͨ࢖͍ࣺͯͷ7. w $POUBJOFSE %PDLFSͷཪଆͰಈ͘ϥϯλΠϜ PO'JSFDSBDLFS w IUUQTHJUIVCDPNpSFDSBDLFSNJDSPWNpSFDSBDLFS w

    ࠷௿ར༻ྉۚ෼ɺҎ߱͸ඵຖʹ՝ۚ Πϝʔδͷ1VMM͔ΒλεΫऴྃ  w &$4Ͱ͸ʮσόοάͰ͖ͳ͍ʯͱͯ͠೰ΈͷλωͰ΋͋ͬͨ
  8. ϫʔΧʔͱͯ͠ͷ &$ͱ'BSHBUFΛൺ΂Δ

  9. ͦͷલʹɾɾɾ

  10. &,4ͷಛ௃͓͞Β͍ w .BOBHFE$POUSPM1MBOF Ϋϥελʔ؅ཧऀ͸ࡉ͔͘ϝϯς͠ͳ͍  w &$ BT%BUB1MBOF  w

    ࠷ۙ·Ͱ͸ ී௨ʹ&$Λ؅ཧ͠ͳ͍ͱ͍͚ͳ͔ͬͨ w جຊతͳػೳͷΈ͕ఏڙ͞Εɺࣗ෼ͷ޷͖ͳΑ͏ʹΧελϚΠζͰ͖Δ
  11. &,4 ,VCFSOFUFT ͷ͓͞Β͍ 71$ "84ͷ
 ίϯϙʔωϯτ & / * &

    / * &$ &$
  12. &$GPS'BSHBUF 71$ "84ͷ
 ίϯϙʔωϯτ 'BSHBUF 'BSHBUF

  13. &,4GPS'BSHBUFͷϝϦοτ w /PEFͷ؅ཧ͕͍Βͳ͘ͳͬͨ w ϦιʔελΠϓͷࢦఆෆཁ w &$ͷεέʔϦϯάͷ͜ͱΛߟ͑ͳͯ͘΋ྑ͘ͳͬͨ

  14. &,4GPS'BSHBUFͷ੍໿ w 'BSHBUFͷ7.͕1PEͷཁٻϦιʔεྔʹԠͯ͡ಈతʹىಈ͢Δ੍໿ w 1PEͱ/PEFͷؔ܎͕ 1PEͱωοτϫʔΫͷؔ܎΋  w %BFNPO4FU͕࢖͑ͳ͍ w

    1PEͷىಈʹ͕͔͔࣌ؒΔ ͓͓ΑͦT  w ݱঢ়ɺ/-#$-#͸ར༻Ͱ͖ͳ͍ w (16͕࢖͑ͳ͍
  15. 1PEͱ/PEFͷؔ܎͕ w 'BSHBUF͸7.্Ͱ1PEΛͭݐͯΔڍಈΛ͢Δ w %FQMPZNFOUͷ3FRVFTUT-JNJUTʹॻ͔Εͨ෼ͷϦιʔεΛ
 ஧࣮ʹ֬อ͢Δ w ͨͩ͠ɺ7.ʹ͖ͭ$16(#3".·Ͱ w ,VCFSOFUFTίϯϙʔωϯτͰ΋.#ఔ౓ͷϝϞϦΛফඅ

    w ෳ਺1PEΛಉҰͷ/PEFʹల։͢ΔγφϦΦ͕ଘࡏ͠ͳ͍
  16. %BFNPO4FU͕࢖͑ͳ͍ w 1PE/PEFʹͳΔͷͰɺͦ΋ͦ΋ʮ/PEFʹݸͣͭ഑ஔ͍ͨ͠ʯͱ͍ ͏ؾ͕࣋ͪൃੜ͠ͳ͍ w qVFOUE΍QSPYZɺEBUBEPHͷΤʔδΣϯτͳͲ͸4JEFDBSίϯςφͰσϓ ϩΠ͢Δ

  17. 1PEͷىಈʹT͔͔Δ w 1PEΛ্ཱͪ͛ΔλΠϛϯάͰ'BSHBUFͷ7.্ཱ͕͕ͪΔ w 7.্ͷίϯςφϥϯλΠϜ΋৽نͰ্ཱ͕ͪΔͷͰ
 ΠϝʔδΩϟογϡ͕࢓૊Έ্ଘࡏ͠ͳ͍ w ίϯςφ্ཱ͕͕ͪΔ·Ͱʹຖճ7.࡞੒ˠΠϝʔδͷ1VMMΛߦ͏ͨΊɺ 1PE͕3FBEZʹͳΔͷʹ͕͔͔࣌ؒΔ

  18. $-#/-#͕࢖͑ͳ͍ w 'BSHBUF͸7.ࣗମ͕71$ωΠςΟϒͳ/FUXPSL"EESFTTΛ࣋ͪ
 &/*ͳͲΛ࣋ͨͳ͍ಛघͳߏ੒ w 'BSHBUFʹ$-#/-#ΛΞλον͢Δ͜ͱ͸ՄೳͰ͸͋Δ͕ɺ,VCFSOFUFT ͷجຊίϯϙʔωϯτͱͯ͠͸ݱঢ়࢖͑ͳ͍ w ࢖͍͍ͨ৔߹͸"84$MPVE1SPWJEFSͷ$POUSPMMFSʹखΛՃ͑Δඞཁ༗ w

    "-#Λ࢖͏৔߹΋*1Ϟʔυʹͯ͠4FSWJDF$MVTUFS*1ʹ͢ΔͳͲบ͕͋Δ
  19. 'BSHBUFʹ޲͔ͳͦ͏ͳ͜ͱ w ٸܹͳεύΠΫ΁ͷରԠ w ϗοτελϯόΠ΋Ͱ͖ͳ͍ͨΊ w Ϧιʔεཁٻྔ͕සൟʹมΘΔΑ͏ͳϫʔΫϩʔυΛ௿஗ԆͰಈ͔͍ͨ͠

  20. 'BSHBUFʹ޲͍ͯͦ͏ͳ͜ͱ w ༷ʑͳόονͷू໿ج൫ͱͯ͠ w &$ͷεέʔϦϯάΑΓ΋΋ͬͱॊೈʹཁෆཁ͕͸͖ͬΓͨ͠όονॲ ཧͳͲ͸ɺ'BSHBUFͷϦιʔεͱͷ૬ੑ͕Αͦ͞͏ʁ w ӡ༻ίετΛ࡟ݮ͍ͨ͠ w &$ͷ೔ʑͷϝϯςͰ͸༷ʑͳ͜ͱΛܧଓతʹ΢Υον͢Δඞཁ͕͋Δ