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

No read-only / read-write segmentation approach support #14699

Open
ohadm2 opened this issue Jul 23, 2019 · 3 comments
Open

No read-only / read-write segmentation approach support #14699

ohadm2 opened this issue Jul 23, 2019 · 3 comments
Labels
c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base.

Comments

@ohadm2
Copy link

ohadm2 commented Jul 23, 2019

Hi.

The system lacks read-only / read-write segmentation approach support (the ability to use 2 different Matomo servers with different privileges on each - one will update settings using the UI and the other will only collect data and the UI will be blocked) which makes the Tag Manager feature cause problems.

We use this approach and we had to make changes to the code itself for it to work as we need.

More info is available in the attached text file.
matomo-issue.txt

@tsteur
Copy link
Member

tsteur commented Jul 23, 2019

@ohadm2 not really 100% sure what you mean by that. Maybe you can explain in more detail. In general it doesn't sound like something we support though or plan to support.

Re the other points in the txt file:

  1. A new option in the settings file that disables auto generation of JS Assets.
    This sounds like a Matomo issue. In general what you can do though is to execute these commands eg every hour and then the JS files will be generated on the server that you want:
MATOMODIR/console custom-piwik-js:update
MATOMODIR/console tagmanager:regenerate-released-containers

This will update all trackers and JS containers

  1. A new option in the settings file that sets a custom location for JS Assets.
    This you could already do by specifying a config/config.php with eg such a content:
    'TagManagerContainerStorageDir' => function () {
        return '/tmp/alternative/path/';
    },
  1. When the above options are on, no JS files will be generated and instead they will be pulled from the 'read/write' server using some sort of a infrastructure-based copy process. That way the 'read-only' server will be updated via the 'read-write' server and not via itself.

I don't understand what you mean here unfortunately.

@ohadm2
Copy link
Author

ohadm2 commented Jul 25, 2019

Thanks for these interesting suggestions. That may help us in the future.

  1. The idea here is to make the 'read/write' (a.k.a the back-end server) server the ONLY server that writes data. In such a case, every change in the UI will update only files inside this server. If another server is used as a front end for the system and only through that server system's resources (such as JS files etc.) are available anonymously thought the internet, it must be updated via some sort of sync process with the back-end server, otherwise it will hold different and out-dated files.

@tsteur
Copy link
Member

tsteur commented Jul 25, 2019

Thanks for the explanation, will move this to Matomo repo

@tsteur tsteur transferred this issue from matomo-org/tag-manager Jul 25, 2019
@mattab mattab added the c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base. label Jan 21, 2020
@mattab mattab added this to the Priority Backlog (Help wanted) milestone Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base.
Projects
None yet
Development

No branches or pull requests

3 participants