Admin-Ahead Community

Linux => Control Panels => Plesk => Topic started by: jominj on January 12, 2014, 04:07:20 am

Title: How to disable statistics calculation for exact domain to decrease load on serve
Post by: jominj on January 12, 2014, 04:07:20 am
How to disable statistics calculation for exact domain to decrease load on server while statistics recalculation task runs.

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:
Code: [Select]
# /usr/local/psa/bin/domain -u domain.tld -webstat none
Secondly, you need to block synchronization with service plan:
Code: [Select]
# /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':
Code: [Select]
# /usr/local/psa/bin/domain -u domain.tld -webstat noneAnd will enable this back after 'daily task' ran:
Code: [Select]
# /usr/local/psa/bin/domain -u domain.tld -webstat awstats