plugin-QueuedTracking icon indicating copy to clipboard operation
plugin-QueuedTracking copied to clipboard

Multi Tenant suggestion

Open volp1s opened this issue 3 years ago • 4 comments
trafficstars

This is a suggestion Multi Tenant. I'm working with a multi tenant setup as described here in the Matomo documentation. The documentation describes how split the mysql database. Having multiple redis-server as backends can be complicated instead. It could be possibile to use multiple databases in redis, but performance can become awful when period flush to disk is active. Adding a suffix to the list key with the Matomo hostname picked from the $trusted_hosts config variable can be a solution, avoiding conflicts across instances.

volp1s avatar Aug 19 '22 09:08 volp1s

@AltamashShaikh Do you know why this PR was never merged? Did we simply not notice that it had been created? Do you see a reason not to merge this or should we wait till after Matomo 5.0.0?

snake14 avatar May 05 '23 04:05 snake14

@snake14 Dunno why this was never merged, I think we missed it and just adding braces with if is my suggestion to this PR

AltamashShaikh avatar May 05 '23 04:05 AltamashShaikh

@snake14 This would require migration too right ? Since we updated the key

AltamashShaikh avatar May 05 '23 04:05 AltamashShaikh

@snake14 This would require migration too right ? Since we updated the key

Good call @AltamashShaikh . Since it would be looking for a different key, we would probably want a migration for existing installations. I'll mark this PR for needing to be moved to 5.x.

snake14 avatar May 05 '23 05:05 snake14