Skip to content

Time-aligned data sending causes potential server pressure #226

@czarhao

Description

@czarhao

Thank you for your project! We are using the pyroscope Python client to profile function execution times in our large model training. However, I noticed that when reporting pprof data to the pyroscope server, it always sends at exact 10-second intervals, such as 9:57:30, 9:57:40, 9:57:50...
I don't understand why the data sending is forced to align with exact 10-second boundaries. When there are many agents, this could potentially put significant pressure on the pyroscope server due to synchronized requests.
Could I modify the pprof sending logic to be asynchronous and add a random sleep of 0-10 seconds before sending?
Note: I'm from China and my English is not very good. This content was translated using GPT. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions