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
hashicorp-20160418
Search
rrreeeyyy
April 18, 2016
Technology
0
310
hashicorp-20160418
Hashicorp tools の 2015/11/30 〜 2016/04/18 の更新分をすごくざっくり追った資料です
rrreeeyyy
April 18, 2016
Tweet
Share
More Decks by rrreeeyyy
See All by rrreeeyyy
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
An Efficient Incident Response Training with AI / SRE NEXT 2024 Sponsor Session
rrreeeyyy
1
3.4k
カンファレンスから見る SRE トレンド 2024 / SRE Trends from Conferences in 2024 #SRE_Findy
rrreeeyyy
4
2.2k
信頼性の育て方 / mackerel-meetup-15
rrreeeyyy
9
2.4k
SRE の歩き方・進め方 / sre-walk-through-procedure
rrreeeyyy
0
8.5k
「信頼性」を保ちつつ大規模サービスをリニューアルする / cookpad-tech-kitchen-service-embedded-sres
rrreeeyyy
11
12k
Cookpad and Prometheus
rrreeeyyy
6
20k
SRE-Lounge-8-Cookpad-Microservice-Architecture-Overview
rrreeeyyy
5
5.2k
A survey of anomaly detection methodologies for web system
rrreeeyyy
5
1.2k
Other Decks in Technology
See All in Technology
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
300
Terraform Stacks入門 #HashiTalks
msato
0
350
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
610
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.2k
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
7
790
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
980
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
990
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
8.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Six Lessons from altMBA
skipperchong
27
3.5k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Navigating Team Friction
lara
183
14k
Designing Experiences People Love
moore
138
23k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Transcript
Hashicorp trends ( 2015/11/30 - 2016/04/18 ) Heartbeats ϓϩμΫτษڧձ Hashicorp
(2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 1
Tools • Vagrant • Packer • Serf • Consul •
Terraform • Vault • Nomad • Otto Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 2
Vagrant • 1.7.4 -> 1.8.1 • Linked Clone • Ϛελʔ
VM ͔Β৭ΜͳΫϩʔϯ VM Λ࡞Δػೳ • VM ϑϧίϐʔͰແ͘ϚελʔΫϩʔϯ͔Βͷ͚ࠩͩอ࣋͢Δ • Vagrant up ͷ͕࣌ؒ͘ͳΔͷͱσΟεΫΛ͍ͬͺ͍Θͳͯ͘͢Ή • Snapshot • ੲ sahara ͍ͬͯ͏ϓϥάΠϯͰ࣮ݱͯͨͭ͠ • ಛఆλΠϛϯάͰεφοϓγϣοτΛऔΕΔɾ෮ݩͰ͖Δ • ಛఆͷঢ়ଶ͔ΒͷҰ࣌తͳݕূͱ͔͍ͨ͠߹ʹ͑ͦ͏ • Vagrant powershell ͱ͔͍ͭͨ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 3
Packer • 0.8.6 -> 0.10.0 • 0.9 Ͱ ansible remote
provisioner ͕͍ͨ • packer build ͷޙ ansible Λ remote ͔Β࣮ߦͰ͖Δ • playbook_file Ͱ playbook ͷϑΝΠϧΛࢦఆ࣮ͯ͠ߦ • ansible ͕ࣦഊ͢Δͱ packer build ࣦഊͱͳΓ terminate ͞ΕΔ • Chef on Windows ͕͍ͭͨ • 0.10.0 Ͱ Azure Resource Manager Ͱ VHD Λ࡞Ͱ͖ΔΑ͏ʹͳͬͨ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 4
Serf • 0.7 ϦϦʔε • serf rtt ͱ͍͏ϊʔυؒͷ RTT ਪఆΛऔಘͰ͖ΔαϒίϚϯυ͕Ճ
• ݱࡏͷϊʔυ͔Βผͷϊʔυ͘͠ผͷϊʔυ͔Βߋʹผͷϊʔυ ͷ RTT ਪఆΛऔಘՄೳ • Vivaldi ΞϧΰϦζϜΛ༻ • serf info ͱ͍͏ event handler ΛදࣔͰ͖ΔαϒίϚϯυ͕Ճ • gossip protocol ͷϊʔυোݕग़ʹ TCP fallback ػೳΛՃ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 5
Consul • 0.5.2 -> 0.6.4 • consul rtt ͱ͍͏ϊʔυؒͷ RTT
ਪఆΛऔಘͰ͖ΔαϒίϚϯυ͕Ճ • API ͔Βར༻Մೳ (serf rtt ͱಉ༷ͷػೳ) • LMDB ΛࣺͯͯجϕʔεͷΠϯϝϞϦ DB Ҡߦ • cgo ಉ࣌ʹࣺͯͯ 100% golang ʹͳͬͨ • Prepared query ػೳͷಋೖ • HTTP API ΛͬͯෳࡶͳΫΤϦΛࣄલʹఆ͓ٛͯ͘͜͠ͱ͕ग़དྷΔ • DNS ͷΫΤϦࣄલʹఆ͓ٛͯ͘͜͠ͱ͕Մೳ • ྫ͑ಛఆͷ DNS ΛҾ͍ͨ࣌ʹ ""master" λάΛ͍࣋ͬͯͯɺconsul rtt Ͱۙ͘ʹ͋ΔϊʔυΛ 3 ͭฦ͢" ͷڍಈΛఆٛͰ͖Δ • ACL ͕͍֦͢͝ு͞Ε·ͨ͠ • ϔϧενΣοΫػೳ͕֦ு͞Ε·ͨ͠ • TCP Check (ఆظతͳ TCP ଓ) ͱ Docker check (ఆظతͳίϯςφͰͷίϚϯυ࣮ߦ) ͕Ճ͞Εͨ • TCP fallback ͕Ճ͞Εͨ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 6
Terraform • 0.6.8 -> 0.6.14 • terraform validate ͱ͍͏ syntax
validation ͢ΔαϒίϚϯυ͕Ճ • terraform untaint ͱ͍͏ taint ঢ়ଶͷϦιʔεΛ untaint ʹ͢ΔαϒίϚϯυ͕Ճ • ലେͳͷ resource Ճ • AWS/Azure/GCP ֤छ ... • Docker, VMware ... • influxdb, mysql, postgres... • datadog, github, chef, ultradns... Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 7
Vault • 0.4.0 -> 0.5.2 • vault list ͱ͍͏伴ͱσΟϨΫτϦΛදࣔͰ͖ΔαϒίϚϯυ͕Ճ •
ACL ػೳ͕େ෯ʹ֦ு • HA Physical backends ͰෳͷσʔλετϨʔδΛ༻Ͱ͖ΔΑ͏ʹͳͬͨ • backend ͱ ha_backend ͱ͍͏σΟϨΫςΟϒͰࢦఆՄೳ • unseal key ʹؔ͢Δػೳ͕֦ு͞Ε·ͨ͠ • rekey ͱ archiving(keybase.io ͷ PGP 伴ͱ࿈ܞՄೳ)͕ग़དྷΔΑ͏ʹͳΓ·ͨ͠ • unseal key Λͬͨ root token ͷ regenerate ͕ग़དྷΔΑ͏ʹͳΓ·ͨ͠ • ࠓ·Ͱ root token Λ revoke ͨ͠Βऴྃͩͬͨ • AWS STS ͷαϙʔτ/DynamoDBɾPostgreSQL Physical backend ͷαϙʔτ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 8
Nomad • 0.2.1 -> 0.3.1 • Periodic Jobs ػೳͷՃ •
ఆظ࣮ߦ͞ΕΔλεΫΛఆٛ͢Δ͜ͱ͕Մೳ • nomad status Ͱۙͷ࣮ߦδϣϒͷঢ়ଶͱ࣍ͷδϣϒͷ࣮ߦ͕࣌ݟΕΔ • ϩάϩʔςʔγϣϯɾϩάΞΫηεػೳͷՃ • λεΫ͝ͱͷϩάϩʔςʔγϣϯΛࢦఆՄೳ • ϑΝΠϧɾ࠷େϑΝΠϧαΠζ • nomad fs ls ${JOB_ID} ${NAMESPACE} ͷ fs ls fs cat ͷαϒίϚϯυͰϩάʹΞΫηεՄೳʹͳͬͨ • Job Queue ػೳͷՃ • Ϋϥελʹར༻ՄೳͳϦιʔε͕ଘࡏ͠ͳ͍߹δϣϒΛ block ͢Δ • ྫ͑ CPU (MHz) Ͱࢦఆ͕ͨ͠Γͳ͍߹ͳͲ CPU ͕ۭ͘·Ͱ࣮ߦ͞Εͳ͍ • Ϧιʔε͕ۭ͍ͨΒͦͷϦιʔεΛͬͯδϣϒΛ࣮ߦ͢Δ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 9
Otto • มߋͳ͠ • 0.2.0 ϦϦʔε४උத • App Type ͷՃ:
Python, Java • App Type ϓϥάΠϯͷՃ • Layered Dev Environments ػೳͷՃ • ։ൃڥͷ֤ΛΩϟογϡ͢ΔػೳΒ͍͠ • ৽͍͠։ൃڥΛ࡞Δͱ͖ʹΩϟογϡΛ͏ͷͰૣ͘ͳΔΒ͍͠ Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 10
ࢀߟจݙ • https://github.com/mitchellh/vagrant/blob/master/CHANGELOG.md • https://github.com/mitchellh/packer/blob/master/CHANGELOG.md • https://github.com/hashicorp/serf/blob/master/CHANGELOG.md • https://github.com/hashicorp/consul/blob/master/CHANGELOG.md •
https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md • https://github.com/hashicorp/vault/blob/master/CHANGELOG.md • https://github.com/hashicorp/nomad/blob/master/CHANGELOG.md • https://github.com/hashicorp/otto/blob/master/CHANGELOG.md Heartbeats ϓϩμΫτษڧձ Hashicorp (2016/04/18) - Yoshikawa Ryota ( @rrreeeyyy ) 11