You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example Supervisor entry that will start 16 processors/workers with 10 loop cycle times and auto restart:
48
48
@@ -72,7 +72,7 @@ Yes, you can. Just execute the command `./console queuedtracking:monitor`. This
72
72
73
73
__Can I improve the speed of inserting requests from the Redis queue to the database?__
74
74
75
-
Yes, you can by adding more workers. By default only one worker is activated at a time and only one worker processes tracking requests from Redis to the database. When inserting tracking requests into the database, at time of writing this, about 80% of the time is spent in PHP and the database might be rather bored. If you have multiple CPUs available on your server you can add more workers. You can do this by going in the Piwik Admin interface to "Plugin Settings". There will be a setting "Number of queue workers". Increase this number to the number of CPUs you want to dedeciate for processing requests. Best practice is to add more workers step by step. So first increase this number to 2 and check if the tracking request insertions is fast enough for you. If not and you have more CPUs available, increase the number again.
75
+
Yes, you can by adding more workers. By default only one worker is activated at a time and only one worker processes tracking requests from Redis to the database. When inserting tracking requests into the database, at time of writing this, about 80% of the time is spent in PHP and the database might be rather bored. If you have multiple CPUs available on your server you can add more workers. You can do this by going in the Matomo Admin interface to "Plugin Settings". There will be a setting "Number of queue workers". Increase this number to the number of CPUs you want to dedeciate for processing requests. Best practice is to add more workers step by step. So first increase this number to 2 and check if the tracking request insertions is fast enough for you. If not and you have more CPUs available, increase the number again.
76
76
77
77
When using multiple workers it might be worth to lower the number of "Number of requests to process" to eg 15 in "Plugin Settings". By default 25 requests are inserted in one step by using transactions. This means different workers might have to wait for each other. By lowering that number each worker will block the DB for less time.
78
78
@@ -92,7 +92,7 @@ We currently write into the Redis default database by default but you can config
92
92
93
93
You can also use a "Redis Cluster" to distribute all tracking requests data across multiple Redis masters/shards, complete with the HA feature.
94
94
95
-
__Why do some tests fail on my local Piwik instance?__
95
+
__Why do some tests fail on my local Matomo instance?__
96
96
97
97
Make sure the requirements mentioned above are met and Redis needs to run on 127.0.0.1:6379 with no password for the
98
98
integration tests to work. It will use the database "15" and the tests may flush all data it contains. Make sure
Copy file name to clipboardExpand all lines: plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "QueuedTracking",
3
-
"version": "5.1.1",
3
+
"version": "5.1.2",
4
4
"description": "Scale your large traffic Matomo service by queuing tracking requests in Redis or MySQL for better performance and reliability when experiencing peaks.",
0 commit comments