Closed nastra closed 8 years ago
I don't know much about supervisord
-- so, after a restart, will the new process continue appending to the same log file?
It looks like rotation is set up with logfile_maxbytes
and logfile_backups
in [supervisord]
block, and with stderr_logfile_maxbytes
and stderr_logfile_backups
in [child_program]
blocks. Thanks for this suggestion! I needed to go dig up how rotation was configured before attempting this, otherwise we tank servers pretty quickly with full disks.
http://supervisord.org/logging.html#activity-log-rotation
@mambocab yes, after a restart the cstar_perf component will continue to e.g. append stuff to /tmp/cstar_perf_client.log. In fact, I'm already using those changes on our DSE cstar_perf instance and they work as expected.
Awesome, thanks for the confirmation. +1 from me.
@mshuler is that one good to merge from your side?
Yes, +1. I can add rotation where needed.
The reason why we want to have fixed names instead of the generated log file names (/tmp/cstar_perf_X- ), is that once a cstar_perf component is restarted, the log file with the generated name will be overwritten and lost. However, after a restart we would like to be able to still preserve the log file.