dev files

This commit is contained in:
Alex Dadgar 2018-06-01 13:29:11 -07:00
parent ac0a158f9f
commit 71a0f43ab0
5 changed files with 51 additions and 3 deletions

21
dev/cluster/client1.hcl Normal file
View File

@ -0,0 +1,21 @@
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/client1"
# Give the agent a unique name. Defaults to hostname
name = "client1"
# Enable the client
client {
enabled = true
server_join {
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
}
}
ports {
http = 7646
}

21
dev/cluster/client2.hcl Normal file
View File

@ -0,0 +1,21 @@
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/client2"
# Give the agent a unique name. Defaults to hostname
name = "client2"
# Enable the client
client {
enabled = true
server_join {
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
}
}
ports {
http = 8646
}

View File

@ -11,7 +11,9 @@ name = "server1"
server {
enabled = true
retry_join = ["127.0.0.1:5648", "127.0.0.1:6648"]
server_join {
retry_join = ["127.0.0.1:5648", "127.0.0.1:6648"]
}
# Self-elect, should be 3 or 5 for production
bootstrap_expect = 3

View File

@ -11,7 +11,9 @@ name = "server2"
server {
enabled = true
retry_join = ["127.0.0.1:4648", "127.0.0.1:6648"]
server_join {
retry_join = ["127.0.0.1:4648", "127.0.0.1:6648"]
}
# Self-elect, should be 3 or 5 for production
bootstrap_expect = 3

View File

@ -10,7 +10,9 @@ name = "server3"
server {
enabled = true
retry_join = ["127.0.0.1:4648", "127.0.0.1:5648"]
server_join {
retry_join = ["127.0.0.1:4648", "127.0.0.1:5648"]
}
# Self-elect, should be 3 or 5 for production
bootstrap_expect = 3