Skip to content

storage: Add metrics for txnwait queue #31106

@bdarnell

Description

@bdarnell

Prior to 2.0, the Distributed/"KV transaction restarts" chart was a good indicator of the amount of contention in a cluster. Now that contended transactions tend to spend time in the txnwait queue instead of being restarted, that's a less reliable indicator. We should add metrics for the number of transactions in the queue, average wait time, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions