KAIZEN platform Inc. における運用自動化

KAIZEN platform Inc. における運用自動化

B4afc7d853d7f1cb6a253d3c7183c05a?s=128

Naoya Ito

June 20, 2014
Tweet

Transcript

  1. ,"*;&/QMBUGPSN*OD ʹ͓͚Δӡ༻ࣗಈԽ /BPZB*UP ,"*;&/QMBUGPSN*OD  ୈճ+"846(

  2. QMBO#$% "#ςετͷ4BB43BJMT+BWB4DSJQU

  3. QMBO#$%ͱ"84 •  ϑϧ"84 – &$ DMBSHFʙ  – 3%4 – &-# – $MPVE'SPOU – 4

    (MBDJFS – 3PVUF – &MBTUJ$BDIF
  4. ߦಈࢦ਑ ౓ಉ͡ࣄΛ܁Γ ฦ࣌͢͸ࣗಈԽ

  5. αʔόʔߏ੒ࣗಈԽ $IFG 4FSWFSTQFD

  6. Πϯϑϥ΋ɺ(JU)VC

  7. $JSDMF$*ͰΠϯϑϥ$*

  8. Πϯϑϥ$*ͷྲྀΕ •  $IFGϨγϐΛ(JU)VC΁HJUQVTI •  $JSDMF$*͕ࣗಈͰݕ஌ –  $JSDMF$*ͷத͔Β7BHSBOUͰ&$ΛWBHSBOU VQ –  $JSDMF$*͔ΒΠϯελϯε΁$IFGద༻

    –  4FSWFSTQFDςετΛ࣮ߦ –  ςετऴΘͬͨΒWBHSBOUEFTUSPZ
  9. $IFGͷద༻1BSBLOJGF •  LOJGFTPMPͰͷ$IFGద༻ΛฒྻԽ •  ࣗࣾ։ൃͷ1BSBLOJGF – ϩάͳͲΛ͍͍ײ͡ʹϊʔυຖʹग़ྗ

  10. ՝୊ •  4FSWFSTQFD$*ʹ͕͔͔࣌ؒΔΑ͏ʹ – ݱࡏ$JSDMF$* %PDLFSͰͷςετߴ଎Խ ʹணख

  11. σϓϩΠͷࣗಈԽ •  $JSDMF$*ͰσϓϩΠ – ಛఆͷϒϥϯνʹมߋ͕͋ͬͨΒσϓϩΠ    production:        

     branch:  deployment/production          commands:              -­‐  ./script/assets_precompile.sh:              -­‐  bundle  exec  cap  production  deploy:migrations:                    branch:  deployment/qa      qa:          branch:  deployment/qa          commands:              -­‐  ./script/assets_precompile.sh:              -­‐  bundle  exec  cap  qa  deploy:migrations:  
  12. ϒϥϯνઓུ master deployment/ edge deployment/ production มߋ͸NBTUFS ΁QVMMSFRVFTU NFSHFͨ͠ ΒࣗಈͰ

    FEHF΁ɻ (開発環境) ຊ൪ϦϦʔε͸ NBTUFS͔Β QSPEVDUJPO΁QVMM SFRVFTU QSPEVDUJPO΁ NFSHF͞ΕΔͱຊ ൪΁ࣗಈσϓϩΠ FEHF΁QVTI ͞ΕΔͱ։ൃػ΁ ࣗಈσϓϩΠ
  13. 1VMM3FRVFTUσϓϩΠ •  σϓϩΠλεΫ͸1VMM3FRVFTUͰ࣮ߦ –  σϓϩΠͷݟ͑ΔԽ –  NFSHFϘλϯΛԡ͢ͱ$JSDMF$*ܦ༝ͰσϓϩΠ͕૸Δ

  14. σϓϩΠ1VMM3FRVFTU͸ νϟοτͰ •  IVCPU –  σϓϩΠ؀ڥ͕खݩʹඞཁͳ͍ɻ୭Ͱ΋σϓϩΠͰ ͖Δɻ1VMM3FRVFTUͰݟ͑ΔԽ͞ΕΔ –  $IFGద༻΋ಉ༷ͷखॱͰͰ͖ΔΑ͏։ൃத

  15. ϦϦʔε࣌ͷνΣοΫϦετΛ IVCPU͕ࣗಈ࡞੒

  16. σϓϩΠલޙͷ֬ೝςετ •  &&ςετͰࣗಈԽ – $BTQFS+4 – #SPXTFS4UBDL

  17. $BTQFS+4Ͱ&&

  18. &&΋΋ͪΖΜ$JSDMF$*

  19. #SPXTFS4UBDL

  20. #SPXTFS4UBDL •  Ϋϩεϒϥ΢βͷςετ࣮ߦ͕Մೳ •  ҎԼͷςετʹར༻ – +BWB4DSJQUͰॻ͔ΕͨϩδοΫͷςετ X+BTNJOF LBSNB  – ސ٬αΠτ্Ͱ࣮ߦ͞ΕΔ+BWB4DSJQUίϯ

    ϙʔωϯτͷΫϩεϒϥ΢βςετ X STQFD TFMFOJVNXFCESJWFS 
  21. ςετͷ࣮ߦ໋ྩ͸νϟοτͰ $JSDMF$*΍#SPXTFS4UBDLͷ࢖͍ํ͸஌ Βͳͯ͘΋&&ςετΛ୭Ͱ΋࣮ߦͰ͖Δ

  22. CPUͷڠௐʹΑΔࣗಈԽ •  CPU͕CPUΛૢ࡞ͯ͠2"ɺςετ࣮ߦɺ ϦϦʔεσϓϩΠϑϩʔΛ࣮ߦ͢Δ ʮ͓લͷมߋؒ΋ͳ͘Ͱ Δ͔Β࠷ऴ֬ೝ͠ΖΑʯ ͱ͍͏ͷ΋IVCPU͕ఆظ తʹݺͼ͔͚ͯ͘Δ CPU͕IVCPUʹ ໋ྩΛग़͢

  23. ؂ࢹͱϞχλϦϯά •  TFOTV .BDLFSFM X$MPVE8BUDI  $IFGΛద༻͢ΔͱࣗಈͰ TFOTVαʔόʔͱ .BDLFSFMʹϊʔυ͕ొ࿥ ͞ΕΔ

  24. Ξϥʔτ1BHFS%VUZ TFOTV͕ҟৗΛݕ஌͢ Δͱ1BHFS%VUZ͕ࣗ ಈͰ୲౰ʹ ి࿩

  25. $IBU0QT

  26. ίʔυϨϏϡϫʔͷࣗಈΞαΠϯ

  27. IVCPUͰΫϩεϒϥ΢βͷ εΫγϣࡱӨ

  28. ேձͷ։࢝ ϦϞʔτձٞ63-ΛҊ಺

  29. IVCPUOVMMQPJOUFSFYDFQUJPO

  30. খωλ͜͏͍͏ͷ΋ࣗಈԽ

  31. খωλ͜Μͳͷ΋

  32. %FWFMPQFS1SPEVDUJWJUZ •  2ʮ͜ͷखͷࣗಈԽ΍Δۀ຿࣌ؒͲ͏΍ͬͯ࡞ΔΜͰ͢ ͔ ʯ •  "ʮͦΕΛϛογϣϯʹͯ͠ΔνʔϜ͕͋Γ·͢ʯ

  33. ଓ͖͸΢ΣϒͰ IUUQLBJ[FOQMBUGPSNJOIJSJOHFOHJOFFSIUNM

  34. ·ͱΊ •  ౓܁Γฦͨ͠ΒࣗಈԽɺ͕Ϟοτʔ •  ࣗಈԽ͸Ұ೔ʹͯ͠ͳΒͣ •  ࣗಈԽΑΓɺܗࣜ஌Խ͕ॏཁ – ʮ୭Ͱ΋࣮ߦͰ͖ΔΑ͏ʹ͢Δʯ •  "84͋Μ·Γؔ܎ͳ͔ͬͨ