Unified Storage Performance Optimizations#1
Conversation
…#97529) * dont lazy init unified storage * Inits index when creating new resource server. Fixes trace propagation by passing span ctx. Update some logging. * Use finer grained cache locking when building indexes to speed things up. Locking the whole function was slowing things down. * formatting * linter fix * go mod * make update-workspace * fix workspaces check error * update dependency owner in mod file * wait 1 second before querying metrics * try with big timeout, see if fixes CI. Wont fail locally. * skips postgres integration test. Only fails in drone. Will fix later. * put delay back to 500 ms
Codoki PR ReviewSummary: Restore safe index build locking, prevent concurrent corruption Issues (Critical & High only)
Showing top 1 issues. Critical: 0, High: 1. See inline suggestions for more. Key Feedback (click to expand)
Confidence: 3/5 — Needs work before merge (1 high · status: Requires changes) Sequence DiagramsequenceDiagram
participant Caller
participant ResourceServer
participant Search
participant Watcher
Caller->>ResourceServer: NewResourceServer(opts)
ResourceServer->>ResourceServer: Init(ctx)
alt search configured
ResourceServer->>Search: init(ctx)
end
ResourceServer->>Watcher: initWatcher()
ResourceServer-->>Caller: server instance
React with 👍 or 👎 if you found this review useful. |
| @@ -85,9 +85,6 @@ func (b *bleveBackend) BuildIndex(ctx context.Context, | |||
| // The builder will write all documents before returning | |||
There was a problem hiding this comment.
This PR implements performance optimizations for Grafana’s unified storage system, focusing on reducing cold-start latency, improving indexing throughput, and tightening error handling.
Key changes: