-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
121 lines (121 loc) · 3.51 KB
/
Copy pathecosystem.config.js
File metadata and controls
121 lines (121 loc) · 3.51 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
module.exports = {
apps: [
{
name: 'search-agent',
script: './src/agents/search-agent.js',
instances: 1,
exec_mode: 'fork',
env: { NODE_ENV: 'production', QUERY_INTERVAL_MS: 10000 },
restart_delay: 5000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/search-agent-out.log',
error_file: './logs/search-agent-error.log',
merge_logs: true,
max_memory_restart: '256M',
autorestart: true,
kill_timeout: 5000,
},
{
name: 'extractor-agent',
script: './src/agents/extractor-agent.js',
instances: 2,
exec_mode: 'fork',
env: { NODE_ENV: 'production', FETCH_INTERVAL_MS: 12000 },
restart_delay: 5000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/extractor-agent-out.log',
error_file: './logs/extractor-agent-error.log',
merge_logs: true,
max_memory_restart: '256M',
autorestart: true,
kill_timeout: 5000,
},
{
name: 'research-coordinator',
script: './src/agents/research-coordinator.js',
instances: 1,
exec_mode: 'fork',
env: { NODE_ENV: 'production', CYCLE_INTERVAL_MS: 5000 },
restart_delay: 3000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/research-coordinator-out.log',
error_file: './logs/research-coordinator-error.log',
merge_logs: true,
max_memory_restart: '256M',
autorestart: true,
kill_timeout: 3000,
},
{
name: 'knowledge-agent',
script: './src/agents/knowledge-agent.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
SCAN_INTERVAL_MS: 300000,
SCAN_ROOT: '/home/shivaramgoud',
CHUNK_SIZE: 4000,
CHUNK_OVERLAP: 800,
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
},
restart_delay: 5000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/knowledge-agent-out.log',
error_file: './logs/knowledge-agent-error.log',
merge_logs: true,
max_memory_restart: '512M',
autorestart: true,
kill_timeout: 5000,
},
{
name: 'agent-gateway',
script: './src/gateway/agent-gateway.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
GATEWAY_PORT: 3000,
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
},
restart_delay: 3000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/agent-gateway-out.log',
error_file: './logs/agent-gateway-error.log',
merge_logs: true,
max_memory_restart: '256M',
autorestart: true,
kill_timeout: 3000,
},
{
name: 'doc-synthesizer',
script: './src/agents/doc-synthesizer.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
SYNTHESIS_INTERVAL_MS: 1800000,
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
},
restart_delay: 5000,
max_restarts: 10,
min_uptime: '10s',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
out_file: './logs/doc-synthesizer-out.log',
error_file: './logs/doc-synthesizer-error.log',
merge_logs: true,
max_memory_restart: '256M',
autorestart: true,
kill_timeout: 5000,
},
],
};