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
Wrong counting of concurrent archivers #13806
Comments
matomo/core/CliMulti/Process.php Lines 243 to 250 in 0c72250
Lines 388 to 412 in 0c72250
After looking at the code, I don't know why it is counting 3. It would be very nice to have each
The option sets the max used archivers, it could also use 1 of 100. |
did you use |
@tsteur Isn't the command simply |
true 👍 |
The current log output is:
|
A bit OT, for this issue, but is there a way to speed up the archiving by indeed having parallel requests for independent reports? |
Ah and it says:
|
It'll speed up if you have multiple sites, otherwise there isn't much of a benefit. |
Oh. Is there a plan to parallelize e.g. to run different days in parallel and then recursively different weeks and so on? |
no there are no plans. usually, you would run the archiver every day and it would only archive the current day anyway (from there the week etc) |
@kaplun I think we can close the issue? We could possibly edit the FAQ though that sometimes you may need to double the amount of concurrent archivers if each archive process is listed twice. As far as I can tell it doesn't look like there's some bug otherwise. |
Well, I think it's even counted 3 times, due to the wrong But yeah otherwise it's not an high priority issue. |
The logic is quite straight forward to count the number of processes. It simply lists each process It might say 3 times because it includes the current |
It's always due to the fact that I am using a cronjob with this format:
So I guess there is one process for the |
Sweet. I'll update the docs 👍 |
I have scheduled Matomo
core:archive
to run with--concurrent-archivers=5
. I am understanding concurrent archivers are running via multiprocessing.If I check in the log I see:
However in the current running process I have:
Isn't this just one archiver counted three times? (I know from the source code the counting is actually parsing the output of
ps
).Also why aren't 2 more archivers also started?
The text was updated successfully, but these errors were encountered: