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

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

E8ac626646da35420ffba5da02f4787d?s=47 Shuichi Ohsawa
November 22, 2018

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

E8ac626646da35420ffba5da02f4787d?s=128

Shuichi Ohsawa

November 22, 2018
Tweet

Transcript

  1. ɹٸ੒௕͢ΔγεςϜʹ௥͍ͭͨ͘Ίͷ Πϯϑϥվળ΁ͷऔΓ૊Έ 4IVJDIJ0ITBXB!PITBXB 4BOTBOʷ.5FDI/JHIUʙϨΨγʔγεςϜʹཱͪ޲͔͑ʂʙ

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

    Yࡀɻݟͨ໨೥ྸ  Data Strategy & Operation Center Development Group ΠϯϑϥΤϯδχΞ
  3. *5ΠϯϑϥΤϯδχΞɺ43&ͷํ ։ൃΛ΍Δ͚Ͳ*5Πϯϑϥ΋΍Δ͍ͬͯΔํ ຊ೔Ͳͷ͙Β͍དྷ͍ͯΔͷͰ͠ΐ͏͔ʁ

  4. ·͋ɺ͍ͦͦ͜͜·͢Ͷ (^^)

  5. Sansanͷ໊ࢗσʔλԽγεςϜ 5

  6. ໊ࢗσʔλԽγεςϜ(GEES) ࣗಈೖྗ ΦϖϨʔλ GEES ໊ࢗը૾ ໊ࢗσʔλ ໊ࢗը૾ ໊ࢗσʔλ

  7. ٸ੒௕Λࢧ͑ΔγεςϜ΋มԽ͕ඞཁ - ਓ΋ن໛΋େ͖͘ͳ͖͚ͬͯͨͲɺΠϯϑϥ୲౰͸૿͑ͳ͍ŋŋŋ - ු͖ூΓʹͳΔ՝୊ͷ೔ʑ - αʔόͷϓϩϏδϣχϯάɾΦʔτεέʔϧ - σϓϩΠ -

    Ϣʔβ؅ཧ - ηΩϡϦςΟ - etc ɹऔΓ૊ΜͰ͖ͨࣄྫΛ̏ͭ঺հ
  8. ΠϯϑϥCI - ChefʹΑΔΠϯϑϥίʔυԽ - Ϩγϐ͕ਖ਼͘͠ಈ࡞͢Δ͔͸࣮ࡍʹద༻ͯ͠Έͳ͍ͱ෼͔Βͳ͔ͬͨ - Test Kitchen + Serverspec

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

    Capistrano + Stretcher + Consul ʹΑΔPullܕσϓϩΠ - ϦϦʔε࣌ؒͷ୹ॖɺαʔό௥Ճʹ͔͔Δ࣌ؒͷ୹ॖ
  10. σϓϩΠվળ ʮΠϯϑϥΤϯδχΞ͕ConsulͱStretcherΛ͔ͭͬͨσϓϩΠվળͰ։ൃޮ཰ͷ޲্ʹߩݙͨ͠࿩ʯ https://speakerdeck.com/ohsawa0515/jtf2017-consul-stretcher-deploy SSH

  11. Ϛϧνεςʔδϯά؀ڥͷߏங - ࣮࣭։ൃ؀ڥͱͯ͠࢖ΘΕ͍ͯΔεςʔδϯά؀ڥ - ༷ʑͳ༻్Ͱ࢖ΘΕ͍ͯΔ - ϦϦʔεલͷಈ࡞ݕূ - ύʔτφʔ༷΁ͷ࿈ܞςετ -

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

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

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