Deployment Strategy

The Consul documentation recommends that you have either 3 or 5 Consul servers running in each data-center to avoid data loss in the event of a server failure. Consul servers are the components that do the heavy lifting. They store information about services and key/value information. An odd number of servers is necessary to avoid stalemate issues during elections.

The examples that follow assume 64-bit Ubuntu 14.04 servers but they should be valid for any Linux distribution with minor changes. We start with 4 machines whose details are:

Servername IP Address Role
server1.example.com 192.168.1.11 Consul Server
server2.example.com 192.168.1.12 Consul Server
server3.example.com 192.168.1.13 Consul Server
client.example.com 192.168.1.21 Consul Client

You will need to run most commands as sudo.

Our objective is to provide a configuration for the nodes that requires minimal or no manual intervention to keep running after the initial install and configuration.

Assumptions

We assume that all the machines have private IP addresses as defined by RFC 1918. We'll address this assumption in more detail later in the Network Environment section. An additional assumption is that the IP addresses of the machines don't change when they reboot.

results matching ""

    No results matching ""