Skip to content
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

Piwik API and dashboard stuck for 3 hours every day #8241

Closed
odedgolan opened this issue Jun 29, 2015 · 2 comments
Closed

Piwik API and dashboard stuck for 3 hours every day #8241

odedgolan opened this issue Jun 29, 2015 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@odedgolan
Copy link

I'm using Piwik to monitor my website traffic and sending events to track users' behavior. In parallel I constantly withdraw this event data from Piwik using Piwik API.

Every day at ~12:00AM Piwik dashboard and api becomes unresponsive for 3 hours. There is an endless DB sql queries running on the DB during this time and DB CPU usage surges.

How can I prevent this downtime? I've already implemented all suggested implementations for heavy load sites on Piwik Documentations.

SQL slow query log show during this time (and other shorter calls):
Query_time: 10415.327710 Lock_time: 20.380198 Rows_sent: 0 Rows_examined: 46913903
SET timestamp=1435544359;
UPDATE piwik_archive_blob_2015_06 SET value = 4 WHERE ( (date1 <= '2015-06-29' AND '2015-06-29' <= date2 AND name LIKE 'done%') ) AND idsite IN ('5');

@quba
Copy link
Contributor

quba commented Jun 29, 2015

Update your Piwik instance to the latest version. This query is actually executed because of a bug in Piwik core.

Please see: #7195

@quba quba added the answered For when a question was asked and we referred to forum or answered it. label Jun 29, 2015
@odedgolan
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants