Skip to content

Log messages "write channel is full" should be rate-limited #1190

Closed

Description

@amdw

Describe the bug
We are finding that when probing at our scale, messages like Surfacer's write channel is full, dropping new data can be logged many times per second - a high enough rate to significantly clog the logs, slowing down log navigation and analysis without adding real value.

The particular message I am concerned about is logged here:

s.l.Errorf("Surfacer's write channel is full, dropping new data.")

I would like to rate-limit this log message to, say, once every ten seconds. Would you consider a pull request to do that?

Similar messages are also logged by other surfacers; I guess we should make the same change to all of them for consistency.

Cloudprober Version
Problem exists as of the latest commit at the time of writing: 8264a6b

To Reproduce
This would require creating a heavily overloaded prober, with a surfacer whose write channel is constantly overloaded.

Activity

  1. added
    bug
    on Dec 18, 2025
  2. amdw commented on Jan 14, 2026

    @amdw
    ContributorAuthor

    Pull request (#1191) has now been merged to rate-limit these messages in the file surfacer.

    The only question for this issue is whether similar rate limits should be put in place for other surfacers. Personally I currently have no plans to send pull requests to make similar changes in other surfacers. I don't have strong feelings about whether this issue should be left open or not.

  3. added this to the v0.14.2 milestone on Jan 15, 2026
  4. manugarg commented on Jan 15, 2026

    @manugarg
    Contributor

    Thanks @amdw!

    I think other surfacers don't really suffer from the same issues as the file surfacer. I'll close this for now. We can reopen if others feel strongly about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions