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

急成長するシステムに追いつくためのインフラ改善への取り組み / sansan-m3-tech-...

Shuichi Ohsawa
November 22, 2018

急成長するシステムに追いつくためのインフラ改善への取り組み / sansan-m3-tech-night-improve-infrastructure

Shuichi Ohsawa

November 22, 2018
Tweet

More Decks by Shuichi Ohsawa

Other Decks in Technology

Transcript

  1. େᖒ लҰ • !PITBXB • ٕज़ϒϩά IUUQTCMPHKJDPNBOJOGP • ݩ1)1FSɻ࠷ۙ(PݴޠͰπʔϧ։ൃ •

    Yࡀɻݟͨ໨೥ྸ  Data Strategy & Operation Center Development Group ΠϯϑϥΤϯδχΞ
  2. ΠϯϑϥCI - ChefʹΑΔΠϯϑϥίʔυԽ - Ϩγϐ͕ਖ਼͘͠ಈ࡞͢Δ͔͸࣮ࡍʹద༻ͯ͠Έͳ͍ͱ෼͔Βͳ͔ͬͨ - Test Kitchen + Serverspec

    Ͱςετ࣮ߦ - ͦΖͦΖCode Pipeline + Code BuildʹҠߦ͍ͨ͠ŋŋŋ ᶃ Pull Request ᶄ Polling ᶅ Build & Run Serverspec ᶆ Result
  3. σϓϩΠվળ - վળલ: CapistranoʹΑΔPushܕσϓϩΠ - 20ऑͷRailsΞϓϦΛҰ੪σϓϩΠ - ͕͔͔࣌ؒΔɺো֐ʹऑ͍ɺΦʔτεέʔϧʹରԠͰ͖ͳ͍ - վળޙ:

    Capistrano + Stretcher + Consul ʹΑΔPullܕσϓϩΠ - ϦϦʔε࣌ؒͷ୹ॖɺαʔό௥Ճʹ͔͔Δ࣌ؒͷ୹ॖ
  4. Ϛϧνεςʔδϯά؀ڥͷߏங - ࣮࣭։ൃ؀ڥͱͯ͠࢖ΘΕ͍ͯΔεςʔδϯά؀ڥ - ༷ʑͳ༻్Ͱ࢖ΘΕ͍ͯΔ - ϦϦʔεલͷಈ࡞ݕূ - ύʔτφʔ༷΁ͷ࿈ܞςετ -

    SansanɺEightͱͷ࿈ܞςετ - Ұ͔ͭ͠ͳ͍ͨΊɺϦιʔεΛऔΓ߹͍ͬͯͨ - TerraformͰෳ਺ͷ؀ڥΛϓϩϏδϣχϯά͢Δ͜ͱͰෳ਺༻్ʹରԠ
  5. - TerraformͰAWSϦιʔεΛ࡞੒ - VPC಺(EC2, ELB, RDS, ElastiCache, Redshiftʣ - VPC֎(CloudSearch,

    DynamoDB, S3) - εςʔτϑϧVPCʹ౿Έ୆αʔό - VPC PeeringͰ֤εςʔδϯάVPCͱ࿈݁
  6. ·ͱΊ - γεςϜͷ੒௕΍૿һʹΑͬͯγεςϜ͸ϨΨγʔʹͳ͍ͬͯ͘ - Πϯϑϥ୲౰͕औΓ૊ΜͰ͖ͨվળࣄྫΛ঺հ - վળࣄྫ΋͕࣌ؒܦͯ͹·ͨϨΨγʔʹŋŋŋ - ϨΨγʔ →

    վળ → ϨΨγʔ → վળ ŋŋŋ ͷແݶϧʔϓ - ੒௕଎౓ʹෛ͚ͳ͍͙Β͍վળΛͯ͘͠ΕΔ஥ؒΛઈࢍ࠾༻ืूதʂ