<@U0A71G31CDV> I see a lot of inbound and outbound...
# questions-and-troubleshooting
g
@Rocky I see a lot of inbound and outbound packets being dropped when I look at my grafana dashboard, should this raise concern?
r
Seeing inbound or outbound packets being dropped on your Grafana dashboard (typically pulled from Node Exporter) is definitely something you should investigate, as it can directly impact the stability and performance of your StarRocks cluster. Should this raise concern? Yes, it is a concern if the drops are frequent or represent a significant percentage of total traffic. In a distributed database like StarRocks, backends (BEs) and frontends (FEs) communicate constantly via RPC (Remote Procedure Calls) to coordinate queries, shuffle data, and sync metadata. 1. Performance Impact * Increased Latency: Dropped packets force the TCP layer to retransmit data. This adds significant "tail latency" (P99) to your queries. * RPC Failures: If packet loss is severe, the internal bRPC (used by StarRocks) might hit timeouts or "socket overcrowded" errors, causing query failures or data loading interruptions. * Resource Waste: Retransmitting data consumes extra CPU and bandwidth, which can lead to a "death spiral" if the network is already saturated. 2. Common Causes in StarRocks Environments * Network Saturation: Your data ingestion (Stream Load/Broker Load) or large analytical queries are exceeding the physical bandwidth of the NIC (e.g., 10Gbps or 25Gbps). * CPU Bottlenecks: If the BE node's CPU is pegged at 100%, the OS kernel may not be able to process network interrupts fast enough, leading to buffer overflows and dropped packets. * Small Kernel Buffers: The default Linux network stack settings might be too low for high-performance databases. * Hardware/Virtualization Issues: Faulty cables, overloaded physical switches, or "noisy neighbor" issues in cloud environments can cause packet drops. Recommended Troubleshooting Steps 1. Check the Drop Percentage: Compare the
node_network_receive_drop_total
or
node_network_transmit_drop_total
against the total packet count. If the drop rate is
0.1%
, it warrants immediate attention. 2. Verify OS-level Stats: Log into the affected BE/FE node and run:
Copy code
bash
    ip -s link
    # Look for 'dropped' and 'overrun' counts in RX and TX
3. Optimize Kernel Parameters: StarRocks often requires tuning the system's connection queues. Ensure your
/etc/sysctl.conf
includes:
Copy code
bash
    net.core.somaxconn = 1024
    net.ipv4.tcp_abort_on_overflow = 1
4. Monitor Bandwidth Usage: Check if the spikes in dropped packets coincide with massive Data Ingestion or Large Shuffle operations in your Grafana "Network Traffic" panel. 5. Check bRPC Metrics: If you see RPC-related errors in your BE logs (
<http://be.INFO|be.INFO>
or
be.WARNING
), you may need to check the BE configuration
brpc_socket_max_unwritten_bytes
(introduced in v3.2+) if you are dealing with very large message bodies. Summary: If the drops are just occasional single-digit packets during extreme peaks, it might be tolerable. However, if you see consistent "sawtooth" patterns or high counts, you should scale your network capacity or tune your OS network stack to prevent query instability. Referencesadministration/management/monitoring/metrics.mddeployment/environment_configurations.mdadministration/management/BE_configuration.md