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

Mackerel をオンプレミスから AWS に移してからの1年半を振り返る / Hatena...

astj
January 23, 2019

Mackerel をオンプレミスから AWS に移してからの1年半を振り返る / Hatena Engineer Seminar #11

astj

January 23, 2019
Tweet

More Decks by astj

Other Decks in Technology

Transcript

  1. On-Premises DC Office AWS Account A (Main) AWS Account B

    AWS Account C Dedicated Hosting ͸ͯͳͷΠϯϑϥߏ੒ …
  2. ͸ͯͳͷΠϯϑϥߏ੒ On-Premises DC Office AWS Account A AWS Account B

    AWS Account C Dedicated Hosting … ΦϯϓϨϛεͷDCͱAWSʢͳͲʣΛซ༻ ྺ࢙తܦҢͰڞ௨ͷAWSΞΧ΢ϯτ αʔϏεʹΑͬͯ͸ಠཱΞΧ΢ϯτ
  3. Mackerelͷߏ੒ RDBMS (Postgres) Redis Tsdb (nginx) (nginx) reverse proxy (nginx)

    (nginx) (nginx) app (Scala) (nginx) (nginx) Sub- systems
  4. hatena.mackerel.host1.cpu.user 2018/02/01T21:15:00Z 44.00 2018/02/01T21:16:00Z 6.00 2018/02/05T21:17:00Z 8.00 hatena.mackerel.host1.cpu.user 2018/02/01T21:15:00Z 44.00

    2018/02/01T21:16:00Z 6.00 2018/02/05T21:17:00Z 8.00 hatena.mackerel.host1.cpu.user 2018/02/01T21:15:00Z 44.00 2018/02/01T21:16:00Z 6.00 2018/02/05T21:17:00Z 8.00 hatena.mackerel.host1.cpu.user 2018/02/01T21:15:00Z 44.00 2018/02/01T21:16:00Z 6.00 2018/02/05T21:17:00Z 8.00 … … ࣌ܥྻσʔλ
  5. On-Premises DC AWS nginx app db redis tsdb (Graphite) subsystem

    tsdb (diamond) Πϝʔδਤ STEP1 (tsdb)
  6. On-Premises DC AWS nginx app db redis tsdb (Graphite) subsystem

    tsdb (diamond) Πϝʔδਤ STEP1 (tsdb)
  7. On-Premises DC AWS tsdb (Graphite) subsystem app db redis tsdb

    (diamond) Πϝʔδਤ HTTP STEP2-1 (app etc) nginx
  8. On-Premises DC AWS tsdb (Graphite) subsystem nginx app db redis

    tsdb (diamond) Πϝʔδਤ HTTP STEP2-2 (app etc)
  9. On-Premises DC AWS tsdb (Graphite) subsystem nginx app db redis

    tsdb (diamond) Πϝʔδਤ HTTP STEP2 (app etc)
  10. On-Premises DC AWS tsdb (Graphite) nginx app db redis tsdb

    (diamond) subsystem Πϝʔδਤ STEP3 (subsystem)
  11. On-Premises DC AWS tsdb (Graphite) nginx app db redis tsdb

    (diamond) subsystem Πϝʔδਤ STEP3 (subsystem)
  12. RDSҠߦ • EC2Ҡߦ౰ॳ͸ PostgreSQL 9.3 (EC2) • ϚωʔδυαʔϏεԽͰ DB ӡ༻ίετΛԼ͛Δ

    • EC2Ҡߦ࣌ͷΑ͏ͳো֐Λආ͚Δ͜ͱʹ΋ܨ͕Δ • ݕ౼ࣄ߲: Aurora for PostgreSQL
  13. RDSҠߦ • 9.3 (EC2) => 9.3 (RDS) => 9.6 (RDS)

    • 2ճʹ෼͚ͯҠߦ • ͦΕͧΕఀࢭϝϯςφϯεΛ࣮ࢪ • ͝ཧղ/͝ڠྗ͋Γ͕ͱ͏͍͟͝·ͨ͠