Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests.
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
LXC 511–513 (nats-a/b/c on 10.10.10.21–23, vmbr1 only) form cluster verae with replicas=3. Host loopback 127.0.0.1:4222 is unchanged.
This commit is contained in:
parent
7a5e25639e
commit
69e28af4d8
27 changed files with 365 additions and 2 deletions
19
packages/verae-nats-cluster/conf/nats.conf.tmpl
Normal file
19
packages/verae-nats-cluster/conf/nats.conf.tmpl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# JetStream cluster node. Bind the private guest IP only — never vmbr0 / 0.0.0.0.
|
||||
server_name: {{NAME}}
|
||||
host: {{IP}}
|
||||
port: 4222
|
||||
http: 127.0.0.1:8222
|
||||
|
||||
jetstream {
|
||||
store_dir: /var/lib/nats/jetstream
|
||||
max_mem: 256M
|
||||
max_file: 4G
|
||||
}
|
||||
|
||||
cluster {
|
||||
name: {{CLUSTER}}
|
||||
listen: {{IP}}:6222
|
||||
routes: [
|
||||
{{ROUTES}}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue