Difference between revisions of "Platform Team/Server Kit/Guide/Usage Statistics"

From Sugar Labs
Jump to navigation Jump to search
(Created page with "==RRD (Round Robin Database) file data types== There is a standard set of rrd databases containing stats for journal, system, shell. For each activity there is an independent rr...")
 
Line 3: Line 3:
 
There is a standard set of rrd databases containing stats for journal, system, shell. For each activity there is an independent rrd database which tracks a standard set of parameters, the details for which are listed below.
 
There is a standard set of rrd databases containing stats for journal, system, shell. For each activity there is an independent rrd database which tracks a standard set of parameters, the details for which are listed below.
  
===journal.rrd===
+
* database files conform [[Platform_Team/Usage_Statistics#Statistics|Statistics identifiers list]];
* active
+
* database file name for non-activities is in format {{Code|<TOP-LEVEL-STAT-ID>.rrd}};
* creates
+
* database file name for activities is in format {{Code|activity.<BUNDLE-ID>.rrd}};
* deletes
+
* the set of database fields conform second level stat identifiers for particular stat.
* updates
 
* uptime
 
 
 
===system.rrd===
 
* diskfree
 
* uptime
 
 
 
===shell.rrd===
 
* active
 
* friends
 
* uptime
 
 
 
===activity.<bundle_id>.rrd===
 
* active
 
* buddies
 
* instances
 
* new
 
* resumed
 
* uptime
 
  
 
==Factors affecting network bandwidth==
 
==Factors affecting network bandwidth==

Revision as of 10:01, 10 February 2012

RRD (Round Robin Database) file data types

There is a standard set of rrd databases containing stats for journal, system, shell. For each activity there is an independent rrd database which tracks a standard set of parameters, the details for which are listed below.

  • database files conform Statistics identifiers list;
  • database file name for non-activities is in format <TOP-LEVEL-STAT-ID>.rrd;
  • database file name for activities is in format activity.<BUNDLE-ID>.rrd;
  • the set of database fields conform second level stat identifiers for particular stat.

Factors affecting network bandwidth

The two primary factors affecting the network bandwidth are:

  • the size of the RRDs being synced
  • and the sync frequency.

RRD size

  • This is primarily controlled through RRA (parameters). I will upload more notes on this as I get to know RRD's better. (Anish)

Sync frequency

  • This is controlled by the update-timeout parameter in the sugar-client configuration.

Caution: The default RRD parameters and the sync frequency don't quite match up. The RRDs track usage statistics for around 8-10 days and the sync frequency is one hour! This needs to be tweaked appropriately while deploying in a production environment to save on bandwidth.