Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 121
    • Merge requests 121
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !801

Merged
Created Aug 21, 2020 by Jérome Perrin@jeromeOwner

Fix erp5 slow queries logs

  • Overview 13
  • Commits 6
  • Pipelines 8
  • Changes 16

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 slapos.toolbox!83 (merged)

This uses new techniques in software release testing from slapos.core!245 (merged), 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.

Edited Aug 25, 2020 by Jérome Perrin
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix/erp5-slow-queries-logs
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7