• Jérome Perrin's avatar
    Fix erp5 slow queries logs · 5c33d3d4
    Jérome Perrin authored
    ERP5 software release has some support for mariadb slow queries:
     - run `pt-query-digest` daily
     - check that the number of slow queries and the slowest slow query do not exceed some thresholds defined as instance parameters
    
    but this had issues:
     - the daily `pt-query-digest` reports where kept as not-compressed text files, which over time takes quite a lot of disk space
     - the threshold detection was not working, since strings and floats were compared - see nexedi/slapos.toolbox!83
    
    This uses new techniques in software release testing from nexedi/slapos.core!245, we use [faketime] to simulate running crontabs and promises at a specific time in the future, so that we can assert the exact expected behaviour of crontab scripts.
    
    [faketime]: https://github.com/wolfcw/libfaketime
    
    See merge request nexedi/slapos!801
    5c33d3d4
Name
Last commit
Last update
..
templates Loading commit data...
test Loading commit data...
CHANGES.caddy_frontend.rst Loading commit data...
README.caddy_frontend.rst Loading commit data...
buildout.hash.cfg Loading commit data...
caddyprofiledummy.py Loading commit data...
common.cfg Loading commit data...
development.cfg Loading commit data...
instance-apache-frontend.cfg.in Loading commit data...
instance-apache-replicate.cfg.in Loading commit data...
instance-caddy-input-schema.json Loading commit data...
instance-common.cfg.in Loading commit data...
instance-kedifa.cfg.in Loading commit data...
instance-output-schema.json Loading commit data...
instance-slave-caddy-input-schema.json Loading commit data...
instance-slave-caddy-simplified-input-schema.json Loading commit data...
instance-slave-output-schema.json Loading commit data...
instance.cfg.in Loading commit data...
setup.py Loading commit data...
software.cfg Loading commit data...
software.cfg.json Loading commit data...