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

Fargateは何がうれしいのか/ fargate-whats-nice

Fargateは何がうれしいのか/ fargate-whats-nice

JAWS-UG コンテナ支部 #14での発表資料です

Shoichiro Nagai(shnagai)

March 20, 2019
Tweet

More Decks by Shoichiro Nagai(shnagai)

Other Decks in Technology

Transcript

  1. $POOFIJUP*ODӬҪউҰ࿠
    ϚϚͷҰาΛࢧ͑Δ
    'BSHBUF͸Կ͕͏Ε͍͠ͷ͔
    +"846(ίϯςφࢧ෦

    View full-size slide

  2. ࣗݾ঺հ
    ӬҪউҰ࿠
    ܦྺ

    4*FSʹͯΠϯϑϥपΓͷۀ຿

    ҰٳDPN

    ʙίωώτʹKPJO

    ࠷ۙͷओͳ׆ಈ

    +BQBO$POUBJOFS%BZTWొஃ

    "844VNNJU4UBSUVQ"SDIJUFDUVSFPGUIF:FBSొஃ

    ձࣾͷ஥ؒͱຊΛॻ͖·ͨ͠ʂʂʂ

    ʮ1)1ϓϩϑΣογϣφϧ։ൃʯ
    ίωώτגࣜձࣾɹΤϯδχΞ

    Πϯϑϥ΢ΣϒΦϖϨʔγϣϯ
    5XJUUFS!TIOBHBJ

    View full-size slide

  3. ϚϚϦͷ͝঺հ
    ̦ˍ̖
    ίϛϡχςΟ
    Ϣʔβʔಉ࢜Ͱ೰ΈΛ
    ૬ஊ͠߹͏̦ˍ̖ػೳɻ
    ճ౴·Ͱͷ࠷ස஋͸໿ඵ
    ϚϚͷੜ׆ʹ໾ཱͭهࣄΛ
    ଟ਺ͷδϟϯϧͰຖ೔഑৴ɻ
    ઐ໳Ո؂मͷهࣄ΋ଟ਺
    ϝσΟΞ

    View full-size slide

  4. w 'BSHBUFͬͯԿऀ
    w 'BSHBUF͕ղܾͯ͘͠ΕΔ՝୊
    ΞδΣϯμ

    View full-size slide

  5. -5ͳͷͰ
    ͚ͭͩ࿩͍ͨ͜͠ͱΛ࿩͠·͢

    View full-size slide

  6. 'BSHBUFͬͯԿऀͰ͠ΐ͏͔

    View full-size slide

  7. Ͳ͏΍Βͭͷղऍ͕͋Γͦ͏Ͱ͢ʂʂ

    View full-size slide

  8. ᶃσʔλϓϨʔϯͱͯ͠ͷ'BSHBUF
    ίϯτϩʔϧ
    ϓϨʔϯ
    σʔλϓϨʔϯ

    View full-size slide

  9. ᶃσʔλϓϨʔϯͱͯ͠ͷ'BSHBUF
    ίϯτϩʔϧ
    ϓϨʔϯ
    σʔλϓϨʔϯ
    ؅ཧ
    Container Container Container
    ະରԠ

    View full-size slide

  10. ᶃσʔλϓϨʔϯͱͯ͠ͷ'BSHBUF
    ίϯτϩʔϧ
    ϓϨʔϯ
    σʔλϓϨʔϯ
    ؅ཧ
    Container Container Container
    ະରԠ
    ίϯςφ λεΫ
    ͕ಈ͘ج൫ͷ
    Ұͭͷબ୒ࢶͱͯ͠ͷ'BSHBUF

    View full-size slide

  11. ᶄ'BSHBUFΛσʔλϓϨʔϯͱͯ͠ಈ͔͢&$4Λࢦ͢ύλʔϯ
    ίϯτϩʔϧ
    ϓϨʔϯ
    σʔλϓϨʔϯ

    View full-size slide

  12. ᶄ'BSHBUFΛσʔλϓϨʔϯͱͯ͠ಈ͔͢&$4Λࢦ͢ύλʔϯ
    ίϯτϩʔϧ
    ϓϨʔϯ
    σʔλϓϨʔϯ
    ͜ͷ૊Έ߹ΘͤΛ'BSHBUFͱশ͢Δ
    ύλʔϯ΋Α͘ݟΔؾ͕͢Δ

    View full-size slide

  13. 'BSHBUFσʔλϓϨʔϯͰ͋Γɺ
    &$4 &$4&$
    ɺ'BSHBUF &$4'BSHBUF
    ͱ
    ཧղ͢Δͷ͸ϛεϦʔυΛੜΉͷͰؾΛ͚͍ͭͨ

    ˞ࣗ෼΋࠷ॳ͸ͦ͏ࢥ͔ͬͯͨΒͦ͜ɻɻɻ

    View full-size slide

  14. 'BSHBUF͕ղܾͯ͘͠Εͨ՝୊

    View full-size slide

  15. XFC൛ͷϚϚϦͰ໿൒೥ຊ൪ӡ༻

    View full-size slide

  16. w &$όοΫΤϯυ͕ҙࣝෆཁʹͳͬͨ
    w ͳͷͰɺλεΫʹׂΓ౰ͯΔϦιʔεͷߟ͑ํ͕γϯϓϧʹ
    w #MVF(SFFO༻ͷ&$ͷ༨৒Ϧιʔε͕ෆཁʹͳΔ
    'BSHBUF͕ղܾͯ͘͠Εͨ՝୊

    View full-size slide

  17. AZ AZ
    &$όοΫΤϯυͰখ͞ΊͷαʔϏεΛ୆ߏ੒Ͱӡ༻͢Δέʔε
    W$16
    .FN(#
    W$16
    .FN(#
    Container Container
    αʔϏεͷλεΫ਺
    ";෼͚ͯՄ༻ੑ୲อ

    λεΫ͸ɺW$16ͱ.FN(#૝ఆ #MVF(SFFO༻ʹഒͷϦιʔεΛৗʹ֬อɻɻɻ

    View full-size slide

  18. AZ AZ
    &$όοΫΤϯυͰখ͞ΊͷαʔϏεΛ୆ߏ੒Ͱӡ༻͢Δέʔε
    W$16
    .FN(#
    W$16
    .FN(#
    Container Container
    αʔϏεͷλεΫ਺
    ";෼͚ͯՄ༻ੑ୲อ

    λεΫ͸ɺW$16ͱ.FN(#·Ͱ࢖͏૝ఆͰΩϟύϓϥ
    σϓϩΠ αʔϏεߋ৽
    Λ܁Γฦ͢ͱ

    ˞σϓϩΠ͸ɺ#MVF(SFFOํࣜ

    λεΫՔಇͤ͞৽ن͕3FBEZʹͳͬͨΒچλεΫΛམͱ͢

    View full-size slide

  19. AZ AZ
    αʔϏεߋ৽ᶃλεΫ͕୆ͷ&$ʹدΔ͜ͱ͕͋Δɻɻ
    W$16
    .FN(#
    W$16
    .FN(#
    Container Container
    ϗετͷW$16ΛλεΫͰ৯͍௵͠ɺ΋͏ยํ͸Ջਓʹɻɻ

    λεΫ഑ஔઓུTQSFBE BUUSJCVUFFDTBWBJMBCJMJUZ[POF JOTUBODF*E

    View full-size slide

  20. AZ AZ
    αʔϏεߋ৽ᶄϗετ͸ೖΕସΘΔ͕ߏ੒͸มΘΒͣ
    W$16
    .FN(#
    W$16
    .FN(#
    Container
    Container
    ϗετͷW$16ΛλεΫͰ৯͍௵͠ɺ΋͏ยํ͸Ջਓʹɻɻ

    View full-size slide

  21. AZ AZ
    αʔϏεߋ৽ᶅ·ͨ·ͨϗετ͸ೖΕସΘΔ͕ߏ੒͸มΘΒͣ
    W$16
    .FN(#
    W$16
    .FN(#
    Container Container
    ϗετͷW$16ΛλεΫͰ৯͍௵͠ɺ΋͏ยํ͸Ջਓʹɻɻ

    View full-size slide

  22. AZ AZ
    &$όοΫΤϯυͰখ͞ΊͷαʔϏεΛ୆ߏ੒Ͱӡ༻͢Δέʔε
    W$16
    .FN(#
    W$16
    .FN(#
    Container
    Container
    ϗετ͸ೖΕସΘΔ͕ߏ੒͸มΘΒͣ

    ϗετͷW$16ΛλεΫͰ৯͍௵͠ɺ΋͏ยํ͸Ջਓʹɻɻ
    W$16Ϧιʔε͕ෆ଍͠
    ϨΠςϯγҧ൓Ҿ͖ى͜͢ࣄଶʹɻɻɻ

    View full-size slide

  23. AZ AZ
    &$όοΫΤϯυͰখ͞ΊͷαʔϏεΛ୆ߏ੒Ͱӡ༻͢Δέʔε
    W$16
    .FN(#
    W$16
    .FN(#
    Container
    Container
    ϗετ͸ೖΕସΘΔ͕ߏ੒͸มΘΒͣ

    ϗετͷW$16ΛλεΫͰ৯͍௵͠ɺ΋͏ยํ͸Ջਓʹɻɻ
    &$Ͱҙਤ௨ΓʹλεΫ഑ஔ͞ΕͯΔ͔Λ
    ؾʹͯ͠ӡ༻͢Δͷਏ͍ɻɻɻ

    View full-size slide

  24. AZ AZ
    &$όοΫΤϯυͰখ͞ΊͷαʔϏεΛ୆ߏ੒Ͱӡ༻͢Δέʔε
    W$16
    .FN(#
    W$16
    .FN(#
    Container Container
    ͋Δ΂͖࢟ʹ໭͢ʹ͸ɺશମͷλεΫ਺Λʹॖখ͔ͯ͠Βʹ໭͢ͱ͍͏ӡ༻͕ඞཁɻɻɻ
    ͜ͷӡ༻ίετ΍ϦεΫΛ
    'BSHBUF͸ղܾͯ͘͠ΕΔ

    View full-size slide

  25. AZ AZ
    'BSHBUFͰλεΫʹରͯ͠ΛϦιʔεΛׂΓ౰ͯΔϞσϧ΁ม׵
    W$16
    .FN(#
    W$16
    .FN(#
    Container
    Container
    &$ϦιʔεΛλεΫͰ෼഑ͯ͠࢖͏ˠλεΫ୯ҐͰϦιʔεΛׂΓ౰ͯ΁
    &$όοΫΤϯυ࣌୅ʹൃੜͨ͠λεΫͷภΓ΍ͦΕʹ͔͔Δӡ༻ίετΛΧοτ

    View full-size slide

  26. w σʔϞϯλεΫͰ&$ʹλεΫͷߏ੒͸ग़དྷΔ
    w ͕ɺNBYJNVN1FSDFOU͔ΒมߋෆՄ
    w ϩʔϦϯάσϓϩΠʹͳΔͷͰཁ݅ʹ߹Θͳ͔ͬͨɻɻɻ
    ୆λεΫͳΒσʔϞϯλεΫͰ͍͍ΜͰ͸

    View full-size slide

  27. ӡ༻ͯ͠Έͯ'BSHBUF҆ఆ͍ͯ͠Δ

    ˞'BSHBUFىҼͷো֐͸

    View full-size slide

  28. ͕ͩɺ3*ߪೖͷ&$ͱൺ΂Δͱ

    ஋Լ͛ͯ͠΋·ͩߴ͍ͷ͕࣮৘

    View full-size slide

  29. ϦβʔϒυϓϥϯΛ଴ͪ๬Ήؾ࣋ͪ

    View full-size slide

  30. w 'BSHBUFͷಋೖʹΑͬͯɺ"84Ͱͷίϯςφӡ༻͕γϯϓϧʹ
    w 'BSHBUF͸σʔλϓϨʔϯͱͯ͠ೝ͓͍ࣝͯͨ͠ํ͕͍͍͔΋
    w Ͱ΋·ͩɺ&$ΑΓߴ͍͔Βશ໘Ҡߦ͸ίετ໘Ͱݫ͍͠ɻɻ


    ˞'BSHBUFؔ࿈Ͱϒϩά΋ॻ͍͍ͯΔͷͰྑ͔ͬͨΒݟ͍ͯͩ͘͞

    IUUQUFDIDPOOFIJUPDPNFOUSZ
    ·ͱΊ

    View full-size slide

  31. ίωώτͰ͸ΤϯδχΞੵۃ࠾༻தͰ͢ʂ

    IUUQTXXXXBOUFEMZDPNQSPKFDUT
    ڵຯ͕͋Δํɺ΋ͬͱ࿩Λฉ͍ͯΈ͍ͨͱࢥ͏ํ͕͍·ͨ͠Β

    ੠Λ͔͚͍͔ͯͨͩ͘ɺ!TIOBHBJ·Ͱ͝࿈བྷ΋Β͑Δͱ͏Ε͍͠Ͱ͢ɻ

    View full-size slide