From e8ab053662d26b1272ed7647003471e5ebcb2172 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 12 Apr 2018 16:24:25 -0700 Subject: [PATCH] dev helper for three node server cluster --- dev/cluster/server1.hcl | 18 ++++++++++++++++++ dev/cluster/server2.hcl | 24 ++++++++++++++++++++++++ dev/cluster/server3.hcl | 23 +++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev/cluster/server1.hcl create mode 100644 dev/cluster/server2.hcl create mode 100644 dev/cluster/server3.hcl diff --git a/dev/cluster/server1.hcl b/dev/cluster/server1.hcl new file mode 100644 index 000000000..e5c05c0b3 --- /dev/null +++ b/dev/cluster/server1.hcl @@ -0,0 +1,18 @@ +# Increase log verbosity +log_level = "DEBUG" + +# Setup data dir +data_dir = "/tmp/server1" + +# Give the agent a unique name. Defaults to hostname +name = "server1" + +# Enable the server +server { + enabled = true + + retry_join = ["127.0.0.1:5648", "127.0.0.1:6648"] + + # Self-elect, should be 3 or 5 for production + bootstrap_expect = 3 +} diff --git a/dev/cluster/server2.hcl b/dev/cluster/server2.hcl new file mode 100644 index 000000000..71d897f2f --- /dev/null +++ b/dev/cluster/server2.hcl @@ -0,0 +1,24 @@ +# Increase log verbosity +log_level = "DEBUG" + +# Setup data dir +data_dir = "/tmp/server2" + +# Give the agent a unique name. Defaults to hostname +name = "server2" + +# Enable the server +server { + enabled = true + + retry_join = ["127.0.0.1:4648", "127.0.0.1:6648"] + + # Self-elect, should be 3 or 5 for production + bootstrap_expect = 3 +} + +ports { + http = 5646 + rpc = 5647 + serf = 5648 +} diff --git a/dev/cluster/server3.hcl b/dev/cluster/server3.hcl new file mode 100644 index 000000000..21774ae3e --- /dev/null +++ b/dev/cluster/server3.hcl @@ -0,0 +1,23 @@ +# Increase log verbosity +log_level = "DEBUG" + +# Setup data dir +data_dir = "/tmp/server3" +# Give the agent a unique name. Defaults to hostname +name = "server3" + +# Enable the server +server { + enabled = true + + retry_join = ["127.0.0.1:4648", "127.0.0.1:5648"] + + # Self-elect, should be 3 or 5 for production + bootstrap_expect = 3 +} + +ports { + http = 6646 + rpc = 6647 + serf = 6648 +}