$30 off During Our Annual Pro Sale. View Details »

Replace a batch application to ECS

Yukiyan
September 09, 2016

Replace a batch application to ECS

Yukiyan

September 09, 2016
Tweet

More Decks by Yukiyan

Other Decks in Programming

Transcript

  1. Table Of Contents Agenda ݱঢ় 1 2 ਐΊํ 3 ؾΛ͚ͭͨ͜ͱ

    4 ͭΒ͔ͬͨ͜ͱ 5 ·ͱΊ 6 ໨ࢦ͢΋ͷ
  2. ਐΊํ ։ൃମ੍ Engineer Leader Engineer Engineer  !  %PDLFSৄ͍͠

    %PDLFSॳ৺ऀ ೥৽ଔೖࣾ %PDLFSॳ৺ऀ શһ"QQMJDBUJPO&OHJOFFS
  3. ਐΊํ&$4؀ڥͷߏங &$4্Ͱ͸͜͏ͳΔ GMVFOUE༻5BTL͕4FSWJDFͱͯ͠ৗ࣌Քಇ͍ͯ͠Δ ECS Cluster Internal CLB EC2 ECS Agent

    Task Service EC2 ECS Agent Task Service EC2 ECS Agent EC2 ECS Agent :24224 :24224 "desiredCount": 2, "deploymentConfiguration": { "maximumPercent": 200, "minimumHealthyPercent": 100 } http://bit.ly/2clQnv5
  4. ਐΊํ&$4؀ڥͷߏங &$4Ͱͷߏ੒ SVOUBTL͢ΔͱCBUDI͕૸Δ ECS Cluster Internal CLB EC2 ECS Agent

    Task Service EC2 ECS Agent Task Service EC2 ECS Agent EC2 ECS Agent :24224 :24224 ECS Scheduler batch Task
  5. ਐΊํ&$4؀ڥͷߏங &$4Ͱͷߏ੒ &-#Λ࢖ͬͨ4FSWJDFEJTDPWFSZ ECS Cluster Internal CLB EC2 ECS Agent

    Task Service EC2 ECS Agent Task Service EC2 ECS Agent EC2 ECS Agent :24224 :24224 ECS Scheduler batch Task sandbox-wakayama.vpclocal:24224 "logDriver": "fluentd", "options": { "tag": “docker.batch-app", "fluentd-address": “sandbox-wakayama.vpclocal:24224" }
  6. ਐΊํ&$4؀ڥͷߏங $JSDMF$*ܦ༝ͰͷϗοτσϓϩΠ ϚʔδΛϑοΫʹίϯςφ͕σϓϩΠ͞ΕΔ deploy aws ecs update-service Serverspec bundle exec

    rake serverspec RSpec bundle exec rake spec ! git merge topic branchΛϚʔδ CircleCI workflow hot deploy via CircleCI " ECR docker push