浏览代码

修改服务器架构

neo 1 年之前
父节点
当前提交
02f276183a
共有 3 个文件被更改,包括 10 次插入1 次删除
  1. 1 0
      run/ali-test/clustername.lua
  2. 1 1
      run/ali-test/machine.conf
  3. 8 0
      run/ali-test/nodes.lua

+ 1 - 0
run/ali-test/clustername.lua

@@ -5,3 +5,4 @@ login_1_1 = "127.0.0.1:4103"
5 5
 gate_1_1 = "127.0.0.1:4104"
6 6
 game_1_1 = "127.0.0.1:4105"
7 7
 match = "127.0.0.1:4106"
8
+web = "127.0.0.1:4107"

+ 1 - 1
run/ali-test/machine.conf

@@ -1,3 +1,3 @@
1 1
 
2 2
 #启动进程配置
3
-nodeList = master resource global match game_1_1 gate_1_1 login_1_1
3
+nodeList = master resource global match web game_1_1 gate_1_1 login_1_1

+ 8 - 0
run/ali-test/nodes.lua

@@ -52,4 +52,12 @@ root["game_1_1"] = {
52 52
     weight = 50 -- 权重
53 53
 }
54 54
 
55
+root["web"] = {
56
+    ip = "0.0.0.0",
57
+    debugPort = 8111,
58
+    port = 8112,
59
+    agentCount = 5,
60
+    bodyLimit = 8192
61
+}
62
+
55 63
 return root