mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Use pending bytes as slow consumer trigger, so reintroduce max_pending. Improve latency with inplace flush calls when appropriate. Utilize simple time budget for readLoop routine. Signed-off-by: Derek Collison <derek@nats.io>
36 lines
619 B
Plaintext
36 lines
619 B
Plaintext
# Cluster config file
|
|
|
|
port: 4242
|
|
net: localhost
|
|
|
|
authorization {
|
|
user: derek
|
|
password: porkchop
|
|
timeout: 1
|
|
}
|
|
|
|
pid_file: '/tmp/nats_cluster_test.pid'
|
|
|
|
cluster {
|
|
host: 127.0.0.1
|
|
port: 4244
|
|
|
|
authorization {
|
|
user: route_user
|
|
password: top_secret
|
|
timeout: 1
|
|
}
|
|
|
|
# Routes are actively solicited and connected to from this server.
|
|
# Other servers can connect to us if they supply the correct credentials
|
|
# in their routes definitions from above.
|
|
|
|
routes = [
|
|
nats-route://foo:bar@localhost:4245
|
|
nats-route://foo:bar@localhost:4246
|
|
]
|
|
|
|
no_advertise: true
|
|
connect_retries: 2
|
|
}
|