Skip to content

Underflow in connected_clients metrics #5957

@kishorviswanathan

Description

@kishorviswanathan

Describe the bug
We have issues with the dragonfly_connected_clients under flowing and becoming a very huge value.

#5914 has the details and workaround.

To Reproduce
Not sure how to reproduce.

Expected behavior
The connected_clients metric shouldn't underflow

Screenshots
Image

Environment (please complete the following information):

  • OS: Container Optimized OS
  • Kernel: Linux hostname 6.6.87+ #1 SMP Sat Jun 14 10:09:14 UTC 2025 x86_64 AMD EPYC 7B13 AuthenticAMD GNU/Linux
  • Containerized?: Docker Compose
  • Dragonfly Version: 1.31.2

Additional context
This doesn't happen when connection migration is disabled. ie --migrate_connections=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions