feat(config): 配置

This commit is contained in:
luying
2023-05-09 23:42:44 +08:00
parent 26debafd09
commit 5712bd6aaa
6 changed files with 1637 additions and 8 deletions

View File

@@ -34,6 +34,12 @@ let [totalConnector, totalChat, totalRole, totalBattle, totalComBattle, totalGui
// { name: 'ch4', host: '172.16.4.175', clientHost: 'yjz-ch-game4.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 6, battleCnt: 4, comBattleCnt: 1, guildCnt: 6, activityCnt: 4, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'ch5', host: '172.16.4.172', clientHost: 'yjz-ch-game5.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 6, battleCnt: 4, comBattleCnt: 1, guildCnt: 6, activityCnt: 4, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'ch6', host: '172.16.4.170', clientHost: 'yjz-ch-game6.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 6, battleCnt: 4, comBattleCnt: 1, guildCnt: 6, activityCnt: 4, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'ch7', host: '172.16.4.199', clientHost: 'yjz-bk-game10.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 20, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 2, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'ch8', host: '172.16.4.200', clientHost: 'yjz-bk-game11.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 10, battleCnt: 5, comBattleCnt: 2, guildCnt: 0, activityCnt: 5, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'ch9', host: '172.16.4.201', clientHost: 'yjz-bk-game12.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 10, battleCnt: 5, comBattleCnt: 2, guildCnt: 0, activityCnt: 5, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// // { name: 'ch10', host: '172.16.4.203', clientHost: 'yjz-bk-game13.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// // { name: 'ch11', host: '172.16.4.198', clientHost: 'yjz-bk-game14.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// // { name: 'ch12', host: '172.16.4.204', clientHost: 'yjz-bk-game15.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// ];
// 服务器配置:自营
@@ -51,6 +57,15 @@ const zy1ServerConfig: ServerConfig[] = [
{ name: 'zy8', host: '172.16.4.169', clientHost: 'yjz-zy-game8.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 9, battleCnt: 2, comBattleCnt: 1, guildCnt: 5, activityCnt: 3, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy9', host: '172.16.4.176', clientHost: 'yjz-zy-game9.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 9, battleCnt: 2, comBattleCnt: 1, guildCnt: 5, activityCnt: 3, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy10', host: '172.16.4.171', clientHost: 'yjz-zy-game10.fdd73.com', connectorCnt: 6, chatCnt: 2, roleCnt: 9, battleCnt: 2, comBattleCnt: 1, guildCnt: 5, activityCnt: 3, orderCnt: 2, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy11', host: '172.16.4.195', clientHost: 'yjz-bk-game1.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 20, battleCnt: 0, comBattleCnt: 0, guildCnt: 2, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy12', host: '172.16.4.196', clientHost: 'yjz-bk-game2.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 20, battleCnt: 0, comBattleCnt: 0, guildCnt: 2, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy13', host: '172.16.4.193', clientHost: 'yjz-bk-game3.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 20, battleCnt: 0, comBattleCnt: 0, guildCnt: 2, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy14', host: '172.16.4.194', clientHost: 'yjz-bk-game4.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 0, battleCnt: 10, comBattleCnt: 0, guildCnt: 2, activityCnt: 10, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy15', host: '172.16.4.197', clientHost: 'yjz-bk-game5.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 0, battleCnt: 10, comBattleCnt: 0, guildCnt: 2, activityCnt: 10, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
{ name: 'zy16', host: '172.16.4.205', clientHost: 'yjz-bk-game6.fdd73.com', connectorCnt: 6, chatCnt: 0, roleCnt: 0, battleCnt: 10, comBattleCnt: 5, guildCnt: 5, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'zy17', host: '172.16.4.202', clientHost: 'yjz-bk-game7.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'zy18', host: '172.16.4.207', clientHost: 'yjz-bk-game8.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
// { name: 'zy19', host: '172.16.4.206', clientHost: 'yjz-bk-game9.fdd73.com', connectorCnt: 0, chatCnt: 0, roleCnt: 0, battleCnt: 0, comBattleCnt: 0, guildCnt: 0, activityCnt: 0, orderCnt: 0, gmCnt: 0, systimerCnt: 0, gmConnectorCnt: 0 },
];
function genServer(config: ServerConfig) {

View File

@@ -1,5 +1,5 @@
const { zy1, zy2, zy3, zy4, zy5, zy6, zy7, zy8, zy9, zy10 } = require("./yjz_zy");
const { ch1, ch2, ch3, ch4, ch5, ch6 } = require("./yjz_ch");
const { zy1, zy2, zy3, zy4, zy5, zy6, zy7, zy8, zy9, zy10, zy11, zy12, zy13, zy14, zy15, zy16 } = require("./yjz_zy");
const { ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8, ch9 } = require("./yjz_ch");
const { yjzios } = require("./ios_review");
module.exports = {
@@ -677,7 +677,7 @@ module.exports = {
'activity': [],
'order': [],
},
'zy1': zy1, 'zy2': zy2, 'zy3': zy3, 'zy4': zy4, 'zy5': zy5, 'zy6': zy6, 'zy7': zy7, 'zy8': zy8, 'zy9': zy9, 'zy10': zy10, // 公测自营服务器
'zy1': zy1, 'zy2': zy2, 'zy3': zy3, 'zy4': zy4, 'zy5': zy5, 'zy6': zy6, 'zy7': zy7, 'zy8': zy8, 'zy9': zy9, 'zy10': zy10, 'zy11': zy11, 'zy12': zy12, 'zy13': zy13, 'zy14': zy14, 'zy15': zy15, 'zy16': zy16, // 公测自营服务器
'yjzios': yjzios, // 公测 ios 审核服
'ch1': ch1, 'ch2': ch2, 'ch3': ch3, 'ch4': ch4, 'ch5': ch5, 'ch6': ch6, // 公测渠道服
'ch1': ch1, 'ch2': ch2, 'ch3': ch3, 'ch4': ch4, 'ch5': ch5, 'ch6': ch6, 'ch7': ch7, 'ch8': ch8, 'ch9': ch9 // 公测渠道服
};

View File

@@ -1143,4 +1143,527 @@ export const ch6 = {
],
"gm": [],
"systimer": []
};
export const ch7 = {
"connector": [
{
"id": "connector-server-37",
"host": "172.16.4.199",
"port": 4051,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3051,
"frontend": true
},
{
"id": "connector-server-38",
"host": "172.16.4.199",
"port": 4052,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3052,
"frontend": true
},
{
"id": "connector-server-39",
"host": "172.16.4.199",
"port": 4053,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3053,
"frontend": true
},
{
"id": "connector-server-40",
"host": "172.16.4.199",
"port": 4054,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3054,
"frontend": true
},
{
"id": "connector-server-41",
"host": "172.16.4.199",
"port": 4055,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3055,
"frontend": true
},
{
"id": "connector-server-42",
"host": "172.16.4.199",
"port": 4056,
"clientHost": "yjz-bk-game10.fdd73.com",
"clientPort": 3056,
"frontend": true
}
],
"chat": [],
"role": [
{
"id": "role-server-37",
"host": "172.16.4.199",
"port": 6021
},
{
"id": "role-server-38",
"host": "172.16.4.199",
"port": 6022
},
{
"id": "role-server-39",
"host": "172.16.4.199",
"port": 6023
},
{
"id": "role-server-40",
"host": "172.16.4.199",
"port": 6024
},
{
"id": "role-server-41",
"host": "172.16.4.199",
"port": 6025
},
{
"id": "role-server-42",
"host": "172.16.4.199",
"port": 6026
},
{
"id": "role-server-43",
"host": "172.16.4.199",
"port": 6027
},
{
"id": "role-server-44",
"host": "172.16.4.199",
"port": 6028
},
{
"id": "role-server-45",
"host": "172.16.4.199",
"port": 6029
},
{
"id": "role-server-46",
"host": "172.16.4.199",
"port": 6030
},
{
"id": "role-server-47",
"host": "172.16.4.199",
"port": 6031
},
{
"id": "role-server-48",
"host": "172.16.4.199",
"port": 6032
},
{
"id": "role-server-49",
"host": "172.16.4.199",
"port": 6033
},
{
"id": "role-server-50",
"host": "172.16.4.199",
"port": 6034
},
{
"id": "role-server-51",
"host": "172.16.4.199",
"port": 6035
},
{
"id": "role-server-52",
"host": "172.16.4.199",
"port": 6036
},
{
"id": "role-server-53",
"host": "172.16.4.199",
"port": 6037
},
{
"id": "role-server-54",
"host": "172.16.4.199",
"port": 6038
},
{
"id": "role-server-55",
"host": "172.16.4.199",
"port": 6039
},
{
"id": "role-server-56",
"host": "172.16.4.199",
"port": 6040
}
],
"battle": [],
"comBattle": [],
"guild": [],
"activity": [
{
"id": "activity-server-20",
"host": "172.16.4.199",
"port": 6051
},
{
"id": "activity-server-21",
"host": "172.16.4.199",
"port": 6052
}
],
"order": [],
"gm": [],
"systimer": []
};
export const ch8 = {
"connector": [
{
"id": "connector-server-43",
"host": "172.16.4.200",
"port": 4051,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3051,
"frontend": true
},
{
"id": "connector-server-44",
"host": "172.16.4.200",
"port": 4052,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3052,
"frontend": true
},
{
"id": "connector-server-45",
"host": "172.16.4.200",
"port": 4053,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3053,
"frontend": true
},
{
"id": "connector-server-46",
"host": "172.16.4.200",
"port": 4054,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3054,
"frontend": true
},
{
"id": "connector-server-47",
"host": "172.16.4.200",
"port": 4055,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3055,
"frontend": true
},
{
"id": "connector-server-48",
"host": "172.16.4.200",
"port": 4056,
"clientHost": "yjz-bk-game11.fdd73.com",
"clientPort": 3056,
"frontend": true
}
],
"chat": [],
"role": [
{
"id": "role-server-57",
"host": "172.16.4.200",
"port": 6021
},
{
"id": "role-server-58",
"host": "172.16.4.200",
"port": 6022
},
{
"id": "role-server-59",
"host": "172.16.4.200",
"port": 6023
},
{
"id": "role-server-60",
"host": "172.16.4.200",
"port": 6024
},
{
"id": "role-server-61",
"host": "172.16.4.200",
"port": 6025
},
{
"id": "role-server-62",
"host": "172.16.4.200",
"port": 6026
},
{
"id": "role-server-63",
"host": "172.16.4.200",
"port": 6027
},
{
"id": "role-server-64",
"host": "172.16.4.200",
"port": 6028
},
{
"id": "role-server-65",
"host": "172.16.4.200",
"port": 6029
},
{
"id": "role-server-66",
"host": "172.16.4.200",
"port": 6030
}
],
"battle": [
{
"id": "battle-server-21",
"host": "172.16.4.200",
"port": 6031
},
{
"id": "battle-server-22",
"host": "172.16.4.200",
"port": 6032
},
{
"id": "battle-server-23",
"host": "172.16.4.200",
"port": 6033
},
{
"id": "battle-server-24",
"host": "172.16.4.200",
"port": 6034
},
{
"id": "battle-server-25",
"host": "172.16.4.200",
"port": 6035
}
],
"comBattle": [
{
"id": "comBattle-server-7",
"host": "172.16.4.200",
"port": 6091
},
{
"id": "comBattle-server-8",
"host": "172.16.4.200",
"port": 6092
}
],
"guild": [],
"activity": [
{
"id": "activity-server-22",
"host": "172.16.4.200",
"port": 6051
},
{
"id": "activity-server-23",
"host": "172.16.4.200",
"port": 6052
},
{
"id": "activity-server-24",
"host": "172.16.4.200",
"port": 6053
},
{
"id": "activity-server-25",
"host": "172.16.4.200",
"port": 6054
},
{
"id": "activity-server-26",
"host": "172.16.4.200",
"port": 6055
}
],
"order": [],
"gm": [],
"systimer": []
};
export const ch9 = {
"connector": [
{
"id": "connector-server-49",
"host": "172.16.4.201",
"port": 4051,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3051,
"frontend": true
},
{
"id": "connector-server-50",
"host": "172.16.4.201",
"port": 4052,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3052,
"frontend": true
},
{
"id": "connector-server-51",
"host": "172.16.4.201",
"port": 4053,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3053,
"frontend": true
},
{
"id": "connector-server-52",
"host": "172.16.4.201",
"port": 4054,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3054,
"frontend": true
},
{
"id": "connector-server-53",
"host": "172.16.4.201",
"port": 4055,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3055,
"frontend": true
},
{
"id": "connector-server-54",
"host": "172.16.4.201",
"port": 4056,
"clientHost": "yjz-bk-game12.fdd73.com",
"clientPort": 3056,
"frontend": true
}
],
"chat": [],
"role": [
{
"id": "role-server-67",
"host": "172.16.4.201",
"port": 6021
},
{
"id": "role-server-68",
"host": "172.16.4.201",
"port": 6022
},
{
"id": "role-server-69",
"host": "172.16.4.201",
"port": 6023
},
{
"id": "role-server-70",
"host": "172.16.4.201",
"port": 6024
},
{
"id": "role-server-71",
"host": "172.16.4.201",
"port": 6025
},
{
"id": "role-server-72",
"host": "172.16.4.201",
"port": 6026
},
{
"id": "role-server-73",
"host": "172.16.4.201",
"port": 6027
},
{
"id": "role-server-74",
"host": "172.16.4.201",
"port": 6028
},
{
"id": "role-server-75",
"host": "172.16.4.201",
"port": 6029
},
{
"id": "role-server-76",
"host": "172.16.4.201",
"port": 6030
}
],
"battle": [
{
"id": "battle-server-26",
"host": "172.16.4.201",
"port": 6031
},
{
"id": "battle-server-27",
"host": "172.16.4.201",
"port": 6032
},
{
"id": "battle-server-28",
"host": "172.16.4.201",
"port": 6033
},
{
"id": "battle-server-29",
"host": "172.16.4.201",
"port": 6034
},
{
"id": "battle-server-30",
"host": "172.16.4.201",
"port": 6035
}
],
"comBattle": [
{
"id": "comBattle-server-9",
"host": "172.16.4.201",
"port": 6091
},
{
"id": "comBattle-server-10",
"host": "172.16.4.201",
"port": 6092
}
],
"guild": [],
"activity": [
{
"id": "activity-server-27",
"host": "172.16.4.201",
"port": 6051
},
{
"id": "activity-server-28",
"host": "172.16.4.201",
"port": 6052
},
{
"id": "activity-server-29",
"host": "172.16.4.201",
"port": 6053
},
{
"id": "activity-server-30",
"host": "172.16.4.201",
"port": 6054
},
{
"id": "activity-server-31",
"host": "172.16.4.201",
"port": 6055
}
],
"order": [],
"gm": [],
"systimer": []
};

File diff suppressed because it is too large Load Diff

View File

@@ -11,15 +11,15 @@ envs=()
masterAddr=''
if [ ${1} == 'zy' ] ; then
sshAddr=( "yjz-zy-game1" "yjz-zy-game2" "yjz-zy-game3" "yjz-zy-game4" "yjz-zy-game5" "yjz-zy-game6" "yjz-zy-game7" "yjz-zy-game8" "yjz-zy-game9" "yjz-zy-game10")
envs=("zy1" "zy2" "zy3" "zy4" "zy5" "zy6" "zy7" "zy8" "zy9" "zy10")
sshAddr=( "yjz-zy-game1" "yjz-zy-game2" "yjz-zy-game3" "yjz-zy-game4" "yjz-zy-game5" "yjz-zy-game6" "yjz-zy-game7" "yjz-zy-game8" "yjz-zy-game9" "yjz-zy-game10" "yjz-bk-1" "yjz-bk-2" "yjz-bk-3" "yjz-bk-4" "yjz-bk-5" "yjz-bk-6")
envs=("zy1" "zy2" "zy3" "zy4" "zy5" "zy6" "zy7" "zy8" "zy9" "zy10" "zy11" "zy12" "zy13" "zy14" "zy15" "zy16")
masterAddr=${sshAddr[0]}
echo ${masterAddr}
port=22
env='zy1'
elif [ ${1} == 'ch' ] ; then
sshAddr=("yjz-ch-game1" "yjz-ch-game2" "yjz-ch-game3" "yjz-ch-game4" "yjz-ch-game5" "yjz-ch-game6")
envs=("ch1" "ch2" "ch3" "ch4" "ch5" "ch6")
sshAddr=("yjz-ch-game1" "yjz-ch-game2" "yjz-ch-game3" "yjz-ch-game4" "yjz-ch-game5" "yjz-ch-game6" "yjz-bk-10" "yjz-bk-11" "yjz-bk-12")
envs=("ch1" "ch2" "ch3" "ch4" "ch5" "ch6" "ch7" "ch8" "ch9")
masterAddr=${sshAddr[0]}
echo ${masterAddr}
port=22

View File

@@ -182,6 +182,66 @@ elif [ ${1} == 'yjzios' ] ; then
destUrl="root@yjz-ios-review:/root/zyz/"
port=22
env='yjzios'
elif [ ${1} == 'zy11' ] ; then
destUrl="root@yjz-bk-1:/root/zyz/"
port=22
env='zy1'
elif [ ${1} == 'zy12' ] ; then
destUrl="root@yjz-bk-2:/root/zyz/"
port=22
env='zy1'
elif [ ${1} == 'zy13' ] ; then
destUrl="root@yjz-bk-3:/root/zyz/"
port=22
env='zy1'
elif [ ${1} == 'zy14' ] ; then
destUrl="root@yjz-bk-4:/root/zyz/"
port=22
env='zy1'
elif [ ${1} == 'zy15' ] ; then
destUrl="root@yjz-bk-5:/root/zyz/"
port=22
env='zy1'
elif [ ${1} == 'zy16' ] ; then
destUrl="root@yjz-bk-6:/root/zyz/"
port=22
env='zy1'
# elif [ ${1} == 'zy17' ] ; then
# destUrl="root@yjz-bk-7:/root/zyz/"
# port=22
# env='zy1'
# elif [ ${1} == 'zy18' ] ; then
# destUrl="root@yjz-bk-8:/root/zyz/"
# port=22
# env='zy1'
# elif [ ${1} == 'zy19' ] ; then
# destUrl="root@yjz-bk-9:/root/zyz/"
# port=22
# env='zy1'
elif [ ${1} == 'ch7' ] ; then
destUrl="root@yjz-bk-10:/root/zyz/"
port=22
env='ch1'
elif [ ${1} == 'ch8' ] ; then
destUrl="root@yjz-bk-11:/root/zyz/"
port=22
env='ch1'
elif [ ${1} == 'ch9' ] ; then
destUrl="root@yjz-bk-12:/root/zyz/"
port=22
env='ch1'
# elif [ ${1} == 'ch10' ] ; then
# destUrl="root@yjz-bk-13:/root/zyz/"
# port=22
# env='ch1'
# elif [ ${1} == 'ch11' ] ; then
# destUrl="root@yjz-bk-14:/root/zyz/"
# port=22
# env='ch1'
# elif [ ${1} == 'ch12' ] ; then
# destUrl="root@yjz-bk-15:/root/zyz/"
# port=22
# env='ch1'
else
echo "需要一个参数指明服务器"
exit 1;