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

Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt

Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt

#w8lt 第一回 (2015-04-22) の発表資料です
http://w8lt.connpass.com/event/14297/

Daisuke Fujita

April 22, 2015
Tweet

More Decks by Daisuke Fujita

Other Decks in Technology

Transcript

  1. ͘͞Β VPS + Ubuntu VPS 2G Ubuntu 14.04 ߏ੒؅ཧ: Chef

    ΞϓϦέʔγϣϯ: Docker ίϯςφ ֎෦ετϨʔδ: S3 DNS αʔϏε: Route53 ؂ࢹܥ: Datadog, Papertrail
  2. ͘͞Β VPS + Ubuntu ap-northeast1 (Tokyo) VPS 2G nginx-proxy Web

    App Worker Web App redis postgres dd-agent
  3. CoreOS ͢΂ͯͷΞϓϦέʔγϣϯΛ
 Docker ίϯςφͱͯ͠ಈ͔͢ Core ೖΕସ͑ʹΑΔࣗಈΞοϓσʔτ (like Chrome) etcd +

    fleet ʹΑΔΫϥελϦϯά CoreOS is designed for security, consistency, and reliability
  4. DigitalOcean + CoreOS 1GB Droplet * 1 + 512MB Droplet

    * 1 (to be 2) CoreOS stable ߏ੒؅ཧ: Terraform + cloud-config ΞϓϦέʔγϣϯ: Docker ίϯςφ ֎෦ετϨʔδ: S3 DNS αʔϏε: Route53 ؂ࢹܥ: Datadog, Papertrail
  5. DigitalOcean + CoreOS ʢཧ૝ʣ ap-northeast1 (Tokyo) sgp1 (Singapole) nginx-proxy Web

    App Worker redis postgres dd-agent load balancer Web App etcd lb web db
  6. CoreOS Droplets web (1GB)
 Web ΞϓϦέʔγϣϯ, Worker db (512MB)
 PostgreSQL,

    Redis σʔλετΞ
 ϗετϚγϯʹσʔλӬଓԽ lb (512MB)
 Route53 ͔ΒͷΞΫηεΛ web ʹதܧ͢Δ
  7. ݄ʑͷ͓ࢧ෷ྉۚ sakura VPS 2G
 1,552ԁ DigitalOcean 1g*1 + 512mb*2
 20.88

    USD = 2,499ԁ t2.micro*3
 43.9 USD = 5,254ԁ t2.micro*1 + ELB + db.t2.micro + cache.t2.micro
 76.72 USD = 9,179ԁ Πϯελϯε͸੍࣌ؒ՝ۚc"84BQOPSUIFBTUc3PVUFͱ4ͱసૹྔ͸ؚ·ͳ͍