New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mysql process list is clogged with very inefficient updates on the archive blob tables #7195
Comments
Hi guys, I'm just wondering if it even makes sense to run update queries on blob tables ? |
+1 |
|
@mattab thanks for the follow up. It always are the |
It's not fixed in 2.11. Probably we will have 2.11.1 to address this issue. |
Hi @moee Piwik 2.11.1-b1 has been released with the bug fix- can you please test and tell us if you still have any issue? |
Hi, We were experiencing this issue too -- making Piwik practically unusable for us. Can confirm that 2.11.1 fixes it... Much, much better! Thanks! |
Hey @mattab - Sorry for the late response. I updated to 2.11.1 and I also can confirm that this resolves the issue. Thanks for the fix! |
I maintain a piwik installation that consists of approximately 1,300 sites and a database size of 70+ GB.
Since the update to 2.10.0 I see very inefficient update queries clogging the process list. Consequently, performance is severely degraded and opening statistics for a specific website most of the time fail with the error message "
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
".Offending queries look as follows, where
date1
anddate2
always are today's date andidsite
is either id.The shown query, for instance, has been running for 250 seconds and counting. I assume that the query comes from method "updateArchiveAsInvalidated" in core/DataAccess/Model.php.
In the
config.ini.php
,enable_browser_archiving_triggering
is set tofalse
andtime_before_archive_considered_outdated
is set to86400
. The archiver job itself is triggered every hour. However, since the database being blocked with the mentioned updates, it fails to finish within one hour.Please see also this post in the piwik support forum: Call to updateArchiveAsInvalidated performs very inefficient update statements / Massive performance problems since update to 2.10.0.
The text was updated successfully, but these errors were encountered: