mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
提交origin2.0版本
This commit is contained in:
23
example/config/cluster/subnet/cluster.json
Normal file
23
example/config/cluster/subnet/cluster.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"NodeList":[
|
||||
{
|
||||
"NodeId": 1,
|
||||
"ListenAddr":"127.0.0.1:8001",
|
||||
"NodeName": "Node_Test1",
|
||||
"remark":"//以_打头的,表示只在本机进程,不对整个子网开发",
|
||||
"ServiceList": ["TestService1","TestService2","TestServiceCall"]
|
||||
},
|
||||
{
|
||||
"NodeId": 2,
|
||||
"ListenAddr":"127.0.0.1:8002",
|
||||
"NodeName": "Node_Gate2",
|
||||
"ServiceList": ["SubNet1_Service"]
|
||||
},
|
||||
{
|
||||
"NodeId": 3,
|
||||
"ListenAddr":"127.0.0.1:8003",
|
||||
"NodeName": "Node_Room",
|
||||
"ServiceList": ["SubNet1_Service"]
|
||||
}
|
||||
]
|
||||
}
|
||||
13
example/config/cluster/subnet/service.json
Normal file
13
example/config/cluster/subnet/service.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"HttpService":{
|
||||
"Port":10001
|
||||
},
|
||||
"TcpService":{
|
||||
"ListenAddr":"0.0.0.0:9030",
|
||||
"MaxConnNum":3000,
|
||||
"PendingWriteNum":10000,
|
||||
"LittleEndian":false,
|
||||
"MinMsgLen":4,
|
||||
"MaxMsgLen":65535
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user