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

Multiple archiver processes affect the report mails #14217

Closed
chgarling opened this issue Mar 18, 2019 · 1 comment
Closed

Multiple archiver processes affect the report mails #14217

chgarling opened this issue Mar 18, 2019 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@chgarling
Copy link

Hi there,
we are running some archiver processes in parallel with code like that:

for ((n=0;n<4;n++)); do (${PHP_BIN} ${ARCHIVE_BIN} ${ARCHIVE_OPTS} >> ${LOG_FILE} 2>&1 &); done

Now users are telling us, that they got the email report 5 times. This matches the number of parallel archiver jobs. Is there a way to avoid this behaviour?

Installed version of Matomo is 3.8.0 on Debian 8.11 with PHP 5.6.40.

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Mar 18, 2019
@tsteur
Copy link
Member

tsteur commented Mar 18, 2019

I recommend you add a sleep 5 or sleep $n after launching an archiver which should fix the problem where it possible runs into a race condition. You can generally launch multiple archivers at once, but there should a little gap in between.

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