stable
Clone or download
Read-only
This introduce a new RabbitMQ queue to manage parsing of logs. Instead of keeping forever logs in /var/log/tuleap/year/month as it was done on RHEL6, with RHEL7 only default logrotation is kept. In addition to that, logs are parsed as they appear thanks to postrotate that triggers a new event (via RabbitMQ) and consumed by a dedicated worker (plugins/svn/bin/svn_stats_to_db.php). The processing is not done directly in logrotate "postrotate" as the parsing might be long. Part of story #10167 have logs of svn activities done one backend-svn Change-Id: Ieaa7df8f06c9c793e2cc8392fdf89393e1bc9e78
Modified Files
Name | ||||
---|---|---|---|---|
M | docker-compose-distlp.yml | +1 | −1 | Go to diff View file |
A | plugins/svn/bin/svn_stats_to_db.php | +42 | −0 | Go to diff View file |
A | plugins/svn/include/Svn/Logs/ParseQueue.php | +68 | −0 | Go to diff View file |
M | plugins/svn/include/autoload.php | +3 | −2 | Go to diff View file |
A | src/common/Httpd/PostRotateEvent.php | +59 | −0 | Go to diff View file |
M | src/common/autoload.php | +3 | −2 | Go to diff View file |
A | src/etc/el7/httpd/logrotate | +14 | −0 | Go to diff View file |
A | src/utils/httpd/postrotate.php | +39 | −0 | Go to diff View file |
A | src/utils/systemd/tuleap-svn-log-parser.service | +13 | −0 | Go to diff View file |
M | tools/Configuration/Apache/BackendSVN.php | +57 | −1 | Go to diff View file |
M | tools/Configuration/Setup/DistributedSVN.php | +5 | −2 | Go to diff View file |
M | tools/distlp/backend-svn/run.php | +1 | −1 | Go to diff View file |
M | tools/distlp/backend-svn/supervisord.conf | +9 | −2 | Go to diff View file |
M | tools/rpm/tuleap.rhel7.spec | +4 | −1 | Go to diff View file |