X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdcached.pod;h=7631351b4d6fcda136d753b566938f1079160331;hp=8ad37beb8f00798ad29463fba44e30fe31139f04;hb=a12627275ff8487174cbb907a066f62a00b6ae44;hpb=ac630adec930653637199258efd99024d49325c7 diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod index 8ad37be..7631351 100644 --- a/doc/rrdcached.pod +++ b/doc/rrdcached.pod @@ -6,7 +6,7 @@ rrdcached - Data caching daemon for rrdtool =head1 SYNOPSIS -B [B<-l> I
] [B<-w> I] [B<-f> I] +B [B<-l> I
] [B<-w> I] [B<-z> I] [B<-f> I] [B<-j> I] =head1 DESCRIPTION @@ -42,6 +42,13 @@ C, will be used. Data is written to disk every I seconds. If this option is not specified the default interval of 300Eseconds will be used. +=item B<-z> I + +If specified, rrdcached will delay writing of each RRD for a random number +of seconds in the rangeE[0,I). This will avoid too many +writes being queued simultaneously. This value should be no greater than +the value specified in B<-w>. By default, there is no delay. + =item B<-f> I Every I seconds the entire cache is searched for old values which are @@ -54,6 +61,19 @@ cases. This timeout defaults to 3600Eseconds. Sets the name and location of the PID-file. If not specified, the default, C/run/rrdcached.pid> will be used. +=item B<-j> I + +Write updates to a journal in I. In the event of a program or system +crash, this will allow the daemon to write any updates that were pending +at the time of the crash. + +On startup, the daemon will check for journal files in this directory. If +found, all updates therein will be read into memory before the daemon +starts accepting new connections. + +The journal will be rotated with the same frequency as the flush timer +given by B<-f>. On clean shutdown, the journal files are removed. + =item B<-b> I The daemon will change into a specific directory at startup. All files passed @@ -293,12 +313,16 @@ name of the value, a colon, one or more spaces and the actual value. Example: - 5 Statistics follow + 9 Statistics follow QueueLength: 0 + UpdatesReceived: 30 + FlushesReceived: 2 UpdatesWritten: 13 DataSetsWritten: 390 TreeNodesNumber: 13 TreeDepth: 4 + JournalBytes: 190 + JournalRotate: 0 =item B I I [I ...] @@ -306,6 +330,13 @@ Adds more data to a filename. This is B operation the daemon was designed for, so describing the mechanism again is unnecessary. Read L above for a detailed explanation. +=item B I + +This command is written to the journal after a file is successfully +written out to disk. It is used during journal replay to determine which +updates have already been applied. It is I valid in the journal; it +is not accepted from the other command channels. + =back =head2 Performance Values @@ -318,18 +349,18 @@ The following counters are returned by the B command: Number of nodes currently enqueued in the update queue. -=item B I<(unsigned 64bit integer)> +=item B I<(unsigned 64bit integer)> -Depth of the tree used for fast key lookup. +Number of UPDATE commands received. -=item B I<(unsigned 64bit integer)> +=item B I<(unsigned 64bit integer)> -Number of nodes in the cache. +Number of FLUSH commands received. =item B I<(unsigned 64bit integer)> -Total number of updates, i.Ee. calls to C, since the daemon -was started. +Total number of updates, i.Ee. calls to C, since the +daemon was started. =item B I<(unsigned 64bit integer)> @@ -338,6 +369,22 @@ data set is one or more values passed to the B command. For example: C is one data set with two values. The term "data set" is used to prevent confusion whether individual values or groups of values are counted. +=item B I<(unsigned 64bit integer)> + +Number of nodes in the cache. + +=item B I<(unsigned 64bit integer)> + +Depth of the tree used for fast key lookup. + +=item B I<(unsigned 64bit integer)> + +Total number of bytes written to the journal since startup. + +=item B I<(unsigned 64bit integer)> + +Number of times the journal has been rotated since startup. + =back =head1 BUGS @@ -348,7 +395,14 @@ No known bugs at the moment. L, L -=head1 AUHOR +=head1 AUTHOR B and this manual page have been written by Florian Forster EoctoEatEverplant.orgE. + +=head1 CONTRIBUTORS + +kevin brintnall Ekbrint@rufus.netE + +=cut +