Skip to content

Querying Performance Degradation on Realtime Tasks #19505

@GWphua

Description

@GWphua

Affected Version

Since v32

Description

We are deploying our clusters using the MM-less Kubernetes extension. Recently, as we are upgrading our clusters from v27 to v37, we experienced a query degradation in segmentMetadata queries. We have yet to establish whether other query types are affected too.

Peon Querying Performance

The following benchmark is done locally on SinkQuerySegmentWalkerBenchmark, measuing ms/op for differing number of hydrants per sink.

10 50 100 200
v27 0.089 0.162 0.265 0.493
before-pr-15757 0.089 0.165 0.274 0.479
after-pr-15757-before-pr-17170 0.519 2.351 4.847 9.112
after-pr-17170 0.231 0.784 1.443 2.791
v37 0.228 0.825 1.499 2.930

Additionally, there still appears to be a performance regression between #17170, which was included in v32, and v37. I have not yet identified the underlying cause, but this does suggest that we may benefit from introducing more systematic benchmarking for future PRs that could affect query or ingestion performance. This would help catch regressions earlier and provide a clearer basis for evaluating performance-sensitive changes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions