Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Daisuke Fujita
April 22, 2015
Technology
620
2
Share
Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt
#w8lt 第一回 (2015-04-22) の発表資料です
http://w8lt.connpass.com/event/14297/
Daisuke Fujita
April 22, 2015
More Decks by Daisuke Fujita
See All by Daisuke Fujita
SREcon19 Asia/Pacific Recap
dtan4
0
220
Our Practices of Delegating Ownership in Microservices World
dtan4
4
9k
Kubernetes Cluster Upgrade / Mercari Meetup for Microservices Platform
dtan4
3
4.8k
KubeCon EU 2018 Recap: Multi-Tenancy in Kubernetes: Best Practices Today, and Future Directions / Kubernetes Meetup Tokyo 11 #k8sjp
dtan4
1
2k
Wantedly から Chef を一掃した話 / #chibadan
dtan4
24
11k
さようなら Chef こんにちは Dockerfile / Web Tech Tokyo #1
dtan4
6
7.3k
Docker をフル活用したインフラの紹介と成長し続けるためのインフラ戦略 / #abejameetup
dtan4
19
4.1k
Docker Compose PaaS の作り方、そして社内に導入した話 / #yapc8oji
dtan4
1
8.6k
Writing Kubenetes tools in Go
dtan4
1
3.7k
Other Decks in Technology
See All in Technology
ThetaOS - A Mythical Machine comes Alive
aslander
0
230
「できない」のアウトプット 同人誌『精神を壊してからの』シリーズ出版を 通して得られたこと
comi190327
3
430
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
400
【AWS】CloudTrail LakeとCloudWatch Logs Insightsの使い分け方針
tsurunosd
0
130
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
130
Databricks Appsで実現する社内向けAIアプリ開発の効率化
r_miura
0
170
Cursor Subagentsはいいぞ
yug1224
2
130
AIエージェント勉強会第3回 エージェンティックAIの時代がやってきた
ymiya55
0
180
Kubernetesの「隠れメモリ消費」によるNode共倒れと、Request適正化という処方箋
g0xu
0
170
脳が溶けた話 / Melted Brain
keisuke69
1
1.1k
Bref でサービスを運用している話
sgash708
0
220
FlutterでPiP再生を実装した話
s9a17
0
240
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.2k
Designing for humans not robots
tammielis
254
26k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
320
Balancing Empowerment & Direction
lara
5
1k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
330
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
300
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Transcript
Ubuntu VPS ͔Β CoreOS Ϋϥελʹ Ҡߦͨ͠ 2015-04-22 W8LT#1 @dtan4 IUUQHMPCFWJFXTDPNEDJNESFBNTDMPVETDMPVETKQH
#w8lt ։࠵͓ΊͰͱ͏͍͟͝·͢ :tada:
Daisuke Fujita @dtan4 ܭࢉֶઐ߈ ಙాݚ M2
None
2014.07-2015.04 ͘͞Β VPS + Ubuntu 2015.04- DigitalOcean + CoreOS
2014.07-2015.04 ͘͞Β VPS + Ubuntu 2015.04- DigitalOcean + CoreOS
͘͞Β VPS + Ubuntu VPS 2G Ubuntu 14.04 ߏཧ: Chef
ΞϓϦέʔγϣϯ: Docker ίϯςφ ֎෦ετϨʔδ: S3 DNS αʔϏε: Route53 ࢹܥ: Datadog, Papertrail
͘͞Β VPS + Ubuntu ap-northeast1 (Tokyo) VPS 2G nginx-proxy Web
App Worker Web App redis postgres dd-agent
None
৭ʑͭΒ͍ Chef ׂ͕Γͱ͠ΜͲ͍ʢႈੑͱʁʣ ॏͳΔηΩϡϦςΟΞοϓσʔτ ssh ͯ͠ docker run ͢ΔίϯςφखಈσϓϩΠ postgres,
redis ίϯςφͷσʔλӬଓԽͯ͠ͳ͍ Docker 1.1
None
CoreOS ͯ͢ͷΞϓϦέʔγϣϯΛ Docker ίϯςφͱͯ͠ಈ͔͢ Core ೖΕସ͑ʹΑΔࣗಈΞοϓσʔτ (like Chrome) etcd +
fleet ʹΑΔΫϥελϦϯά CoreOS is designed for security, consistency, and reliability
2014.07-2015.04 ͘͞Β VPS + Ubuntu 2015.04- DigitalOcean + CoreOS
DigitalOcean + CoreOS 1GB Droplet * 1 + 512MB Droplet
* 1 (to be 2) CoreOS stable ߏཧ: Terraform + cloud-config ΞϓϦέʔγϣϯ: Docker ίϯςφ ֎෦ετϨʔδ: S3 DNS αʔϏε: Route53 ࢹܥ: Datadog, Papertrail
DigitalOcean + CoreOS ap-northeast1 (Tokyo) sgp1 (Singapole) nginx-proxy Web App
Worker redis postgres dd-agent Web App etcd web db
DigitalOcean + CoreOS ʢཧʣ ap-northeast1 (Tokyo) sgp1 (Singapole) nginx-proxy Web
App Worker redis postgres dd-agent load balancer Web App etcd lb web db
CoreOS Droplets web (1GB) Web ΞϓϦέʔγϣϯ, Worker db (512MB) PostgreSQL,
Redis σʔλετΞ ϗετϚγϯʹσʔλӬଓԽ lb (512MB) Route53 ͔ΒͷΞΫηεΛ web ʹதܧ͢Δ
Infrastructure as Code ͯ͢ͷΠϯϑϥΛίʔυͰཧ Git ʹΑΔόʔδϣϯཧɺPull Request ܕ։ൃ CI
ChatBot ͱ࿈ܞͯ͠ਓͷखΛհ͞ͳ͍ Πϯϑϥͷߋ৽
Cloud-Config YAML Ͱ CoreOS Λઃఆ Ϣʔβʔཧ Ξοϓσʔτ੍ޚ ىಈ͢ΔαʔϏεͷࢦఆ… αʔϏεཧ fleet
ʹ Ҡߦ͢Δ͔
None
terraform Hashicorp ϓϩμΫτ ઈࢍ։ൃத AWS, DigitalOcean …Λ ίʔυͰཧ͢Δ terraform apply
Ͱ ຊ൪ʹҰൃͰө
None
AWS ౦ژϦʔδϣϯ͕͋Δ (ap-northeast-1) ଞͷαʔϏε (Route53, ELB, S3…) ͱͷ࿈ܞɺ ಉҰϦʔδϣϯͰΊΔ ϥϯχϯάίετ͕ʢݸਓӡ༻ʹʣߴ͍
DigitalOcean ϥϯχϯάίετ͕͍҆ సૹྔ 1TB ·Ͱແྉ ࠷ۙͯ͘γϯΨϙʔϧͳͷͰ ౦ژͷϚγϯʹൺϨΠςϯγ͕ൃੜ͢Δ
݄ʑͷ͓ࢧྉۚ 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ͱసૹྔؚ·ͳ͍
෭࢈ dtan4/c2y Cloud-Config Λ Ruby DSL Ͱॻ͘ dtan4/terraforming طଘͷϦιʔεΛ terraform
ܗࣜʹม
·ͱΊ ͘͞Β VPS ຊʹίεύ͕ྑ͍ AWS ͍͍ͨ… ͯ͢ͷΞϓϦΛίϯςφԽ͢Δ ·ͩґଘؔͱϗετΞοϓσʔτͰ ফͯ͠Δͷʁ