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

Blue/Green deploymentへの道のり

Blue/Green deploymentへの道のり

2016/10/07 社内勉強会で発表した資料です

Hirokazu Sugiuchi

October 20, 2016
Tweet

More Decks by Hirokazu Sugiuchi

Other Decks in Technology

Transcript

  1. τϐοΫ • Blue/Green deployment ͱ͸Կ͔ • AWSʹ͓͚Δ Blue/Green ͷํ๏͍Ζ͍Ζ •

    Blue/Green deployment ΁ͷಓͷΓ • ʓʓ໰୊ • ·ͱΊ 
  2. 

  3. 

  4. ELB + ASG ੾Γସ͑ํࣜ • DNS͸ͻͱͭͷELBΛࢦͨ͠··ͰELBʹͿΒԼ͛Δ ASG ΛεΠον͢Δ • Auto

    Scaling ͸࠷ۙॻ͍ͨQiitaهࣄΛࢀরͯͩ͘͠ ͍͞ • ͜Ε https://feedforce.qiita.com/critical-alert/items/ 1a39749d838d29b5631a 
  5. 

  6. ͍·ͷࢲʹ͋Γ͕ͪͳ͜ͱ • Χʔωϧʹ੬ऑੑ͕...ύον౰ͯͨ͋ͱ࠶ىಈ͠ͳ͍ͱ • 1୆ͮͭ ELB ͔Β੾Γ཭͠ → 1୆ͮͭͤͬͤͱ yum

    update → ࠶ىಈ → ELB ʹ໭͢ • όοναʔόͦΖͦΖ͍ͬͺ͍͔ͩΒΠϯελϯε1୆૿΍͠·͠ΐ͏ • ΠϯελϯεىಈˠChefͰϓϩϏδϣχϯάˠΞϓϦέʔγϣϯίʔυͷσϓϩΠɻ खಈͰ΍Δͷ໘౗ͩ͠஗͍... • OSͷΞοϓσʔτ͕͍ͨ͠ • Ξοϓσʔτͯ͠ಈ͔ͳ͘ͳͬͨͲ͏͠Α͏ • ৽͘͠αʔό૿΍ͨ͠Βͦͷ౎౓ yum update ͢Δʁ 
  7. AMIͲ͏͢Δ໰୊ • શ෦ೖΓ • OS,ϛυϧ΢ΣΞઃఆ,ΞϓϦέʔγϣϯίʔυ • ௨শΰʔϧσϯΠϝʔδ • ൒෼͚ͩઃఆࡁΈ •

    OS,ϛυϧ΢ΣΞͷΈઃఆࡁΈ(ChefͰϓϩϏδϣχϯά͚ͩ͢Δ) • ࠷খߏ੒(͍·͜͜) • OSͷΈ 
  8. 

  9. ·ͱΊ • DockerΛ࢖͑ʂ • ΞϓϦέʔγϣϯ΋ରԠͰ͖ΔͳΒ΍ΔՁ஋͸͋Δ • ͋ͱ͸࠷ॳ͔Β Docker લఏͰ࡞Δ •

    Blue/Green deployment ͱ͸Կ͔આ໌ͨ͠ • αʔόΛࣺͯ΍͘͢͢Δʹ͸Ͳ͏͢Δ͔આ໌ͨ͠ • ͍Ζ͍Ζͳ໰୊͕͋Δ͜ͱΛઆ໌ͨ͠