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

Question: tag-manager (container_xxx.js) in distributed Matomo deployments #181

Closed
robertgstoehl opened this issue Aug 23, 2019 · 1 comment
Labels

Comments

@robertgstoehl
Copy link

In distributed deployments like 2x tracker behind loadbalancer, webui separeted eg: https://matomo.org/faq/new-to-piwik/faq_134/

how does one keep the generated (and changing) container javascript files in sync? As of now I assume shared storage or file based replication would solve this (but would prefer if this would be handled transparently within Matomo itself ;) )

Thoughts on this?

@tsteur
Copy link
Member

tsteur commented Aug 26, 2019

@robertgstoehl best to ask this in forum https://forum.matomo.org

Created this issue a while ago #81 to fix it through a CDN.

An alternative be to have js folder of Matomo a network folder like EFS or NFS. If you're familiar with PHP, you can write a plugin that is listening to the event TagManager.containerFileChanged like this function ($updatedFilePath) { uploadToCdnOrS3OrSyncFileWithOtherServers($updatedFilePath) }.

Another less ideal way be to eg run ./console tagmanager:regenerate-released-containers every X minutes to regenerate the files if they changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants