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
160
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
7.1k
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
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
340
コンテナセキュリティのためのLandlock入門
nullpo_head
2
330
JVM(JavaVM)の性能分析者観点で探るInstanaの可能性
instanautsjp
0
120
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.4k
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
150
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.6k
組み込みアプリパフォーマンス格闘記 検索画面編
wataruhigasi
1
140
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
140
2024年にチャレンジしたことを振り返るぞ
mitchan
0
150
Server-Side Engineer of LINE Sukimani
lycorp_recruit_jp
0
370
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
280
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
550
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
KATA
mclloyd
29
14k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Rails Girls Zürich Keynote
gr2m
94
13k
Building Applications with DynamoDB
mza
91
6.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Build your cross-platform service in a week with App Engine
jlugia
229
18k
For a Future-Friendly Web
brad_frost
175
9.4k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
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 ͍͍ͨ… ͯ͢ͷΞϓϦΛίϯςφԽ͢Δ ·ͩґଘؔͱϗετΞοϓσʔτͰ ফͯ͠Δͷʁ