dev helper for three node server cluster

This commit is contained in:
Alex Dadgar 2018-04-12 16:24:25 -07:00
parent 663c4d0433
commit e8ab053662
3 changed files with 65 additions and 0 deletions

18
dev/cluster/server1.hcl Normal file
View File

@ -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
}

24
dev/cluster/server2.hcl Normal file
View File

@ -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
}

23
dev/cluster/server3.hcl Normal file
View File

@ -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
}