This talk will guide you through the first steps to understand Consul and do some cool stuff with it.
You also have a live Vagrant demo available in github at https://github.com/lynxman/consul-first-steps
2. Who am I?
Marc
Cluet
(@lynxman)
Grumpy
Engineer
based
in
London
Co-‐Founder
of
Ukon
Cherry
Head
of
Operations
at
Gluru
17
years
of
experience
as
a
SysAdmin
Founding
member
of
Juju
and
MAAS
while
at
Canonical
Built
a
DevOps
Engineering
Team
at
Rackspace
Been
DevOps’in
for
the
last
5
years
6. What is Service Discovery?
Service
Node
A
Service
Publication
Service
Node
B
Service
Node
C
7. What is Service Discovery?
Service
Node
A
Health
Check
Discovery
Agent
Discovery
Agent
Service
Node
B
Health
Check
Service
Publication
Node
A
Node
B
12. Consul functionality
It’s
a
service
discovery
system
• Publishes
DNS
• k/v
Storage
• Service
Publication
• Health
Checks
• HTTP
RESTful
API
• With
Encryption!
14. Consul DNS publisher
service
name:
web
zone:
eu-‐west-‐1
<servicename>.service.<zone>.consul
web.service.eu-‐west-‐1.consul
15. Consul DNS publisher
node
name:
web01
zone:
eu-‐west-‐1
<nodename>.<zone>.consul
web01.eu-‐west-‐1.consul
16. Consul DNS publisher
API
FRIENDLY!
/v1/catalog/
/v1/catalog/datacenters/
/v1/catalog/nodes/
/v1/catalog/services/<servicename>
/v1/catalog/service/<name>
/v1/catalog/node/<nodename>
17. k/v Storage
/v1/kv/<key>
GET
PUT
DELETE
Limited
to
256kb
https://www.flickr.com/photos/victoriabernal/6294851265
36. Consul Ecosystem
Confd
Consulate
Crypt
Docker
Consul
Registrator
More
at
http://www.consul.io/downloads_tools.html
https://www.flickr.com/photos/tjflex/7646164470
38. Useful Links
Consul
Documentation
http://www.consul.io/docs/index.html
Consul
Mailing
List
https://groups.google.com/forum/#!forum/consul-‐tool
Consul
Open
Issues
https://github.com/hashicorp/consul/issues