Closed
Description
Describe the bug
It looks like logqlv2 has introduced a performance regression when querying rates on a largish amount of streams. This query: rate({namespace_name=""}[5m]) (for a 1 hour period) takes 3-4 times longer with 2.0.0, than with grafana/loki:k34-8ea6c38 (provided by @slim-bean on Slack)
Expected behavior
Same or better performance than 1.6.1
Environment:
- Infrastructure: Kubernetes
- Deployment tool: helm
Screenshots, Promtail config, or terminal output
Stats from 2.0.0:
"stats" : {
"ingester" : {
"compressedBytes" : 0,
"decompressedBytes" : 0,
"decompressedLines" : 0,
"headChunkBytes" : 0,
"headChunkLines" : 0,
"totalBatches" : 0,
"totalChunksMatched" : 0,
"totalDuplicates" : 0,
"totalLinesSent" : 0,
"totalReached" : 0
},
"store" : {
"chunksDownloadTime" : 1.745696272,
"compressedBytes" : 17368345,
"decompressedBytes" : 216576036,
"decompressedLines" : 1019558,
"headChunkBytes" : 0,
"headChunkLines" : 0,
"totalChunksDownloaded" : 2732,
"totalChunksRef" : 2732,
"totalDuplicates" : 229773
},
"summary" : {
"bytesProcessedPerSecond" : 9750244,
"execTime" : 22.212370672,
"linesProcessedPerSecond" : 45900,
"totalBytesProcessed" : 216576036,
"totalLinesProcessed" : 1019558
}
}
}
Stats from k34-8ea6c38:
"ingester" : {
"compressedBytes" : 3796297,
"decompressedBytes" : 34697528,
"decompressedLines" : 160127,
"headChunkBytes" : 26062200,
"headChunkLines" : 110580,
"totalBatches" : 0,
"totalChunksMatched" : 413,
"totalDuplicates" : 0,
"totalLinesSent" : 0,
"totalReached" : 5
},
"store" : {
"chunksDownloadTime" : 0.074917783,
"compressedBytes" : 7128290,
"decompressedBytes" : 55934946,
"decompressedLines" : 249630,
"headChunkBytes" : 0,
"headChunkLines" : 0,
"totalChunksDownloaded" : 1878,
"totalChunksRef" : 1878,
"totalDuplicates" : 166809
},
"summary" : {
"bytesProcessedPerSecond" : 36028231,
"execTime" : 3.238978645,
"linesProcessedPerSecond" : 160648,
"totalBytesProcessed" : 116694674,
"totalLinesProcessed" : 520337
}
}
Metadata
Metadata
Assignees
Labels
No labels