Commit 20fb8284 by Kevin Falcone

Rotate mongodb.log and serverStatus.log independently

We were ending up with gaps in our logs on disk (everything was in
splunk, but missing in /edx/var/log/mongo).  When this ran previously
and roatated serverStatus.log but mongodb.log was less than 1M and
didn't need to rotate, the killall -USR1 to mongo would cause the log to
be reopened and written over.
parent b6602d62
{{ mongo_log_dir }}/*.log {
{{ mongo_log_dir }}/serverStatus.log {
create
compress
copytruncate
delaycompress
dateext
dateformat -%Y%m%d-%s
missingok
notifempty
daily
rotate 90
size 1M
}
{{ mongo_log_dir }}/mongodb.log {
create
compress
copytruncate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment