apache / apache/lucene

Add Directory wrapper to track per-query IO counters [LUCENE-8884]

Open
#9,927 8 comments 0 reactions 1 assignee Claimed by @mikemccand View on GitHub
legacy-jira-priority:Minor module:core/store type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Lucene's IO abstractions (`Directory, IndexInput/Output`) make it really easy to track counters of how many IOPs and net bytes are read for each query, which is a useful metric to track/aggregate/alarm on in production or dev benchmarks.

At my day job we use these wrappers in our nightly benchmarks to catch any accidental performance regressions.

---
Migrated from [LUCENE-8884](https://issues.apache.org/jira/browse/LUCENE-8884) by Michael McCandless (@mikemccand), updated Sep 04 2019
Attachments: [LUCENE-8884.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8884/LUCENE-8884.patch) (versions: 2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.