ChenSammi opened a new pull request, #12150:
URL: https://github.com/apache/ozone/pull/12150
## What changes were proposed in this pull request?
Add a block cache for short-circuit with default
ozone.client.read.short-circuit.streams.cache.size 256
ozone.client.read.short-circuit.streams.cache.expiry 5m
similar to HDFS default configuration
dfs.client.read.shortcircuit.streams.cache.size 256
dfs.client.read.shortcircuit.streams.cache.expiry.ms 5m
Vector search performance data
Before the patch
```
Random access: 1,009 rows/sec
Vector search: 73.8 QPS
nprobes= 1 QPS= 82.5 avg_latency=12.1ms
nprobes= 4 QPS= 88.8 avg_latency=11.3ms
nprobes= 8 QPS= 95.8 avg_latency=10.4ms
nprobes= 16 QPS= 90.2 avg_latency=11.1ms
nprobes= 32 QPS= 95.4 avg_latency=10.5ms
```
After the patch
```
Random access: 2,417 rows/sec
Vector search: 140.3 QPS
nprobes= 1 QPS= 180.0 avg_latency=5.6ms
nprobes= 4 QPS= 188.0 avg_latency=5.3ms
nprobes= 8 QPS= 212.9 avg_latency=4.7ms
nprobes= 16 QPS= 227.9 avg_latency=4.4ms
nprobes= 32 QPS= 180.3 avg_latency=5.5ms
```
S3 gateway related short-circuit stream cache logs
```
2026-11-24 13:15:11,591 [s3g-readiness-om-0] INFO
org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 24a506b5 is created
with maxSize 256, expiryMs 300000
2026-11-24 13:15:26,934 [qtp1422273905-28] INFO
org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 6df9b40d is created
with maxSize 256, expiryMs 300000
2026-11-24 13:20:11,588 [XceiverClientManager-cleanup-0] INFO
org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 24a506b5 Hits: 0,
Misses: 0, HitRate: 1.0, MissRate: 0.0, AverageLoadPenalty(Ns): 0.0
2026-11-24 13:20:26,935 [XceiverClientManager-cleanup-0] INFO
org.apache.hadoop.hdds.scm.storage.ShortCircuitStreamCache: 6df9b40d Hits:
752538, Misses: 11, HitRate: 0.9999853830116046, MissRate:
1.4616988395440031E-5, AverageLoadPenalty(Ns): 0.0
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-17912
## How was this patch tested?
New unit tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]