How to disable statistics calculation for exact domain to decrease load on server

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:06:22 UTC

Modified:

2016-12-21 19:57:57 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable statistics calculation for exact domain to decrease load on server

Symptoms

How to disable statistics calculation for exact domain to decrease load on server while statistics recalculation task runs.

Cause

Statistics recalculation task takes a time to recalculate huge amount of HTTP and FTP statistics for domains.

Resolution

There are three ways to disable statistics recalculation:

  1. Duplicate current service plan with option 'none' as statistics processing utility.

  2. Block synchronization with service plan.

    Firstly, statistics collection should be disabled. To disable it via GUI follow 'Customer Panel' > 'Hosting settings' > 'Web stat' > Specify "none"

    Or you can execute shell command:

    # /usr/local/psa/bin/domain -u domain.tld -webstat none

    Secondly, you need to block synchronization with service plan:

    # /usr/local/psa/bin/domain --lock-subscription <subscription_name.tld>
  3. Modify 'cron' task.

    You can add the script which will disable statistics and will be executed before 'daily task' :

    # /usr/local/psa/bin/domain -u domain.tld -webstat none

    And will enable this back after 'daily task' ran:

    # /usr/local/psa/bin/domain -u domain.tld -webstat awstats

    This workaround does not affect synchronization with service plan and exclude the domains to calculated.

Have more questions? Submit a request
Please sign in to leave a comment.