Skip to content

Error sending a metric: channel full #1680

Closed

Description

@olksdr

This happened few times, our statsd metrics could not be sent.

Sentry Issue: POP-RELAY-2NV

Error sending a metric: channel full
  caused by: channel full, maximum capacity: 100000

Error is coming from

"Error sending a metric: {}, maximum capacity: {}",

Activity

  1. added
    bug
    on Dec 7, 2022
  2. iker-barriocanal commented on Dec 22, 2022

    @iker-barriocanal
    Contributor
  3. added this to the Maintenance milestone on Jan 16, 2023
  4. jan-auer commented on Feb 3, 2023

    @jan-auer
    Member

    We have concluded the only viable short-term option is to reduce the amount of metrics. We are going to analyze which metrics are creating too much traffic and will reduce them. Note that this is NOT a cardinality concern, it's that our individual increments of metrics are too much.

    Other considered options:

    • Increase channel size: This option doesn’t really address the problem, and it only postpones it. The cost is the increased CPU and memory usage, which currently may be around 20% of a relay instance’s cost.
    • Increase number of channels or clients: Same as above.
    • “Optimize” the channel: To “optimize” the channel for higher throughput, it is recommended to move from UDP to Unix Domain Socket (UDS). UDS is another, strem-oriented protocol (supports UDP). However, there aren’t any guarantees of increased performance (we need to run benchmarks for that), comes with its own set of challenges, and requires infrastructure changes. The main challenge is based on how UDS fundamentally works, based on a special file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions