Every Sugar Labs server collect AWStats data and generates (not sunjammer which hosts stats.sugarlabs.org) {{Code|/awstats/total}} file to make it possible to collect total statistics on the master server.
{| class="wikitable"
{| class="wikitable"
Line 30:
Line 28:
{{Code|/etc/cron.hourly/awstats}}<br>
{{Code|/etc/cron.hourly/awstats}}<br>
{{Code|/etc/cron.daily/awstats}}<br>
{{Code|/etc/cron.daily/awstats}}<br>
−
{{Code|/etc/logrotate.d/apache2}<br>
+
{{Code|/etc/logrotate.d/apache2}}<br>
{{Code|/srv/awstats/www/*/awstats.conf}}
{{Code|/srv/awstats/www/*/awstats.conf}}
|-
|-
Line 37:
Line 35:
|-
|-
|}
|}
+
+
Every stats node collects AWStats data locally for every site it supports. AWStats pages (per site) on every node are available via HTTP from {{Code|/''SITE''}} urls. Slave nodes provides their totals from {{Code|/awstats/total}} urls. Master node (sunjammer), generates totals index for [http://stats.sugarlabs.org stats.sugarlabs.org].
== Upgrade notes ==
== Upgrade notes ==
Line 42:
Line 42:
* {{Code|git pull}} on {{Code|/srv/awstats/awstats}}.
* {{Code|git pull}} on {{Code|/srv/awstats/awstats}}.
* {{Code|git pull}} on {{Code|/srv/awstats/awstatstotal}}.
* {{Code|git pull}} on {{Code|/srv/awstats/awstatstotal}}.