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
Daisuke Fujita
April 22, 2015
Technology
2
580
Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt
#w8lt 第一回 (2015-04-22) の発表資料です
http://w8lt.connpass.com/event/14297/
Daisuke Fujita
April 22, 2015
Tweet
Share
More Decks by Daisuke Fujita
See All by Daisuke Fujita
SREcon19 Asia/Pacific Recap
dtan4
0
150
Our Practices of Delegating Ownership in Microservices World
dtan4
4
8.8k
Kubernetes Cluster Upgrade / Mercari Meetup for Microservices Platform
dtan4
3
4.5k
KubeCon EU 2018 Recap: Multi-Tenancy in Kubernetes: Best Practices Today, and Future Directions / Kubernetes Meetup Tokyo 11 #k8sjp
dtan4
1
1.8k
Wantedly から Chef を一掃した話 / #chibadan
dtan4
24
11k
さようなら Chef こんにちは Dockerfile / Web Tech Tokyo #1
dtan4
6
7k
Docker をフル活用したインフラの紹介と成長し続けるためのインフラ戦略 / #abejameetup
dtan4
19
3.9k
Docker Compose PaaS の作り方、そして社内に導入した話 / #yapc8oji
dtan4
1
8.2k
Writing Kubenetes tools in Go
dtan4
1
3.5k
Other Decks in Technology
See All in Technology
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
3
200
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
強いチームと開発生産性
onk
PRO
33
11k
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
いざ、BSC討伐の旅
nikinusu
2
780
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
380
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
120
Application Development WG Intro at AppDeveloperCon
salaboy
0
180
元旅行会社の情シス部員が教えるおすすめなre:Inventへの行き方 / What is the most efficient way to re:Invent
naospon
2
340
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
300
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
Making Projects Easy
brettharned
115
5.9k
Code Review Best Practice
trishagee
64
17k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Become a Pro
speakerdeck
PRO
25
5k
What's in a price? How to price your products and services
michaelherold
243
12k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
For a Future-Friendly Web
brad_frost
175
9.4k
YesSQL, Process and Tooling at Scale
rocio
169
14k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
A Tale of Four Properties
chriscoyier
156
23k
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 ͍͍ͨ… ͯ͢ͷΞϓϦΛίϯςφԽ͢Δ ·ͩґଘؔͱϗετΞοϓσʔτͰ ফͯ͠Δͷʁ