DNF阿拉德游戏论坛

 找回密码
 立即注册
楼主: dnf台服吧
打印 上一主题 下一主题

[教程] 《DNF台服官方操作手册》

[复制链接]

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

11#
 楼主| 发表于 2019-3-31 04:23:05 | 只看该作者

第十一章 DNF服務手動操作方式

第一節 SERVER PROCESS

Game Process

Server Name

Process Name

File path

GameSvr & StageSvr01

df_game_r

/home/neople/game/

Start Command:

Stop Command:

./df_game_r [CFG Name] start

./df_game_r [CFG Name] stop

 

Channel Process

Server Name

Process Name

File path

ChannelSvr & StageSvr01

df_channel_r

/home/neople/channel/

Start Command:

Stop Command:

./df_channel_r [CFG Name] start

./df_channel_r [CFG Name] stop

 

Relay Process

Server Name

Process Name

File path

RelaySvr & StageSvr01

df_relay_r

/home/neople/relay/

Start Command:

Stop Command:

./df_relay_r [CFG Name] start

./df_relay_r [CFG Name] stop

 

Stun Process

Server Name

Process Name

File path

StunSvr & StageSvr01

df_stun_r

/home/neople/stun/

Start Command:

Stop Command:

./df_stun_r [CFG Name] start

./df_stun_r [CFG Name] stop

 

DBMW_Guild Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_dbmw_r

/home/neople/dbmw_guild/

Start Command:

Stop Command:

./df_dbmw_r [CFG Name] start

./df_dbmw_r [CFG Name] stop

 

DBMW_mnt Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_dbmw_r

/home/neople/dbmw_ mnt /

Start Command:

Stop Command:

./df_dbmw_r [CFG Name] start

./df_dbmw_r [CFG Name] stop

 

DBMW_stat Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_dbmw_r

/home/neople/dbmw_ stat/

Start Command:

Stop Command:

./df_dbmw_r [CFG Name] start

./df_dbmw_r [CFG Name] stop

 

guild Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_guild_r

/home/neople/guild/

Start Command:

Stop Command:

./df_guild_r [CFG Name] start

./df_guild_r [CFG Name] stop

 

statics Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_statics_r

/home/neople/statics/

Start Command:

Stop Command:

./df_statics_r [CFG Name] start

./df_ statics _r [CFG Name] stop

 

monitor Process

Server Name

Process Name

File path

AppSvr & StageSvr02

df_monitor_r

/home/neople/monitor/

Start Command:

Stop Command:

./df_monitor_r [CFG Name] start

./df_monitor_r [CFG Name] stop

 

auction Process

Server Name

Process Name

File path

AuctionSvr & StageSvr02

df_auction_r

/home/neople/auction/

Start Command:

Stop Command:

./df_auction_r [CFG Name] start

./df_auction_r [CFG Name] stop

 

point Process

Server Name

Process Name

File path

AuctionSvr & StageSvr02

df_point_r

/home/neople/point/

Start Command:

Stop Command:

./df_point_r [CFG Name] start

./df_point_r [CFG Name] stop

 

bridge Process

Server Name

Process Name

File path

ChannelBridge & StageSvr02

df_bridge_r

/home/neople/bridge/

Start Command:

Stop Command:

./df_bridge_r [CFG Name] start

./df_bridge_r [CFG Name] stop

 

community Process

Server Name

Process Name

File path

ChannelBridge & StageSvr02

df_community_r

/home/neople/community/

Start Command:

Stop Command:

./df_ community _r [CFG Name] start

./df_ community _r [CFG Name] stop

 

coserver Process

Server Name

Process Name

File path

ChannelBridge & StageSvr02

df_coserver_r

/home/neople/coserver/

Start Command:

Stop Command:

./df_coserver_r [CFG Name] start

./df_coserver_r [CFG Name] stop

 

manager Process

Server Name

Process Name

File path

ChannelBridge & StageSvr02

df_manager_r

/home/neople/manager/

Start Command:

Stop Command:

./df_manager_r [CFG Name] start

./df_manager_r [CFG Name] stop

 

第二節 LOG指令說明

各程式的 LOG 會定期的刪除讓硬碟維持一定的空間
每個程式以同時在線600人為基準,1天的LOG量約 350M~ 400M 
每台SERVER啟動10個程式,一天的總LOG量約為 4G .

實行時間

腳本 (+ 變數)

實行SERVER

說明

最初設置SERVER時

/home/neople/crontab/upload_log_1h_log1_tw.sh

game SERVER

將history LOG傳送到 LogTool(172.1.2.151) SERVER

最初設置SERVER時

/home/neople/crontab/rm_log_17day.sh

全部SERVER

刪除LOG

最初設置SERVER時

/home/neople/crontab/removeOldFiles.sh

全部SERVER

清除時間過久的LOG.

最初設置SERVER時

/home/neople/crontab/zip_log_1day.sh

全部SERVER

壓縮LOG

 

“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

12#
 楼主| 发表于 2019-3-31 04:23:26 | 只看该作者

第十二章 正式機開關機流程

² 以下所有的操作皆使用Neople帳戶登入,不需切換root權限。使用root權限進行操作可能會導致服務發生異常。

² 每次進行操作時,一定要確認目前Process的運行狀態。執行ps efl | grep start

² 一定要按照步驟進行操作,Middleware資料回寫至DB才會正常。否則可能會造成資料回溯的狀況產生。

² 若原廠有要求全部APP Server進行重啟系統作業,請按照全部開關機流程進行。

² 若一般進行維護,關機可省略步驟7,8,9,開機可省略步驟1,2,3

第一節 開機流程

1. 操作伺服器:DNF-ChannelSvr[1-3]

Process Name:  df_channel_r

Command:  /home/neople/ctrl.sh channel start

Check Process:  ps efl | grep start

 

 

2. 操作伺服器:DNF-RelaySvr[1-3]

Process Name:  df_relay_r

Command:  /home/neople/ctrl.sh relay start

Check Process:  ps efl | grep start

 

3. 操作伺服器:DNF-StunSvr[1-3]

Process Name:  df_stun_r

Command:  /home/neople/ctrl.sh stun start

Check Process:  ps efl | grep start

 

4. 操作伺服器:DNF-ChannelBridge

Process Name:  df_manager_r, df_bridge_r, df_community_r, df_coserver_r

Command:  /home/neople/ctrl.sh all_common start

Check Process:  ps efl | grep start

 

 

5. 操作伺服器:DNF-AuctionSvr

Process Name:  df_auction_r,  df_point_r

Command:  /home/neople/ctrl.sh all_auction start

 /home/neople/ctrl.sh all_point start

Check Process:  ps efl | grep start

 

 

6. 操作伺服器:DNF-APPSVR[1-3]

Process Name:  dw_dbmw_r,  df_guild_r,  df_monitor_r,  df_statics_r

Command: /home/neople/ctrl.sh all_app start

Check Process:  ps efl | grep start

 

 

7. 操作伺服器:DNF-GameSvr[1-11] TP Service

Process Name:  zergsvr, secagent, gunnersvr

Command: /home/neople/secsvr/bin/clean_g3_mmap.sh

/home/neople/secsvr/bin/start_secagent.sh

Check Process:  ps efl | grep start

 

8. 操作伺服器:DNF-GameSvr[1-11]

Process Name:  df_game_r

Command: /home/neople/ctrl.sh game start

Check Process:  ps efl | grep start

 

 

9. 登入遊戲確認伺服器群是否正確開啟

 

 

10. 確認伺服器群頻道列表皆正常啟動。

 


第二節 關機流程

1. 操作伺服器:DNF-GameSvr[1-11]

Process Name:  df_game_r

Command: /home/neople/ctrl.sh game stop

Check Process:  ps efl | grep start

 

2. 操作伺服器:DNF-GameSvr[1-11] TP Service

Process Name:  zergsvr, secagent, gunnersvr

Command: /home/neople/secsvr/bin/stop_secagent.sh  

/home/neople/secsvr/bin/clean_g3_mmap.sh

Check Process:  ps efl | grep start

 

3. 操作伺服器:DNF-APPSVR[1-3]

Process Name:  dw_dbmw_r,  df_guild_r,  df_monitor_r,  df_statics_r

Command: /home/neople/ctrl.sh all_app stop

Check Process:  ps efl | grep start

 

4. 操作伺服器:DNF-AuctionSvr

Process Name:  df_auction_r,  df_point_r

Command:  /home/neople/ctrl.sh all_auction start

 /home/neople/ctrl.sh all_point start

Check Process:  ps efl | grep start

 

5. 操作伺服器:DNF-ChannelBridge

Process Name:  df_manager_r, df_bridge_r, df_community_r, df_coserver_r

Command:  /home/neople/ctrl.sh all_common start

Check Process:  ps efl | grep start

 

6. 操作伺服器:DNF-StunSvr[1-3]

Process Name:  df_stun_r

Command:  /home/neople/ctrl.sh stun stop

Check Process:  ps efl | grep start

 

7. 操作伺服器:DNF-RelaySvr[1-3]

Process Name:  df_relay_r

Command:  /home/neople/ctrl.sh relay stop

Check Process:  ps efl | grep start

 

8. 操作伺服器:DNF-ChannelSvr[1-3]

Process Name:  df_channel_r

Command:  /home/neople/ctrl.sh channel stop

Check Process:  ps efl | grep start

 

9. 登入遊戲確認伺服器群是否正確關閉

“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

13#
 楼主| 发表于 2019-3-31 04:26:43 | 只看该作者

第十三章 測試機開關機流程

² 以下所有的操作皆使用Neople帳戶登入,不需切換root權限。使用root權限進行操作可能會導致服務發生異常。

² 每次進行操作時,一定要確認目前Process的運行狀態。執行ps efl | grep start

² 一定要按照步驟進行操作,Middleware資料回寫至DB才會正常。否則可能會造成資料回溯的狀況產生。

² 測試機禁止重啟系統,如果有必需要重啟,一定要通知原廠進行服務關閉及檢查。

測試機沒有sh可供直接啟動及關閉服務,所有服務都必需用手動開啟及關閉。

目前測試機共有兩台AP Svr及兩台DB Svr

StageSvr01: GameServer Process

StageSvr02: Backend Process

StageSvr03-04: DB

所有服務皆使用單一Process指令進行開關作業,請參閱 第十章DNF服務手動操作方式

測試機一樣必需按照正式機開關機的流程進行。

開機: Stun = Relay = Channel >> ChannelBridge >> Auction >> App >> GameSvr(TP) >> GameSvr(Game)

關機: GameSvr(Game) >> GameSvr(TP) >> App >> Auction >> ChannelBridge >> Stun = Relay = Channel

“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

14#
 楼主| 发表于 2019-3-31 04:28:51 | 只看该作者

第十四章例行性維護排程表

因異動頻繁,請參閱Google Document(DNF例行性維護排程表)或範本頁面。

每週三固定寄出當週排程表,供其他部門參考維護排程內容。

https://docs.google.com/a/garena.com/spreadsheet/ccc?key=0AgVCk_rGjNn3dFVXREI0Nzl2ZnJuN1JNWDJaZ09mOFE#gid=1


 


“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

15#
 楼主| 发表于 2019-3-31 04:30:00 | 只看该作者

第十五章 正式機維護更新流程

1. 確認版本更新時程(包含正式服套用時間,測試機更新時間,TP估計作業時間等等)

2. Neople新版本更新至測試機(Server & Client Patch)

3. QA討論目前測試機版本測試進度

4. 確認本次更新版本Final Build,與Neople要求DNF.exemap檔案

5. 提供DNF.exemap檔案給騰訊TP團隊

6. TP團隊確認封裝完成時間

7. TP封裝檔案回傳,提供給技術部門進行數位簽章

8. 將數位簽章版本提供給Neople

9. NeopleTP版本上傳至測試機Patch Server,三方進行TP功能測試。

10. QA確認本次維護內部測試時間

11. Neople確認本次維護DB作業時間

12. TP確認本次是否有Server Patch及特殊作業事項

13. Neople確認本次需更新哪些Server Patch及特殊作業事項。

14. 列出本次例行性維護排程表與三方(Garena, Neople, TP)知會本次作業時間。

 

 

· BugReport(172.1.2.164) SERVER被配置為在中央發佈的SERVER .

· 配置二元以外的檔案資料夾  : /home/neople/patch/TWDF_Server_LIVE_tw/Server

· 更新時終止server的狀態下,server移動到/home/neople/,執行script.

執行時間

劇情 (+ 劇情變數)

執行server

說明

維護中

/home/neople/patch_new.sh

全部

形成的目錄全部會在 BugReport(172.1.2.164) server同步. 原有的CFG會維持保留. (CFG 無變化)
請注意,除了下面形式之外,其他皆會被刪除.
--exclude=core* --exclude=table --exclude=cfg --exclude=*.log  --exclude=*.pid --exclude=Log* --exclude=channel_info --exclude=.svn

新增server/server變更時

/home/neople/patch_new.sh dire 

cain

siro

APP, Game server

形成的目錄全部會在 BugReport(172.1.2.164) server同步, 變更或是新增的 dire 會套用server相關的 CFG.
(只在APP Server, Game Server使用)
請注意,除了下面形式之外,其他皆會被刪除.
--exclude=core* --exclude=table --exclude=cfg --exclude=*.log  --exclude=*.pid --exclude=Log* --exclude=channel_info --exclude=.svn 

Relay server新增

/home/neople/patch_new.sh relay

Relay  Server

形成的目錄全部會在 BugReport(172.1.2.164) server同步, CFG要變換執行relay Process的 CFG 的server IP.
之後要在 CFG進行該server的monitor程式連結作業.
請注意,除了下面形式之外,其他皆會被刪除.
--exclude=core* --exclude=table --exclude=cfg --exclude=*.log  --exclude=*.pid --exclude=Log* --exclude=channel_info --exclude=.svn 

 

 

 

 


“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

16#
 楼主| 发表于 2019-3-31 04:31:37 | 只看该作者

第十六章 其他作業事項

第一節 頻道異動方式說明:

1. 請原廠提供頻道列表資訊excel,可參閱範例檔案130319_TWDF_Channel list_CBT_v 1TW.xlsx

 

2. 連接到BugReport(172.1.2.164) SERVER.將要變更的GAME SERVER移動到CFG 資料夾.
卡恩伺服 : /home/neople/patch/TWDF_Server_LIVE_tw/server/game/cfg_cain 

 

3. 執行該資料夾裡的 "chc"的命令.

 

[neople@BugReport ~/patch/TWDF_Server_LIVE_tw/server/game/cfg_cain]$ chc
Server ip?
203.69.93.2 203.69.93.3 203.69.93.4 203.69.93.5 203.69.93.6
channel num?
01 06 07 11 12 13 14 15 16 17 18,19 20 21 22 23 24 25 26 27 28 29,30 31 32 33 34 35 36 37 38 39 40,41,42
Server Name?
cain
server gc?
10
sever lls_key?
3240332317335214766634233322344377569687 3240332317335214766634233322344387560827 3240332317335214766634233322344377569627 3240332317335214766634223722146347566887 3240332317335214766634233322344367366567
01 06 07 11 12 13 14 15 16 17 18
01 06 07 11 12 13 14 15 16 17 18
cp: `cain01.cfg' and `cain01.cfg' are the same file
ip = 203.69.93.2
gc_no = 1001
exchange_server_ip = 203.69.93.2
exchange_server_port = 20011
tcp_port = 10011
udp_port = 11011
01 06 07 11 12 13 14 15 16 17 18
ip = 203.69.93.2
gc_no = 1006
exchange_server_ip = 203.69.93.2
exchange_server_port = 20012
tcp_port = 10012
udp_port = 11012
01 06 07 11 12 13 14 15 16 17 18
ip = 203.69.93.2
gc_no = 1007
exchange_server_ip = 203.69.93.2
exchange_server_port = 20013
tcp_port = 10013
udp_port = 11013
01 06 07 11 12 13 14 15 16 17 18
ip = 203.69.93.2
gc_no = 1011
exchange_server_ip = 203.69.93.2
exchange_server_port = 20014
tcp_port = 10014
udp_port = 11014
01 06 07 11 12 13 14 15 16 17 18
ip = 203.69.93.2
gc_no = 1012
exchange_server_ip = 203.69.93.2
exchange_server_port = 20015
tcp_port = 10015
udp_port = 11015
01 06 07 11 12 13 14 15 16 17 18
ip = 203.69.93.2
..........(중간생략)
relay_IP?
203.69.93.81
cain01.cfg
relay_ip = 203.69.93.81
relay_tcp_port = 7200
relay_udp_port = 7200
cain06.cfg
relay_ip = 203.69.93.81
relay_tcp_port = 7200
relay_udp_port = 7200
cain07.cfg
relay_ip = 203.69.93.81
relay_tcp_port = 7200
relay_udp_port = 7200
cain11.cfg
relay_ip = 203.69.93.81
relay_tcp_port = 7201
relay_udp_port = 7201
cain12.cfg
relay_ip = 203.69.93.81
relay_tcp_port = 7201
relay_udp_port = 7201
cain13.cfg
.... (中間省略)

 

4.  CFG 設定和上面一樣的 Server IP,輸入 channel , Server Name, server gc Number, lls_key, relay IP的話就會產生所輸入的分流數.

 

5. 之後在卡恩伺服器組物理SERVER的 /home/neople/命令執行 ./patch_new.sh cain 的話,就會找到該SERVER  IP並複製到CFG 資料夾.

 

6. 通知Neople調整頻道標籤,如下圖:.

 

 

第二節 新增伺服器群組操作說明

1. 為了追加新的SERVER,NEOPLE這邊需要產新的 LLS Key.

以下列形式告知 SERVER限制 IP和 Eth0的 HW Mac就可以了.

 ** (限制IP若有 Eth0 以外的,請務必告知限制的 IP和 Eth0的 HW Mac .) **

例如

172.1.2.11 AC:16:2D:73:CC:DC
172.1.2.12 AC:16:2D:74:19:18

以下為使用中的 Server LLS Key List 

172.1.2.2       AC:16:2D:78:D8:D4       KEY : 3240332317335214766634233322344377569687

172.1.2.3       AC:16:2D:78:D9:EC       KEY : 3240332317335214766634233322344387560827

172.1.2.4       AC:16:2D:78:D8:D8       KEY : 3240332317335214766634233322344377569627

172.1.2.5       AC:16:2D:72:21:E8       KEY : 3240332317335214766634223722146347566887

172.1.2.6       AC:16:2D:78:D7:00       KEY : 3240332317335214766634233322344367366567

172.1.2.7       AC:16:2D:78:D8:CC       KEY : 3240332317335214766634233322344377569507

172.1.2.8       AC:16:2D:78:D8:F0       KEY : 3240332317335214766634233322344377569967

172.1.2.9       AC:16:2D:78:D8:DC       KEY : 3240332317335214766634233322344377569767

172.1.2.10      AC:16:2D:78:D6:E4       KEY : 3240332317335214766634233322344357567747

172.1.2.11      AC:16:2D:73:CC:DC       KEY : 3240332317335214766634223822343357566767

172.1.2.12      AC:16:2D:74:19:18       KEY : 3240332317335214766634223922145367365707

 

2. 產生新伺服器的CFG檔案,請參閱第十六章第一節 頻道異動方式說明。

3. 在新的Server上進行APP Svr CFG設置

[neople@AppSpare1 ~]$ mkdir dbmw_stat dbmw_guild dbmw_mnt monitor guild statics //APP 產出資料夾
[neople@AppSpare1 ~]$ rsync -av --exclude=.svn 172.1.2.164::patch/TWDF_Server_LIVE_tw/*.sh ./ //遊戲管理劇本同步
receiving incremental file list
a.sh
ctrl.sh
patch.sh
patch_copy.sh
patch_copy_svn.sh
patch_new.sh
sent 151 bytes  received 15681 bytes  10554.67 bytes/sec
total size is 15280  speedup is 0.97
[neople@AppSpare1 ~]$ ./patch_new.sh cain // APP SERVER同化的例子)Cain SERVER組的 APP程式被同化後,各程式的 Cain 相關 CFG檔案會自動複製到各程式的CFG資料夾
receiving incremental file list
dbmw_guild/
dbmw_guild/df_dbmw_r
dbmw_guild/server_str.xml
dbmw_guild/cfg/
dbmw_guild/cfg_backup/
dbmw_guild/cfg_backup/dbmw_gld_cain.cfg
dbmw_guild/cfg_backup/dbmw_gld_dire.cfg
dbmw_guild/cfg_backup/dbmw_gld_siro.cfg
dbmw_guild/cfg_backup/dbserver.cfg
dbmw_guild/log/
dbmw_guild/pid/
dbmw_guild/table/
dbmw_guild/table/server_config.tbl_cain
dbmw_guild/table/server_config.tbl_dire
dbmw_guild/table/server_config.tbl_siro
sent 293 bytes  received 4080186 bytes  2720319.33 bytes/sec
total size is 4078913  speedup is 1.00
receiving incremental file list
dbmw_mnt/
dbmw_mnt/df_dbmw_r
dbmw_mnt/server_str.xml
dbmw_mnt/cfg/
dbmw_mnt/cfg_backup/
dbmw_mnt/cfg_backup/dbmw_mnt_cain.cfg
dbmw_mnt/cfg_backup/dbmw_mnt_dire.cfg
dbmw_mnt/cfg_backup/dbmw_mnt_siro.cfg
dbmw_mnt/cfg_backup/dbserver.cfg
dbmw_mnt/log/
dbmw_mnt/pid/
dbmw_mnt/table/
dbmw_mnt/table/server_config.tbl_cain
dbmw_mnt/table/server_config.tbl_dire
dbmw_mnt/table/server_config.tbl_siro
sent 293 bytes  received 4080248 bytes  2720360.67 bytes/sec
total size is 4078977  speedup is 1.00
receiving incremental file list
dbmw_stat/
dbmw_stat/df_dbmw_r
dbmw_stat/server_str.xml
dbmw_stat/cfg/
dbmw_stat/cfg_backup/
dbmw_stat/cfg_backup/dbmw_stat_cain.cfg
dbmw_stat/cfg_backup/dbmw_stat_dire.cfg
dbmw_stat/cfg_backup/dbmw_stat_siro.cfg
dbmw_stat/cfg_backup/dbserver.cfg
dbmw_stat/log/
dbmw_stat/pid/
dbmw_stat/table/
dbmw_stat/table/server_config.tbl_cain
dbmw_stat/table/server_config.tbl_dire
dbmw_stat/table/server_config.tbl_siro
sent 293 bytes  received 4079097 bytes  2719593.33 bytes/sec
total size is 4077816  speedup is 1.00
receiving incremental file list
guild/
guild/df_guild_r
guild/server_str.xml
guild/cfg/
guild/cfg_backup/
guild/cfg_backup/gld_cain.cfg
guild/cfg_backup/gld_dire.cfg
guild/cfg_backup/gld_siro.cfg
guild/cfg_backup/guild.cfg
guild/log/
guild/pid/
guild/script/
guild/script/kill_user_config.tbl
guild/script/power_war_event.tbl
sent 274 bytes  received 2308008 bytes  4616564.00 bytes/sec
total size is 2306997  speedup is 1.00
receiving incremental file list
monitor/
monitor/df_monitor_r
monitor/cfg/
monitor/cfg_backup/
monitor/cfg_backup/mnt_cain.cfg
monitor/cfg_backup/mnt_dire.cfg
monitor/cfg_backup/mnt_siro.cfg
monitor/cfg_backup/monitor.cfg
monitor/log/
monitor/pid/
monitor/script/
monitor/script/kill_user_config.tbl
monitor/script/member_cnt_config.tbl
monitor/script/member_exp.tbl
sent 274 bytes  received 2456112 bytes  4912772.00 bytes/sec
total size is 2455095  speedup is 1.00
receiving incremental file list
statics/
statics/df_statics_r
statics/cfg/
statics/cfg_backup/
statics/cfg_backup/stat_cain.cfg
statics/cfg_backup/stat_dire.cfg
statics/cfg_backup/stat_siro.cfg
statics/cfg_backup/statistic.cfg
statics/log/
statics/pid/
statics/table/
statics/table/server_config.tbl_cain
statics/table/server_config.tbl_dire
statics/table/server_config.tbl_siro
sent 274 bytes  received 1755234 bytes  1170338.67 bytes/sec
total size is 1754312  speedup is 1.00
[neople@AppSpare1 ~]$

 

4. 新遊戲SERVER的實行和下面一樣

5. Autcon, Point 程式只能在Autcon SERVER(172.1.2.91)進行同步(./patch_new.sh auction)

6. 進行確認各程序,嘗試啟動新伺服器,測試各CFG是否正常套用

第三節 DNF GAME (DF_GAME_R) LOG

紀錄名

說明

Log20130212.cri

 

Log20130212.debug

 

Log20130212.error

 

Log20130212.init

遊戲啟動時紀錄在控制台畫面出現的LOG

Log20130212.log

SERVER端結束CLIENT,發生的ERROR CODE紀錄

Log20130212.money

 

Log20130212.snap

 

 

 

“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

17#
 楼主| 发表于 2019-3-31 04:32:53 | 只看该作者

第十七章 異常狀況處理

第一節 SERVER PROCESS異常狀況結束

因異常狀況Game Process中止,發生core 檔案時,如下圖:

-rw------- 1 neople neople 1.1G Feb 15 11:17 core.12822

解決方案 : 先將GameSERVER重新啟動,把Core檔案壓縮後並傳給Neople研發團隊進行分析。

第二節 DB TABLE斷線,或者DB連線速度過慢

因為df_game_r而累積於 DB列上,造成記憶體增加 

程式記憶體到達 4G,SERVER會斷線因為記憶體未復原造成記憶體不足

Neople這邊修正中,發生此狀況請先記錄後通知原廠處理。

第三節 決鬥場無法正常開啟

沒有db_info.cfg 檔案或是 cfg 檔案裡的db_tbl_file = db_info_tw 部分有錯誤時會發生

[!] Init DataManager Success
[!] Init GameManager ...
[!] Init GameManager Success
[!] Init Arad GameScriptManager ...
- Loading Avatar Hidden Option - Success
- Loading Avatar Recharge script - Success
- Loading Emblem Compound script - Success
- Loading Item Reward Script - Success
- Loading Event Period Script - Success
- Loading Statistics Item List - Success
- Loading NexonFolder Script - Success
- Loading Avatar Convert script - Success
[!] Init Arad GameScriptManager Success
[!] Init ChannelType Success
- Channel Type : 8
[!] Init tournament db [!] Init tournament db Fail

解決方案 : 請將db_info 檔案名稱和 cfg 檔案的 " db_tbl_file ="欄統一

第四節 無法正常啟動遊戲

1. 重複執行和存在 pid檔案時發生,產生下列的錯誤訊息:

[neople@gamesvr10 ~/game]$ ./df_game_r cain41 start

**********************************************************
* +--- +-+ + +---- DUNGEON & FIGHTER *
* | | | | | | *
* | | | | | +---- *
* | | | | | | Open Beta Test on 2005.08.10~ *
* +--- + +-+ | Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (13-02-15/10:31)
[HackShield Anti Crack Message] [Success] _AhnHS_CreateServerObject 
[!] Check Args ...
m_Server_info.lls_key,: 3240332317335214766634223822343357566767
lls_key :: 3240332317335214766634223822343357566767
[!] Server key Check OK
- cfg path: ./cfg/cain41.cfg
- pid path: ./pid/cain41.pid
Process(ch.41) is already operated.
[!] Check Args Fail

解決方案 :  已經執行此程式,請停止或是將 pid 值刪除後重新執行.

 

2. SERVER鍵發生錯誤而無法執行,如下列的錯誤訊息:

[neople@gamesvr10 ~/game]$ ./df_game_r cain41 start

**********************************************************
* +--- +-+ + +---- DUNGEON & FIGHTER *
* | | | | | | *
* | | | | | +---- *
* | | | | | | Open Beta Test on 2005.08.10~ *
* +--- + +-+ | Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (13-02-15/10:37)
[HackShield Anti Crack Message] [Success] _AhnHS_CreateServerObject 
[!] Check Args ...
m_Server_info.lls_key,: 324033231733521476663422382234335756676
lls_key :: 324033231733521476663422382234335756676
[!] Server key Check FAIL
[!] Check Args Fail

解決方案 : NEOPLE邀請,新增伺服器群,請參考第十六章 第二節 新增伺服器群組

 

3. DB資訊ERROR1,請參考下列兩項錯誤訊息

Application App Config Load_Table() Success! 
Application Server Config Load_Table() Success! 
Application Init Frame Count() Success! 
Application UDP Handler Create() Success! 
Application Server Handler Create() Success! 
Application Packet Translater Attach() Success! 
Application Packet Decoder Attach() Success! 
Application DB Manager Init() Success! 
E_MASTER_DB Open Success! 
DB Open Fail

 

- Open(type:14, 172.1.2.131/3306/taiwan_game/taiwean_billing

mysql_real_connect(ip:172.1.2.131port:3306name:taiwean_billingid:taiwan_game error='1049') fail 

- DBConnector Connect DB Fail 

[!] Init GlobalData Fail

 

解決方案 : 在存放DB資訊的table上 無正確輸入 DB帳號密碼 / DB名稱時會發生

請與Neople連繫,確認連線設定與帳號密碼無誤。

 

4. DB資訊ERROR2,請參考下列兩項錯誤訊息:

./../Include/FilePack/Pack.cpp(819) - get 
../../Include/FilePack/Pack.cpp(819) - get 
../../Include/FilePack/Pack.cpp(819) - get 
../../Include/FilePack/Pack.cpp(819) - get 
../../Include/FilePack/Pack.cpp(819) - get 
Success 
[!] Init Login State Success 
Fail insert Event Table

 

- Open(type:13, 172.1.2.131/3306/taiwan_game/taiwan_se_event 
- Open(type:14, 172.1.2.131/3306/taiwan_game/taiwan_billing 
- All DB Open Success 
- Init Query Table Success 
- Success WEB DB OPEN 
Failed to read slang list 
[!] Init GlobalData Fail

 

解決方案 : DB資料可能有異常狀況,NEOPLE DBA負責人員邀請 DB資料

 

第五節 GAME PROCESS CPU使用率超過90%

4/25之前的df_game_r版本,有發生Game Process啟動之後,會在運行到某個函式庫的function時發生CPU使用率開始升高的狀況。

使用top指令,確認有異常的Process PID Number

使用ps efl | grep start指令,確認PID 對應的Process

使用pkill -9 [PID]指令,刪除異常的Process

刪除/home/neople/game/pid/[異常ProcessName].pid檔案

使用/home/neople/game/df_game_r [異常ProcessName] start指令,重新啟動服務

使用ps efl | grep start指令,確認服務正常開啟。

 

第六節 各程序終止處理方式

 

順序

程式名稱

依賴性

啟動終止 (例子)

備註

1

df_game_r

DB有依賴性

./df_game_r cain01 stop

- SERVER終止程式

1. Configure file loading

2. 終止時確認argument 

3. Pid file loading 後 SIGUSR2 Signal 傳送

4. Accept thread 結束

5. 將連線中的 USER 強制 logout

6. Server 節制

7. MONITOR SERVER透過 Heart beat確認SERVER斷線後進行處理

2

df_auction_r

DB

./df_auction_r ./cfg/auction_cain.cfg stop df_auction_r

服務中,和開發組討論後重啟程式

3

df_guild_r

df_dbmw_r

./df_guild_r gld_cain stop

 

4

df_statics_r

 

./df_statics_r stat_cain stop

 

5

df_monitor_r

df_manger_r,df_dbmw_r

./df_monitor_r mnt_cain stop

服務中的程式斷線時,重啟SERVER組的全部程式  

6

df_dbmw_r

 

./df_dbmw_r dbmw_stat_cain stop

 無法看到同時在線的現象(和玩家無實際關聯)

7

df_dbmw_r

 

./df_dbmw_r dbmw_gld_cain stop

 

8

df_dbmw_r

df_monitor_r, df_guild_r, DB

./df_dbmw_r dbmw_mnt_cain stop

 

9

df_coserver_r

./df_coserver_r coserver stop

 

10

df_manger_r

DB

./df_manger_r manger stop

服務中的程式斷線時重啟全部SERVER組的全部程式

11

df_channel_r

df_bridge_r

./df_channel_r channel stop

 

12

df_bridge_r

DB

./df_bridge_r bridge stop

 

13

df_relay_r

./df_relay_r relay01 stop

 

14

df_stun_r

./df_stun_r stop

 

 


“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

签到天数: 42 天

[LV.5]阿拉德勇士

1165

主题

1501

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
73648
怒气
65390
声望
2703
战力
1166

活跃会员灌水之王游戏爱好者阿拉德最佳作者阿拉德勇士战斗法师DOF玩家佛系DNF玩家

18#
 楼主| 发表于 2019-3-31 04:33:27 | 只看该作者
“今天也是充满希望的一天!”——赛丽亚
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|DNF阿拉德游戏论坛 ( 渝ICP备13007431号1 )

GMT+8, 2024-5-19 05:22 , Processed in 0.151186 second(s), 34 queries .

快速回复 返回顶部 返回列表
关闭

阿拉德大陆的勇士们!今天也会是充满希望的一天!