Skip to content
Snippets Groups Projects
  • Bryan O'Sullivan's avatar
    2cad301a7f06
    blackbox: automatically rotate log files · 2cad301a7f06
    Bryan O'Sullivan authored
    If enabled, log rotation prevents the amount of space used by the
    blackbox log from growing without bound. This becomes important in
    cases where there are a lot of busy repositories managed by humans
    and automation on many machines.
    
    In large deployments, we cannot reasonably track all the repos where
    blackbox logs need to be managed, so it is safer to have blackbox
    manage its own logs than to move responsibility to an external tool
    such as logrotate.
    
    This change adds two configuration keys:
    
    * blackbox.maxsize is the maximum allowable size of the current log
    
    * blackbox.maxfiles is the number of log files to maintain
    2cad301a7f06
    History
    blackbox: automatically rotate log files
    Bryan O'Sullivan authored
    If enabled, log rotation prevents the amount of space used by the
    blackbox log from growing without bound. This becomes important in
    cases where there are a lot of busy repositories managed by humans
    and automation on many machines.
    
    In large deployments, we cannot reasonably track all the repos where
    blackbox logs need to be managed, so it is safer to have blackbox
    manage its own logs than to move responsibility to an external tool
    such as logrotate.
    
    This change adds two configuration keys:
    
    * blackbox.maxsize is the maximum allowable size of the current log
    
    * blackbox.maxfiles is the number of log files to maintain