Consul in 5 minutes

18
Christophe Marchal Software Architect

Transcript of Consul in 5 minutes

Page 1: Consul in 5 minutes

Christophe Marchal

Software Architect

Page 2: Consul in 5 minutes

@toff63

http://github.com/toff63

http://francesbagual.net

[email protected]

Christophe Marchal

Page 3: Consul in 5 minutes

Hashicorp

Atlas

Page 4: Consul in 5 minutes

Roles

Discoverability

Failure Detection

Multi Datacenter

Key/Value Storage

Page 5: Consul in 5 minutes

Base for router, configuration and discovery

Page 6: Consul in 5 minutes

Agent Based

Page 7: Consul in 5 minutes

Client Client Client

Server Server Server

Datacenter 1

Two types of node

Leader

Page 8: Consul in 5 minutes

Client Client Client

Server Server Server

Datacenter 1

Scalable Weakly-consistent Infection style Membership

Lan Gossip

Leader

Page 9: Consul in 5 minutes

Server Server ServerDC 1

Wan Gossip

Internet

Server Server ServerDC 2

Page 10: Consul in 5 minutes

Server Server ServerDC 1

Consencus: Raft algorithm

Internet

Server Server ServerDC 2

Page 11: Consul in 5 minutes

Vagrant

https://github.com/toff63/consul-cluster/blob/master/Vagrantfile

Page 12: Consul in 5 minutes

Setup

Page 13: Consul in 5 minutes

Setup

Page 14: Consul in 5 minutes

Setup

Page 15: Consul in 5 minutes

Discovery

Page 16: Consul in 5 minutes

1 service up

Page 17: Consul in 5 minutes

1 service up

Page 18: Consul in 5 minutes

Christophe Marchal

Software Architect