Skip to content

Reduce log spam of vMCP pod by logging cache sync messages at debug #7109

Closed

Description

@nogweii

At info log level, there are 40 messages / minute just repeating that the cache is being waited on, and then it's successful. I don't think these repetitious messages warrant being at that log level and should be reduced in priority in order to make the logs easier to parse.

Example of what I'm seeing
{"time":"2026-11-10T21:21:49Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:21:54Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:21:54Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:21:59Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:21:59Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:04Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:04Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:09Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:09Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:14Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:14Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:19Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:19Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:24Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:24Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:29Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:29Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:34Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:34Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:39Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:39Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:44Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:44Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:49Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:49Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:54Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:54Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:22:59Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:22:59Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:23:04Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:23:04Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:23:09Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:23:09Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:23:14Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}
{"time":"2026-11-10T21:23:14Z","level":"INFO","msg":"kubernetes cache synced successfully"}
{"time":"2026-11-10T21:23:19Z","level":"INFO","msg":"waiting for Kubernetes cache sync"}

Activity

  1. added
    kubernetes
    on Nov 11, 2026
  2. added
    needs-triage
    on Nov 11, 2026
  3. FOWEPJF255 commented on Nov 12, 2026

    @FOWEPJF255
    Contributor

    I would like to work on this. I plan to reproduce the current info-level spam, lower the repeated cache-sync wait/success messages to debug, and add or update focused tests if the logging behavior is covered. I will wait for assignment before starting, per the contribution guide.

  4. removed
    needs-triage
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kubernetes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions