-
Notifications
You must be signed in to change notification settings - Fork 419
/
config.js
66 lines (55 loc) · 1.42 KB
/
config.js
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'use strict';
module.exports = {
debug: true,
// TODO:绑定address
//address:'127.0.0.1',
// redis相关
redisHost: '<设置redis地址>', // 服务器
//redisHost: '127.0.0.1',
redisPort: 6379,
redisAuth: '<Redis密码>',
// mongodb相关
mongodbHost: '<设置mongodb地址>', // 服务器
//mongodbHost: '127.0.0.1',
mongodbPort: 27017,
mongodbDatabase: '<Database>',
mongodbUserName: '<用户名>',
mongodbPassword: '<密码>',
elasticsearchHost: '<设置Elasticsearch地址>', // 127.0.0.1:9200
// bootstrap dht
//'bootstrapAddress': 'dht.transmissionbt.com',
bootstrapAddress: 'router.utorrent.com',
bootstrapPort: 6881,
// remoteNodes数量限制
remoteNodesLimit: 100000,
// 单个worker内存限制
memoryLimit: {
'worker': '65',
'male': '45',
'female': '60'
},
// 保留多少天的热度
hotCounts: 14,
worker: {
3000: {
sended: true, // 是否发送find_node
cycle: 20 // 周期,每隔多少毫秒发送一次find_node。值越小,频率越高
},
3001: {
sended: true,
cycle: 20
},
3002: {
sended: true,
cycle: 20
},
3003: {
sended: true,
cycle: 20
},
3004: {
sended: true,
cycle: 20
}
}
};