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

Add new configuration to disable archiving the segment reports for specific plugins #18134

Closed
tsteur opened this issue Oct 11, 2021 · 0 comments · Fixed by #18279
Closed

Add new configuration to disable archiving the segment reports for specific plugins #18134

tsteur opened this issue Oct 11, 2021 · 0 comments · Fixed by #18279
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Oct 11, 2021

We noticed some plugins may cause a lot of CPU load. A solution is to disable a plugin that causes a lot of load. However, sometimes it be great to still have at least report data for "All visits" but not segments. This way say 95% of the load is reduced while the biggest value might be still there.

It be great if we had a new config ini flag to disable archiving the archiving for some plugins when the archiving is for any segment.

When this is disabled for a plugin then:

  • Don't archive any data for this plugin if segment is not empty
  • In the report itself, when a segment is viewed and there is no data, then show a footer message in the report that viewing segments for this report is disabled.
  • Reports for "all visits" (segment is empty) should still be archived regularly

Basically, a config setting like

[General]
disable_archiving_segment_for_plugin="Plugin1,Plugin2,Plugin3"

Where we can provide the name of plugins in a comma separated list. Could also use an array if that makes it easier like

[General]
disable_archiving_segment_for_plugin[]="Plugin1"
disable_archiving_segment_for_plugin[]="Plugin1"
disable_archiving_segment_for_plugin[]="Plugin1"

The config name is just a random thought without too much thinking. Feel free to change the name.

In tracking we can configure some settings on a per site basis see https://matomo.org/faq/how-to/how-do-i-configure-a-config-setting-in-the-config-ini-php-differently-for-a-specific-site/

If we could do this for this setting as well that would be even better. Eg if we could set below setting to only apply this for site 42 that would be even better.

[General_42]
disable_archiving_segment_for_plugin[]="Plugin1"
@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 11, 2021
@tsteur tsteur added this to the 4.6.0 milestone Oct 11, 2021
@peterhashair peterhashair self-assigned this Oct 28, 2021
@sgiehl sgiehl modified the milestones: 4.6.0, 4.7.0 Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants