-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathecosystem.config.js
77 lines (73 loc) · 1.93 KB
/
ecosystem.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
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
apps: [
// Main service (gateway)
{
name : 'ATON Main Service',
script : 'services/ATON.service.main.js',
instances : 'max',
exec_mode : 'cluster',
watch : ["services","config"],
ignore_watch : ["config/flares"],
instance_var : 'INSTANCE_ID',
merge_logs : true,
max_memory_restart: "400M",
restart_delay : 1000,
//out_file : "./logs/ATON.service.main.log",
env: {
"NODE_ENV" : "production",
}
},
// Photon service
{
name : 'ATON Photon Service',
script : 'services/photon/ATON.service.photon.js',
instances : 1,
exec_mode : 'cluster',
watch : ["services","config"],
ignore_watch : ["config/flares"],
merge_logs : true,
max_memory_restart: "400M",
restart_delay : 1000,
//out_file : "./logs/ATON.service.photon.log",
env: {
"NODE_ENV" : "production",
}
},
// WebDav service
{
name : 'ATON WebDav Service',
script : 'services/webdav/ATON.service.webdav.js',
instances : 1,
exec_mode : 'cluster',
watch : ["services", "config"],
ignore_watch : ["config/flares"],
merge_logs : true,
max_memory_restart: "200M",
restart_delay : 1000,
//out_file : "./logs/ATON.service.webdav.log",
env: {
"NODE_ENV" : "production",
}
},
// Maat service
/*
{
name : 'ATON Maat Service',
script : 'services/ATON.service.maat.js',
instances : 1,
exec_mode : 'cluster',
watch : ["services", "config"]
}
*/
// Atonizer
/*
{
name : 'ATONIZER Service',
script : 'ATON.SERVICE.atonizer.js',
instances : 1,
exec_mode : 'fork',
watch : true
}
*/
]
};