mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Undo demo files
This commit is contained in:
@@ -4,14 +4,30 @@ log_level = "DEBUG"
|
||||
# Setup data dir
|
||||
data_dir = "/tmp/client1"
|
||||
|
||||
enable_debug = true
|
||||
|
||||
name = "client1"
|
||||
|
||||
# Enable the client
|
||||
client {
|
||||
enabled = true
|
||||
|
||||
# For demo assume we are talking to server1. For production,
|
||||
# this should be like "nomad.service.consul:4647" and a system
|
||||
# like Consul used for service discovery.
|
||||
servers = ["127.0.0.1:4647"]
|
||||
node_class = "foo"
|
||||
options {
|
||||
"driver.raw_exec.enable" = "1"
|
||||
}
|
||||
reserved {
|
||||
cpu = 500
|
||||
}
|
||||
}
|
||||
|
||||
# Modify our port to avoid a collision with server1
|
||||
ports {
|
||||
http = 5656
|
||||
}
|
||||
|
||||
advertise {
|
||||
|
||||
@@ -4,12 +4,18 @@ log_level = "DEBUG"
|
||||
# Setup data dir
|
||||
data_dir = "/tmp/server1"
|
||||
|
||||
name = "server1"
|
||||
|
||||
# Enable the server
|
||||
server {
|
||||
enabled = true
|
||||
|
||||
# Self-elect, should be 3 or 5 for production
|
||||
bootstrap_expect = 3
|
||||
bootstrap_expect = 1
|
||||
}
|
||||
|
||||
# Advertise must be set to a non-loopback address.
|
||||
# Defaults to the resolving the local hostname.
|
||||
#advertise {
|
||||
# http = "10.0.2.1"
|
||||
# rpc = "10.0.2.1"
|
||||
# serf = "10.0.2.1"
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user