NetObserv Flow Queues 90% Full
The NetObserv Flow’s log reports, processor to output writer or UDP Server to Flow Decoder are 90% full.
BACKGROUND
There are three queues of importance in ElastiFlow processing, two within ElastiFlow itself and one in the Linux kernel:
Output record queue
After ElastiFlow processing, waiting to be sent to the configured output
Can be monitored via the
record_queue_utilmetric from the metrics API
Input packet queue
Retrieved by ElastiFlow from the Linux UDP receive buffer, and awaiting processing
Can be monitored via the
udp_server_packet_queue_utilmetric from the metrics API
Linux UDP receive buffer
Packets received by the Linux UDP socket and awaiting the ElastiFlow application to pick them up
Queue depth and UDP receive buffer errors can be checked with the Linux command
ss -uman
As these queues get full, the following happens:
If the output queue fills, processing of records will slow to match the pace of the output
If packets are coming into ElastiFlow faster than they are being processed, the packet queue will fill. No further packets will be retrieved from the Linux UDP receive buffer
If packets are being received on the UDP socket faster than ElastiFlow retrieves them, the UDP receive buffer will fill. Once the buffer has reached its configured maximum size, any further packets will be dropped
SYMPTOM
NetObserv Flow’s log reports one or both of the following messages:
These logs might also be accompanied by throttler logs:
PROBLEM
It is typical for these messages to occur when the collector first starts, as various internal processes may not yet be fully initialized. However, if the messages persist after the first few minutes, one of the following issues may exist:
ONLY
flow processor to output writer- This indicates that the system to which data is being output lacks sufficient performance to ingest records at the rate being sent by the collector. This may be due to:Insufficient CPU, memory, disk space, or excessive disk latency in the output system
Insufficient network bandwidth between the collector and output system might also cause the problem. (also see the NOTE below)
BOTH
UDP Server to Flow Decoderandflow processor to output writer- This is a further progression of the previous condition. The resulting back pressure from the slow downstream system is now likely causing data to be lost.ONLY
UDP Server to Flow Decoder- The internal decoder/processor workers cannot keep up with the rate of records being received. This can be caused by one of the following conditions:More records are being received than are allowed by the license. If so,
throttlermessages will also appear in the log.The collector has insufficient resources, primarily CPU cores, to process the rate of records being received.
The collector has just been started and the caches (for IPs, interfaces, etc.) have yet to be "warmed up" and the related high latency enrichment tasks are limiting throughput.
An external service used in enrichment is slow to respond - for example DNS, SNMP, etc.
`6.x` versions prior to `6.3.4`, had an issue with automatically scaling the output pool size for OpenSearch and Splunk based on the Licensed Units. Increasing the output pool size manually, via `EF_OUTPUT_OPENSEARCH_POOL_SIZE` or `EF_OUTPUT_SPLUNK_HEC_POOL_SIZE` respectively, often solved the issue. Upgrading to `6.3.4` or later also fixes the issue.
SOLUTION
The solution varies depending on the indicated issue, as described in the problem section above.
ONLY
flow processor to output writer- Increase the performance of the system to which records are being sent. If no resource strain is present, tuning of the number of worker threads may be necessaryBOTH
UDP Server to Flow Decoderandflow processor to output writer- Increase the performance of the system to which records are being sent. If no resource strain is present, tuning of the number of worker threads may be necessaryONLY
UDP Server to Flow DecoderIf
throttlermessages will also appear in the log, contact sales@elastiflow.com to learn about subscription options which will allow you to collector more flow records.Increase the CPU cores available to the collector.
If the collector has sufficient CPU resources try increasing the processor pool size by setting EF_PROCESSOR_POOL_SIZE. This allows great concurrency of high latency enrichment tasks.
If DNS enrichment is enabled and disabling DNS enrichment resolves the problem, the issue may be with DNS resolution time. Verify DNS server performance and DNS query performance. If lowering DNS timeout alleviates the symptoms, the issue would point to DNS server performance and not collector performance.
REFERENCE
Last updated
Was this helpful?
