Troubleshooting

This page addresses common issues and their solutions when working with the Store and Forward (SaF) sub-system. These include exceptional states of Node objects as well as performance problems and data loss scenarios.

Exceptional States

The SaF system can reach different exceptional states, depending on its current configuration and the characteristics of the machine it is running on. As a result the Node object is in a warning or error state, and warning or error messages can be seen in the Log Display tab.

Typical causes to check in case of an initial failure are:

  • Insufficient file system permissions

  • Insufficient free hard disk space

Performance Problems and Data Loss

In case of performance issues or data loss on the Store and Forward (SaF) sub-system, the Performance Counters of the SaF sub-system may provide valuable insights. Typical scenarios indicated by the Performance Counters are described below.

Scenario Configuration

The following scenarios show the different behavior of the performance counters. Unless otherwise stated, the system setup involves a functional communication between an Ingress Node (i.e. the Node that is receiving data from an external system) and a Historian Node (i.e. the Node that is storing the data in MongoDB) with data being transported through the SaF sub-system (archived real-time data, log messages, or events). Further, there is no malfunction in the system other than the one described in the individual scenario.

Scenario 1: The MongoDB repository is unavailable

If the MongoDB repository becomes unavailable, the Performance Counters will show:

Historian Node

  1. Buffer: Continuous growth (if Inserts is non-zero)

  2. Inserts: Stable (on average), non-zero

  3. Received: Stable (on average), non-zero

Ingress Node

  1. Buffer: Continuous growth (if Inserts is non-zero)

  2. Inserts: Stable (on average)

  3. Sent: Stable (on average), non-zero

When the MongoDB repository becomes available again, the Buffer counter on the Historian Node will decrease steadily, forwarding its data to the Mongo database.

Scenario 2: No Ingress Node Connection

Assume that there is only one configured Ingress Node in the system. If the connection to the Ingress Node component is lost, the Performance Counters will show:

Historian Node

  1. Buffer: Stable (on average)

  2. Inserts: Stable (on average). Shows insert from Historian Node items only

  3. Received: Zero

Ingress Node

  1. Buffer [not observable]: Continuous growth (if Inserts is non-zero)

  2. Inserts [not observable]: Stable (on average)

  3. Sent [not observable]: Zero

When the Ingress Node connection is re-established, the Ingress Node buffer is drained and the Historian Node buffer forwards data to MongoDB. This results in spikes of the Inserts, Received, and Sent counters. The Ingress Node* Buffer decreases and the Historian Node *Buffer may increase depending on the throughput difference between the Ingress Node - Historian Node and the Historian Node - MongoDB communication.

Scenario 3: Insufficient Network Bandwidth

Assume that the Historian Node - MongoDB connection can handle any work load, but the Historian Node - Ingress Node connection does not provide enough bandwidth to transport all data from the Ingress Node to the Historian Node. The Performance Counters will show:

Historian Node

  1. Buffer: Stable (on average)

  2. Inserts: Stable (on average), non-zero

  3. Received: Stable (on average), non-zero

Ingress Node

  1. Buffer: Continuous growth

  2. Inserts: Stable (on average), non-zero

  3. Sent: Stable (on average), non-zero

If more bandwidth becomes available, such that all Ingress Node data can be transported, the Ingress Node Buffer will decrease until it is stable again. Otherwise the persistent buffer grows until it reaches its configured limit, resulting in data being dropped and warning messages.

Depending on the configuration, the warning messages generated by the Ingress Node might get dropped if the SaF persistent buffer reached its limits.

Scenario 4: Persistent Size Limit Reached

If the SaF subsystem of the Ingress or of the Historian Node reached a limit for its persistent buffer, the Performance Counters will show:

Historian Node

  • Buffer:

    1. Retain new items mode: Continuous growth for 30 seconds, followed by a drop.

    2. Retain old items mode: Stable (on average), no new items stored.

  • Inserts:

    1. Retain new items mode: Stable (on average), non-zero.

    2. Retain old items mode: Stable (on average), no new items stored.

  • Inserts

    1. Retain new items mode: Stable (on average), non-zero.

Until some counter action is taken, the SaF sub-system will keep dropping data and log warning messages.

Scenario 5: Change from persistent to volatile buffering

When changing from a persistent (hard disk) buffer to a volatile (main memory) buffer, the persistent buffer is either properly drained or completely cleared by deleting the data.

If the SaF sub-system in its persistent buffer configuration is overloaded (steady increase of the Buffer Performance Counter) when switching to a volatile buffer, it is cleared. The Buffer performance counter will show a rapid decline until it is zero and a warning messaged containing the number of deleted items is logged.

Otherwise, the persistent buffer is drained in parallel with the volatile buffer and the Buffer Performance Counter will show a steady decrease until it is zero.