Skip to content

profiling with small overhead #5640

@sergey-safarov

Description

@sergey-safarov

Summary

Time to time, we catch CPU high load like

Image During this time, CouchDB returns an error response. To resolve this, we are restarting all CouchDB nodes in the cluster. To troubleshoot this issue, it will be fine to get CouchDB profiling with the busiest functions at this time. Like it was done for RabbitMQ. https://www.rabbitmq.com/blog/2022/05/31/flame-graphs

Could you implement a similar feature for CouchDB?

Desired Behaviour

Attach the performance profiling tool to the running CouchDB process and record function performance metrics.
Then use these metrics to draw a graph with most busiest functions.

Possible Solution

Probably it can be done like in RabbitMQ
https://www.rabbitmq.com/blog/2022/05/31/flame-graphs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions