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
Richard Kettelerij
September 20, 2018
Technology
0
320
Microservices with Consul and Nomad
Richard Kettelerij
September 20, 2018
Tweet
Share
Other Decks in Technology
See All in Technology
DroidKaigi 2025 Androidエンジニアとしてのキャリア
mhidaka
2
380
いま注目のAIエージェントを作ってみよう
supermarimobros
0
340
下手な強制、ダメ!絶対! 「ガードレール」を「檻」にさせない"ガバナンス"の取り方とは?
tsukaman
2
450
【実演版】カンファレンス登壇者・スタッフにこそ知ってほしいマイクの使い方 / 大吉祥寺.pm 2025
arthur1
1
900
未経験者・初心者に贈る!40分でわかるAndroidアプリ開発の今と大事なポイント
operando
5
730
AWSを利用する上で知っておきたい名前解決のはなし(10分版)
nagisa53
10
3.2k
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1.1k
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
1.1k
Webアプリケーションにオブザーバビリティを実装するRust入門ガイド
nwiizo
7
870
20250913_JAWS_sysad_kobe
takuyay0ne
2
240
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
420
これでもう迷わない!Jetpack Composeの書き方実践ガイド
zozotech
PRO
0
1k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
A designer walks into a library…
pauljervisheath
207
24k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
We Have a Design System, Now What?
morganepeng
53
7.8k
The Invisible Side of Design
smashingmag
301
51k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.8k
Testing 201, or: Great Expectations
jmmastey
45
7.7k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Balancing Empowerment & Direction
lara
3
620
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
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