Files
nats-server/server/configs/test.conf
Ivan Kozlovic e1a4cbaf70 Update to LameDuck mode
- Increase grace period to 10sec
- Make default 2min
- Reject config with value less than 30sec
- Don't wait more than 1sec between clients if there are much
  less than alloted time
- Stop after last one (was still sleeping after last client was
  closed)

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2018-11-28 18:04:26 -07:00

49 lines
707 B
Plaintext

# Simple config file
listen: 127.0.0.1:4242
http: 8222
authorization {
user: derek
password: porkchop
timeout: 1
}
# logging options
debug: false
trace: true
logtime: false
syslog: true
remote_syslog: "udp://foo.com:33"
# pid file
pid_file: "/tmp/gnatsd.pid"
# prof_port
prof_port: 6543
# max_connections
max_connections: 100
# max_subscriptions (per connection)
max_subscriptions: 1000
# max_pending
max_pending: 10000000
# maximum control line
max_control_line: 2048
# maximum payload
max_payload: 65536
# ping interval and no pong threshold
ping_interval: 60
ping_max: 3
# how long server can block on a socket write to a client
write_deadline: "3s"
lame_duck_duration: "4m"