mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
1.MongoDB、Redis兼容集群模式
2.离线数据接口化访问
This commit is contained in:
23
docker/3rd/nats/nats_cluster/conf/nats1/nats-server.conf
Normal file
23
docker/3rd/nats/nats_cluster/conf/nats1/nats-server.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
http: 8222
|
||||
|
||||
server_name: nats1
|
||||
listen: 4222
|
||||
|
||||
max_payload: 5120KB
|
||||
|
||||
cluster {
|
||||
name: nats-cluster
|
||||
listen: 6222
|
||||
routes: [
|
||||
nats-route://nats2:6222
|
||||
nats-route://nats3:6222
|
||||
]
|
||||
}
|
||||
|
||||
jetstream: enable
|
||||
|
||||
jetstream {
|
||||
store_dir: /nats/storage
|
||||
max_mem: 1G
|
||||
max_file: 10G
|
||||
}
|
||||
23
docker/3rd/nats/nats_cluster/conf/nats2/nats-server.conf
Normal file
23
docker/3rd/nats/nats_cluster/conf/nats2/nats-server.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
http: 8222
|
||||
|
||||
server_name: nats2
|
||||
listen: 4222
|
||||
|
||||
max_payload: 5120KB
|
||||
|
||||
cluster {
|
||||
name: nats-cluster
|
||||
listen: 6222
|
||||
routes: [
|
||||
nats-route://nats1:6222
|
||||
nats-route://nats3:6222
|
||||
]
|
||||
}
|
||||
|
||||
jetstream: enable
|
||||
|
||||
jetstream {
|
||||
store_dir: /nats/storage
|
||||
max_mem: 1G
|
||||
max_file: 10G
|
||||
}
|
||||
23
docker/3rd/nats/nats_cluster/conf/nats3/nats-server.conf
Normal file
23
docker/3rd/nats/nats_cluster/conf/nats3/nats-server.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
http: 8222
|
||||
|
||||
server_name: nats3
|
||||
listen: 4222
|
||||
|
||||
max_payload: 5120KB
|
||||
|
||||
cluster {
|
||||
name: nats-cluster
|
||||
listen: 6222
|
||||
routes: [
|
||||
nats-route://nats1:6222
|
||||
nats-route://nats2:6222
|
||||
]
|
||||
}
|
||||
|
||||
jetstream: enable
|
||||
|
||||
jetstream {
|
||||
store_dir: /nats/storage
|
||||
max_mem: 1G
|
||||
max_file: 10G
|
||||
}
|
||||
Reference in New Issue
Block a user