forked from whamcloud/integrated-manager-for-lustre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logrotate.cfg
46 lines (42 loc) · 924 Bytes
/
logrotate.cfg
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
compress
/var/log/chroma/realtime.log
/var/log/chroma/view_server.log {
missingok
rotate 10
copytruncate
size=10M
}
/var/log/chroma/job_scheduler.log
/var/log/chroma/http.log
/var/log/chroma/corosync.log
/var/log/chroma/http_agent.log
/var/log/chroma/lustre_audit.log
/var/log/chroma/plugin_runner.log
/var/log/chroma/power_control.log
/var/log/chroma/stats.log
/var/log/chroma/install.log {
missingok
rotate 10
nocreate
size=10M
}
/var/log/chroma/gunicorn-error.log
/var/log/chroma/gunicorn-access.log {
missingok
rotate 10
# python will recreate these after they are rotated
# but gunicorn will have them open so tell them to reload the log files
postrotate
[ -f /var/run/gunicorn.pid ] && kill -USR1 $(cat /var/run/gunicorn.pid)
sleep 60
endscript
nocreate
size=10M
}
/var/log/chroma/db_log {
missingok
rotate 20
# python will recreate these after they are rotated
nocreate
size=125M
}