Collector - About Store and Forward

Question

What do the settings mean on the Store and Forward tab of a collector?

 

How does Store and Forward work for a collector?

 

How can I configure these settings to minimize data loss in the event of a restart?

Answer

During normal operation, the collector will buffer the data it has collected for five seconds by default, then send it to the logger. This five-second batch of data is called a "package". If a collector has lost connectivity to the logger, it will continue to buffer the packages in data until connectivity is reestablished. There is a limit to the amount of data the collector can store in memory. 

 

Once this limit is reached, the collector will begin writing the packages to a buffer on the hard drive. The hard drive buffer also has a limit.  If that limit is reached, the collector will either stop collecting or discard the oldest data, depending on the settings.

 

When connectivity has been reestablished, the collector will forward all the data it has stored in its buffers.

 

Writing the data to disk is a costly operation, as is reading it to send it to the logger.  The collector will be able to forward data fastest upon regaining connectivity if all its data is in memory and none of it is on disk.  However, data in the memory buffer would be lost in the event of an unexpected shutdown of the collector, such as during a power failure. 

 

If the collector is allowed to shut down "politely" it should move all its data from the memory buffer to the disk buffer, so no data should be lost regardless of the memory buffer size.

 

NOTE: For most customers, data loss should be minimal even with the default settings.  In order for any data to be lost you would need to have a loss of connectivity for long enough to build up data in the memory buffer, then you would need an unexpected shutdown of the collector machine. 

 

Two settings affect the memory buffer size. If either one of the limits is reached, then collector will start to write to disk.

See Also:

Collector