Dockerホットデプロイ運用の話 / Operations for Zero Downtime Docker Deployment

A38f7cb47694d51c951f729ddc764a96?s=47 Akira Maeda
September 21, 2016

Dockerホットデプロイ運用の話 / Operations for Zero Downtime Docker Deployment

A38f7cb47694d51c951f729ddc764a96?s=128

Akira Maeda

September 21, 2016
Tweet

Transcript

  1. DockerϗοτσϓϩΠӡ༻ͷ࿩ JAWS Container #6 AKira Maeda Kaizen Platform, Inc. 

  2. I’m Akira Maeda @glidenote Kaizen Platform, Inc. ڞஶɹ αʔό/ΠϯϑϥΤϯδχΞཆ੒ಡຊ DevOpsฤ

    
  3. 

  4. ‣ ޿ࠂӡ༻Λվળ͢ΔαʔϏε ‣ ೥݄ʹЌϦϦʔε ‣ ޿ࠂαʔϏεͳͷͰߴτϥϑΟοΫ ‣ ৴པੑɺϋΠύϑΥʔϚϯε͕ཁٻ͞ΕΔ 

  5. Kaizen Ad
 Infrastructure 

  6. &-# &-# &$ &$ #JH2VFSZ ैདྷͷߏ੒ 

  7. "-# &-# &$4 &$ #JH2VFSZ ৽͍͠ߏ੒ 

  8. ALB + ECS 

  9. ‣ "-# 5BSHFU(SPVQ ͱ&$4 4FSWJDF Λ૊Έ߹Θͤ Δͱ%PDLFSͷϗοτσϓϩΠ͕༰қʹ࣮ݱग़དྷΔ ‣ ϩʔυόϥϯα഑Լͷ৽چίϯςφೖΕସ͑ΛࣗಈͰ΍ͬ ͯ͘ΕΔͷͰɺࣗલͰ࣮૷͠ͳͯ͘΋ྑ͍

    
  10. 3. docker push 4. ecs-deploy 5. docker pull 2. docker

    build, test 1. git merge deployment branch Deploy Flow 
  11. σϓϩΠલͷঢ়ଶ 

  12. σϓϩΠ௚ޙͷঢ়ଶ 

  13. σϓϩΠ׬ྃ 

  14. αʔϏεஅແ͠ʹ
 ίϯςφͷೖΕସ͕͑Ͱ͖Δ 

  15. ৄ͍͠࿩͸ͪ͜Βʹ http://blog.glidenote.com/blog/2016/09/02/alb-ecs-docker-hot-deploy/ 

  16. ίϯςφೖΕସ͑ʹ͕͔͔࣌ؒΔ ‣ ෳ਺ίϯςφΛར༻͠ͳ͍৔߹ɺ޻෉͠ͳ͍ͱίϯςφͷೖ Εସ͕͑஗͘ɺ৽چίϯςφ͕ࠞࡏ͢Δ͕࣌ؒ௕͘ͳΔɻ ‣ ίϯςφ਺ʹର͢ΔΠϯελϯε਺ɺ.JOJNVNIFBMUIZ QFSDFOUɺ.BYJNVNQFSDFOUͳͲͷௐ੔͕ඞཁ ‣ ݱࡏ͸σϓϩΠϑϩʔͷதͰɺ
 FDTDMJTDBMFDBQBCJMJUZJBNTJ[F/


    ͰσϓϩΠલʹΠϯελϯεΛഒʹ૿΍͠ɺσϓϩΠޙʹΠ ϯελϯε਺Λݩʹ໭͢Α͏ʹ͍ͯ͠Δɻ 
  17. ͜ͷํ๏ͩͱίϯςφೖΕସ͕͑଎͍ Minimum healthy percent 100%,
 Maximum percent 200% SFGTIUUQTBXTBNB[PODPNCMPHTDPNQVUFBNB[POFDTMBVODIFTOFXEFQMPZNFOUDBQBCJMJUJFTDMPVEXBUDINFUSJDTTJOHBQPSFBOE GSBOLGVSUSFHJPOT

    
  18. ͜ͷํ๏ͩͱೖΕସ͑ʹ͕͔͔࣌ؒΔ Minimum healthy percent 50%, 
 Maximum percent 100% SFGTIUUQTBXTBNB[PODPNCMPHTDPNQVUFBNB[POFDTMBVODIFTOFXEFQMPZNFOUDBQBCJMJUJFTDMPVEXBUDINFUSJDTTJOHBQPSFBOE

    GSBOLGVSUSFHJPOT 
  19. ෳ਺ίϯςφ ‣ "-#ͩͱ%ZOBNJD1PSU.BQQJOHʹ΋ରԠͯ͠ ͍ΔͷͰɺෳ਺ίϯςφͩͱσϓϩΠ͸ߴ଎ԽͰ͖ Δ ‣ ͨͩσϓϩΠͷͨΊʹ৽نίϯςφ෼ͷ$16ɺϝ ϞϦͳͲͷϦιʔεΛ༨Β͓ͤͯ͘ͷͰɺϦιʔε ޮ཰ѱ͍ 

  20. ·ͱΊ ‣ "-# &$4Ͱ%PDLFSͷϗοτσϓϩΠ͕༰қʹ ͳͬͨ ‣ σϓϩΠ࣌ͷίϯςφೖΕସ͑ߴ଎Խʹ͸ɺ·ͩվ ળͷ༨஍͕͋Δ 

  21. 

  22. Docker΍Γ͍ͨਓ͓଴ͪͯ͠·͢!! https://kaizenplatform.com/hiring/engineer.html#infrastructure_engineer 

  23. Thanks!