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

Multi Tenant suggestion #186

Closed
wants to merge 2 commits into from

Conversation

volp1s
Copy link

@volp1s volp1s commented Aug 19, 2022

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.

Multi Tenant suggestion
@volp1s volp1s changed the title Update Queue.php Multi Tenant suggestion Aug 19, 2022
@snake14
Copy link
Contributor

snake14 commented May 5, 2023

@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?

@AltamashShaikh
Copy link
Contributor

@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
Copy link
Contributor

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

@snake14
Copy link
Contributor

snake14 commented May 5, 2023

@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.

@volp1s volp1s closed this by deleting the head repository Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants