Smartstacl vs. consul - Introduction

22
SmartStack vs. Consul Introduction Docker Meetup Kraków 29.04.2015

Transcript of Smartstacl vs. consul - Introduction

Page 1: Smartstacl vs. consul - Introduction

SmartStack vs. ConsulIntroduction

Docker Meetup Kraków29.04.2015

Page 2: Smartstacl vs. consul - Introduction

Marcin Skarbek@marcinskarbek

[email protected]

Page 3: Smartstacl vs. consul - Introduction

Capabilities

Page 4: Smartstacl vs. consul - Introduction

SmartStack• service discovery• health checking

Page 5: Smartstacl vs. consul - Introduction

Consul• service discovery• health checking• key/value store

Page 6: Smartstacl vs. consul - Introduction

Components

Page 7: Smartstacl vs. consul - Introduction

SmartStack• Synapse• Nerve

• ZooKeeper• HAProxy

Page 8: Smartstacl vs. consul - Introduction

Instead of ZooKeeper• Serf• Etcd

Page 9: Smartstacl vs. consul - Introduction

Consul• Consul

Page 10: Smartstacl vs. consul - Introduction

Installation

Page 11: Smartstacl vs. consul - Introduction

SmartStack• Nerve on each server

• Synapse and HAProxy on each client• ZooKeeper as a backend

Page 12: Smartstacl vs. consul - Introduction

Consul• Consul on each node• 3/5 as a servers (Raft)

• rest as a clients

Page 13: Smartstacl vs. consul - Introduction

How does it work

Page 14: Smartstacl vs. consul - Introduction

SmartStack

• Nerve checks serverand register it into the backend

• Synapse pulls info about serversand register them in HAProxy

• client connects to server through HAProxy

Page 15: Smartstacl vs. consul - Introduction

Consul

• Consul checks server and registers it• client connects to server

using DNS record or Web API

Page 16: Smartstacl vs. consul - Introduction

Pros

Page 17: Smartstacl vs. consul - Introduction

SmartStack

• no igerention into application• fairly easy deployment

Page 18: Smartstacl vs. consul - Introduction

Consul

• single binary file• very easy deployment

Page 19: Smartstacl vs. consul - Introduction

Cons

Page 20: Smartstacl vs. consul - Introduction

SmartStack

• Ruby• statically configured ZooKeeper

• HAProxy health checks can be expensive• lots of small load balancers

Page 21: Smartstacl vs. consul - Introduction

Consul

• using API requires integration• Raft low performance

Page 22: Smartstacl vs. consul - Introduction

Thanks!

photo: leolintang CC BY 2.0https://www.flickr.com/photos/28581681@N04/4256458866