•  
      request #7657 codendi_syslog filled with too many messages of purged repositories
    Infos
    #7657
    Mohamed Amin Doghri (doghrim)
    2014-12-12 16:31
    2014-12-04 15:45
    7654
    Details
    codendi_syslog filled with too many messages of purged repositories
    codendi_syslog is filled with too many log messages of repositories that are already purged.
    Purge extract all Gitolite repositories that was deleted.
    SCM/Git
    7.7
    CentOS 6
    • [x] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Mohamed Amin Doghri (doghrim)
    Closed
    2014-12-12
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Merged in 7.8.99.2

    • Status changed from Under review to Closed
    • Close date set to 2014-12-12
    User avatar
    What we want to do is to minimize loaded deleted repositories by extracting only those who should be purged to day.
    This will minimize unnecessary log output of repo that are already purged and also minimize memory load.
    For instance, if we have 4000 deleted repo before ToDay-retentionPeriod and only 5 repo need to be purged , Tuleap will load all of them in memory (database connection and creation of GitRepository objects), so we will have 4000 log messages instaed of 5 and 4000 GitRepository in memory instead of 5.
    Log will became useless since we will not know what repo are really purged , in fact the method that really purge (deleteBackup in GitoliteDriver) doesn't hold log message.
    So Finally , we want to optimise log output and memory load .
    Is it clear ?
    User avatar
    Could you explain what you want to do ? I cannot understand with the given description.

    With the recent versions of tuleap, we have a dedicated queue for git events AND logrotate. Isn't that enough ?