Closed jonsulman closed 7 years ago
The default settings from carbon.conf.example show how to set ENABLE_LOGROTATE, but don't clearly indicate that since the example is in the [cache] section, it doesn't apply to relay processes unless added to the [relay] section.
PR is merged, closing
I think the code that supports "logrotate" log rotation is not working under multiple carbon daemons.
log.py:
If you are running multiple daemons, as soon as one daemon notices the log file has rotated it will create a new one. Then for the other daemons
os.path.exists(self.path)
will be true (seeing the other daemon's newly created file), so they will not reopen their log file and will continue writing to the old file.As a result you end up with a situation like this: