Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ubuntu VPS から CoreOS クラスタに移行した話 #w8lt
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Daisuke Fujita
April 22, 2015
Technology
630
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
240
Our Practices of Delegating Ownership in Microservices World
dtan4
4
9.1k
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.4k
Docker をフル活用したインフラの紹介と成長し続けるためのインフラ戦略 / #abejameetup
dtan4
19
4.1k
Docker Compose PaaS の作り方、そして社内に導入した話 / #yapc8oji
dtan4
1
8.7k
Writing Kubenetes tools in Go
dtan4
1
3.9k
Other Decks in Technology
See All in Technology
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
130
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
360
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
410
Essential architectural thinking (revised edition)
ufried
0
110
Jetson Orin Nanoとk3sとローカルLLMで音声文字起こしシステム作ってみた
y_sera15
0
120
SREでアラート疲れを 解決しよう!
kairim0
1
220
メルペイ 会計システム概要と歴史
mewuto
0
210
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
220
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
510
契約書画像からの情報抽出に特化した視覚接地モデルを育てる話
sansantech
PRO
1
160
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
220
夫婦で子育てするための育児標準化
codmoninc
PRO
0
170
Featured
See All Featured
Faster Mobile Websites
deanohume
310
32k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
770
Building AI with AI
inesmontani
PRO
1
1.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Making the Leap to Tech Lead
cromwellryan
135
10k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
300
Mind Mapping
helmedeiros
1
400
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
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 ͍͍ͨ… ͯ͢ͷΞϓϦΛίϯςφԽ͢Δ ·ͩґଘؔͱϗετΞοϓσʔτͰ ফͯ͠Δͷʁ