Skip to content

Commit

Permalink
feat: using multiple queues for matomo tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored and root committed Jan 26, 2024
1 parent 4a1485c commit 6408954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Process matomo tracking requests from Redis
Description=Process matomo tracking requests from Redis, the instance name must be a queue id
Requires=mariadb.service
Requires=redis-server.service

Expand All @@ -13,9 +13,9 @@ Type=oneshot
User=www-data
Group=www-data
# see https://matomo.org/faq/on-premise/how-to-configure-matomo-to-handle-unexpected-peak-in-traffic/
ExecStart=/usr/bin/php /var/www/html/matomo/console queuedtracking:process --no-ansi
StandardOutput=append:/var/log/matomo/matomo-tracking.log
StandardError=append:/var/log/matomo/matomo-tracking-err.log
ExecStart=/usr/bin/php /var/www/html/matomo/console queuedtracking:process --queue-id=%i --no-ansi
StandardOutput=append:/var/log/matomo/matomo-tracking-%i.log
StandardError=append:/var/log/matomo/matomo-tracking-%i-err.log
# place a timeout for bad cases
# note: we have to use TimeoutStartSec as it's a Type=oneshot service
TimeoutStartSec=20m
TimeoutStartSec=2h
File renamed without changes.

0 comments on commit 6408954

Please sign in to comment.