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
Microservices with Consul and Nomad
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Richard Kettelerij
September 20, 2018
Technology
0
340
Microservices with Consul and Nomad
Richard Kettelerij
September 20, 2018
Tweet
Share
Other Decks in Technology
See All in Technology
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
kaomi_wombat
0
250
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
qa
0
300
OpenClawでPM業務を自動化
knishioka
1
140
来期の評価で変えようと思っていること 〜AI時代に変わること・変わらないこと〜
estie
0
100
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
110
やさしいとこから始めるGitHubリポジトリのセキュリティ
tsubakimoto_s
2
1.5k
AI時代のIssue駆動開発のススメ
moongift
PRO
0
250
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
700
JEDAI認定プログラム JEDAI Order 2026 受賞者一覧 / JEDAI Order 2026 Winners
databricksjapan
0
340
VSCode中心だった自分がターミナル沼に入門した話
sanogemaru
0
700
スピンアウト講座04_ルーティン処理
overflowinc
0
1.3k
TUNA Camp 2026 京都Stage ヒューリスティックアルゴリズム入門
terryu16
0
480
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
170
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Google's AI Overviews - The New Search
badams
0
950
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
210
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
330
The SEO identity crisis: Don't let AI make you average
varn
0
420
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
320
Leo the Paperboy
mayatellez
4
1.6k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
330
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Transcript
mindloops Richard Kettelerij Microservices with Consul & Nomad @rkettelerij
Intro
Agenda • Intro • Use case @ Police • Hashicorp
stack • Consul (incl. demo) • Nomad (incl. demo) • Recap
Product line Cloud, Big data & Internet
None
Already in place…
What could be improved…. • Limited automation around creating new
VM’s • No solution for high availability • No zero-downtime deployments - Purpose-built single instance VM for each microservice -
Architecture (over a year ago) service-foo service-bar service-qux
More VM’s service-foo service-bar service-qux service-foo service-qux service-bar
None
None
None
Provisioning tools
Runtime tools
Suite
Consul • Service discovery (via HTTP and DNS) • Health
checking • DNS (A record, SRV record) • HTTP • Files: Consul-Template • Environment variables: EnvConsul • SDKs/Frameworks: Spring Cloud Consul, Dropwizard, etc, etc
Consul Consul Connect (service segmentation) • Service configuration (K/V store
with watches)
service-foo service-bar service-qux service-foo service-qux service-bar More VM’s
service-foo service-bar service-qux service-foo service-qux Consul cluster service-bar Service discovery
Multiple datacenters test prod OpenStack tenant A test prod OpenStack
tenant B service- service- service- service-foo service-qux Consul cluster service-bar Webserver service- service- service- service-foo service-qux Consul cluster service-bar Webserver service- service- service- service-foo service-qux Consul cluster service-bar Webserver service- service- service- service-foo service-qux Consul cluster service-bar Webserver
Science • Raft • SWIM
Demo time!
None
What is Nomad? Scheduler a.k.a Cluster manager a.k.a Orchestrator
What is Nomad?
Type of jobs • System • Service • Batch
Why Nomad? • Simple • First-class Consul integration • Multiple
workloads (Java, exec, Docker, ….)
node1 Nomad Consul & Nomad cluster node2 service-bar node1 service-foo
node3 service-qux service- qux service- fox public-node1
Demo time!
Recap • Why did we do this? High availability •
What did we gain? • High availability • Location transparency • Zero-downtime / rolling-upgrades • Resilience against machine failures
Recap Gradual migration
Thank you! @rkettelerij