forked from xtaci/gonet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini
46 lines (46 loc) · 1.11 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
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
43
44
45
46
# config file
version = 1
# Game Server
service = :8888
inspect = :8800
# 最长刷入数据库时间间隔
flush_interval = 5
# 超过这个操作数,必须刷入数据库
flush_ops = 10
# 最大延迟容忍, 单位:毫秒
max_latency = 5000
# 升级容忍(CD) 正态分布概率值sigma
# 3σ原则:P(μ-σ<X≤μ+σ)=68.3% P(μ-2σ<X≤μ+2σ)=95.4% P(μ-3σ<X≤μ+3σ)=99.7%
tolerate= 2
samples = 128
# Hub Server
hub_service = :8889
# Event Server
event_service = :8890
# Stats Server
stats_service = :8891
# 统计信息入库时间, 距离00:00的秒数
collect_time = 10800
# 联盟最大消息数
group_msg_max = 128
# 会话超时
session_timeout = 10
# 最多写缓冲保留packet_queue个packet,否者即视为DoS
packet_queue = 5
# mongodb 参数
mongo_host = 127.0.0.1
mongo_db = IE2
# stats db
mongo_host_stats = 127.0.0.1
mongo_db_stats = IE2_STAT
# MD5 salt
salt = s1TP4HchxA
# 日志文件
gs_log = gs.log
hub_log = hub.log
event_log = event.log
stats_log = stats.log
# 日志输出方向 both(控制台+文件), file(文件), none(不输出)
log_output=both
# 性能profile开关
profile=false