平成の終わりに振り返るDocker Swarmの話

Ad22fcf5773b906c08330f4d57242212?s=47 Kohei Ota
November 21, 2018

平成の終わりに振り返るDocker Swarmの話

Ad22fcf5773b906c08330f4d57242212?s=128

Kohei Ota

November 21, 2018
Tweet

Transcript

  1. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS.FFUVQ5PLZP גࣜձࣾ;0;0ςΫϊϩδʔζ

    ։ൃ෦43&νʔϜ ଠాߤฏ ฏ੒ͷऴΘΓʹৼΓฦΔ %PDLFS4XBSNͷ࿩
  2. ϓϩϑΟʔϧ 43&νʔϜॴଐͷΠϯϑϥΤϯδχΞ %PDLFS΍ίϯςφɺͦΕʹؔΘΔٕज़͕޷͖Ͱ͢ ࠷ۙ͸೦͚ͨͩ͡Ͱ্ཱ͕ͪΔαʔόʔΛເݟ͍ͯ·͢ ;0;0ςΫϊϩδʔζ ։ൃ෦43&νʔϜ ଠాߤฏ Copyright © ZOZO

    Technologies, Inc. All Right Reserved.
  3. ˓೔ຊ࠷େڃͷϑΝογϣϯγϣοϐϯάαΠτΞϓϦ ˓ Ҏ্ͷγϣοϓɺ Ҏ্ͷϒϥϯυͷऔΓѻ͍ ˓ৗ࣌ສ఺Ҏ্ͷ঎඼ΞΠςϜ਺ͱຖ೔ฏۉ ఺Ҏ্ͷ৽ண঎ ඼Λܝࡌ ˓ଈ೔഑ૹαʔϏεΪϑτϥοϐϯάαʔϏεπέ෷͍ͳͲ IUUQ[P[PKQ Copyright

    © ZOZO Technologies, Inc. All Right Reserved.
  4. ˓೔ຊ࠷େڃͷϑΝογϣϯίʔσΟωʔτΞϓϦ ˓ ສμ΢ϯϩʔυಥഁɺίʔσΟωʔτ౤ߘ૯਺͸ສ݅ ˓શੈքʢ"QQ4UPSF(PPHMFQMBZ͕ར༻ՄೳͳશͯͷࠃʣͰμ ΢ϯϩʔυ͕Մೳ ˓ສਓҎ্ͷϑΥϩϫʔΛ࣋ͭϢʔβʔʢ8&"3*45"ʣ΋஀ੜ IUUQTXFBSKQ Copyright © ZOZO

    Technologies, Inc. All Right Reserved.
  5. ˓౰͕ࣾಠࣗʹ։ൃͨ͠࠾ੇ༻ϘσΟʔεʔπ ˓શମʹࢪ͞ΕͨυοτϚʔΧʔΛεϚʔτϑΥϯΧϝϥͰ౓ࡱ Ө͢Δ͜ͱͰɺମܕσʔλΛܭଌ ˓ܭଌͨ͠ମܕσʔλ͸ɺॠ࣌ʹ%ϞσϧԽ͞Εɺ;0;0508/Ξ ϓϦʹอଘɻ%Ϟσϧ͸͋ΒΏΔ֯౓ʹಈ͔͢͜ͱ͕Ͱ͖ɺମܕΛ ౓νΣοΫ͢Δ͜ͱ͕Մೳ IUUQ[P[PKQ[P[PTVJU Copyright © ZOZO

    Technologies, Inc. All Right Reserved.
  6. ˓ʮ;0;046*5ʯͰܭଌͨ͠ମܕσʔλΛ΋ͱʹɺҰਓͻͱΓͷମ ܕʹ߹ͬͨʮ͋ͳͨαΠζʯͷΞΠςϜ ˓ʮڀۃͷϑΟοτײʯΛ࣮ݱͨ͠ϕʔγοΫΞΠςϜΛఏڙ άϩʔόϧαΠτʮ;0;0DPNʯͰւ֎ల։ ˓ΞΠςϜ̩γϟπɺσχϜύϯπɺγϟπɺϏδωεεʔπɺ ωΫλΠɺϘʔμʔ̩γϟπɺ௕କΫϧʔωοΫ̩γϟπͳͲ IUUQ[P[PKQQC Copyright © ZOZO

    Technologies, Inc. All Right Reserved.
  7. Copyright © ZOZO Technologies, Inc. All Right Reserved. ஫ҙɿ%PDLFS4XBSNʹؔ͢Δ ٕज़తͳ࿩͸ࠓճ͋·Γ͠·ͤΜ

  8. Copyright © ZOZO Technologies, Inc. All Right Reserved. ΞδΣϯμ ɾ%PDLFS4XBSNͱ͸

    ɾආ͚ͯ͸௨Εͳ͍,VCFSOFUFTͷ͸ͳ͠ ɾͳͥɺࠓ%PDLFS4XBSNͳͷ͔
  9. Copyright © ZOZO Technologies, Inc. All Right Reserved. ͪΐͬͱ͚ͩόζͬͨએ఻

  10. Copyright © ZOZO Technologies, Inc. All Right Reserved. Έͳ͞Μ

  11. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS࢖ͬͯ·͔͢ʁ

  12. Copyright © ZOZO Technologies, Inc. All Right Reserved. ຊ൪Ͱ%PDLFS࢖ͬͯ·͔͢ʁ

  13. Copyright © ZOZO Technologies, Inc. All Right Reserved. ຊ൪Ͱ,VCFSOFUFT࢖ͬͯ·͔͢ʁ

  14. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS4XBSNΛ஌͍ͬͯΔਓʁ

  15. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS4XBSNΛ஌͍ͬͯΔਓʁ

  16. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS4XBSNΛ࢖͍ͬͯΔ ͨ

    ਓʁ
  17. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS4XBSNͱ͸ ɾ%PDLFS͕ࣾެࣜΦʔέετϨʔγϣϯπʔϧͱ͔ͯͭͯ͠ग़͍ͯͨ͠

    ίϯςφΦʔέετϨʔγϣϯπʔϧ ɾݱࡏ͸%PDLFSʹ౷߹͞Εɺz4XBSN.PEFzͱͯ͠࢒͍ͬͯΔ ɾ%PDLFSΛೖΕΔ͚ͩͰଈ࢖͑Δɺ͓खܰΦʔέετϨʔγϣϯ πʔϧ ɾ%PDLFSΛ஌͍ͬͯΕ͹ɺΫϥελ্ཱͪ͛Δ·Ͱͷֶशίετ ͕ͱͯ΋௿͍
  18. Copyright © ZOZO Technologies, Inc. All Right Reserved. 4XBSNΑͦ͞͏͡ΌΜʂ ͳΜͰΈΜͳ࢖Θͳ͍ͷʁʁʁ

  19. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS4XBSNͷ࢖͍ͮΒ͍ͱ͜Ζ ɾωοτϫʔΫपΓ͕΍΍͠ΐ΅͍

    ɾ$&ͩͱ$/*࢖͑ͳ͍ͱ͔ ˞&&͸࢖ͬͨ͜ͱແ͍͚Ͳ͍Ζ͍Ζ௥Ճػೳ͋ͬͯศརͦ͏ ɾ؅ཧը໘͕ެࣜͩͱ͠ΐ΅͍ ɾ๭੨ࢁ͞Μ͕TXBSNQJUͷ঺հهࣄॻ͍ͯͯਆ͔Αͱࢥͬͨ ɾΫϥ΢υϓϩόΠμͷରԠ͕΄ͱΜͲͳ͍ ɾ%PDLFSGPS"84ɾɾɾ
  20. Copyright © ZOZO Technologies, Inc. All Right Reserved. %PDLFS.BDIJOFͰϚγϯΛཱͯͯ %PDLFS4XBSNͰٵ্͍͛Δͷ͸ΘΓͱศར

  21. Copyright © ZOZO Technologies, Inc. All Right Reserved. 4XBSN͕ѱ͍ͱ͍͏ΑΓ ,VCFSOFUFT͕શ෦ೖΓ͗͢Δʂ

  22. Copyright © ZOZO Technologies, Inc. All Right Reserved. ,VCFSOFUFTͷ΍͹͍ͱ͜Ζʢ͍͍ͱ͜Ζʣ ɾ%PDLFSʹ଍Γͳ͍ͱࢥͬͨ΋ͷ͕େମೖͬͯΔ

    ɾΦʔτεέʔϦϯάͱ͔ ɾѹ౗తͳίϛϡχςΟͷڧ͞ ɾ֤छΫϥ΢υϓϩόΠμ͕༂ىʹͳͬͯରԠͯ͠Δ͋ͨΓ
  23. Copyright © ZOZO Technologies, Inc. All Right Reserved. ,VCFSOFUFTͷ΍͹͍ͱ͜ΖʢΘΔ͍ͱ͜Ζʣ ɾѹ౗తͳ೉͠͞

    ɾ෼ࢄॲཧ׬શʹཧղͨ͠ ɾ౰ͨΓલ͚ͩͲɺ3BJMTͰΘʔ͍ʂαʔϏε࡞Εͨʂͱ͔ݴͬͯΔͱ͖ ʹಋೖ͢Δπʔϧ͡Όͳ͍ ɾ,VCFSOFUFTΛ؅ཧ͢ΔͨΊͷ,VCFSOFUFTͱ͔΍Δͷ͜Θ͍ ɾ෼ࢄج൫ͱ͔͍Βͳ͍Ϩϕϧͷখ͞ͳ8FCΞϓϦͷ؀ڥʹೖΕΔ΄Ͳ ͷεέʔϧ͡Όͳ͍
  24. Copyright © ZOZO Technologies, Inc. All Right Reserved. ͋ͷ೔๻͕ͨͪ໨ࢦ͍ͯͨ͠ੈք͸ ຊ౰ʹ͜ͷ,VCFSOFUFTͰ࣮ݱͰ͖Δͷ͔

  25. Copyright © ZOZO Technologies, Inc. All Right Reserved. σϓϩΠͱ͔͍͍ײ͡ʹࣗಈԽͰ͖Δɺ ͍͍Ԙകͷӡ༻Λݟ͚͍ͭͨ

  26. Copyright © ZOZO Technologies, Inc. All Right Reserved. Docker Swarm

    Kubernetes εέʔϦϯά ൒ࣗಈ
 (ίϚϯυͷΈରԠ) શࣗಈ (ManifestͰॻ͚Δ) Network Overlay NetworkΛ௨ͨ͡
 ෛՙ෼ࢄ L4/L7Ͱ͍Ζ͍ΖͰ͖Δ ؂ࢹͱώʔϦϯά ίϯςφ͕ࢮΜͰΔͷΛ֬ೝͨ͠Β৽ ͍͠ίϯςφΛཱͯͯ͘ΕΔ ϔϧενΣοΫ͸σϑΥͰೖ͍ͬͯͳ ͍ LivenessͱReadinessͷ2ͭͷ؍఺Ͱ ؂ࢹͯ͘͠ΕͯɺώʔϦϯάͨ͠Γ τϥϑΟοΫ؅ཧͨ͠Γ ֶशίετ ΄΅Docker ΄΅Docker͡Όͳ͍ Ϋϥ΢υରԠ ஌ͬͯΔݶΓͳ͍ GKE/AKS/EKSͳͲ
  27. Copyright © ZOZO Technologies, Inc. All Right Reserved. ۀ຿ίετʹݟ߹ͬͯ΋͍͍མͱ͠ॴ͸Ͳ͜ʁ ɾ,VCFSOFUFTʁ

    ɾ0QFO4IJGUʁ ɾ3BODIFSʁ ɾ֤छΫϥ΢υʁ ɾ%PDLFS4XBSNͱ͍͏બ୒ࢶ͕͋ͬͯ΋͍͍ͷͰ͸ʁ
  28. Copyright © ZOZO Technologies, Inc. All Right Reserved. ͕࣌ؒ༨ͬͨΒ4XBSNͷσϞΛ΍Δ
 ࢮ๢ϑϥά

  29. Copyright © ZOZO Technologies, Inc. All Right Reserved. ˞ࠓճͷൃදʹؔ͢Δ಺༰͸ɺॴଐ͢Δஂମɾ اۀΛ୅ද͢Δ΋ͷͰ͸ͳ͘ɺݸਓͷҙݟͰ͢