[
https://issues.apache.org/jira/browse/HDDS-17942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17942:
----------------------------------
Labels: pull-request-available (was: )
> S3 range GET with streaming ReadBlock pre-reads up to 32 MB past the range
> --------------------------------------------------------------------------
>
> Key: HDDS-17942
> URL: https://issues.apache.org/jira/browse/HDDS-17942
> Project: Apache Ozone
> Issue Type: Improvement
> Components: S3
> Reporter: Chu Cheng Li
> Assignee: Chu Cheng Li
> Priority: Major
> Labels: pull-request-available
>
> S3 Gateway serves a range GET by seeking and copying from the key input
> stream. With {{ozone.client.stream.readblock.enable=true}}, each sequential
> read on {{StreamBlockInputStream}} asks the datanode for the requested bytes
> plus {{ozone.client.stream.read.pre-read-size}} (default 32 MB). S3 Gateway
> closes the stream as soon as the range is copied, wasting the pre-read data.
> h3. Problem
> * A 4 KB range GET makes the datanode read up to 32 MB past the range (or to
> the end of the block).
> * Small range GETs are slower than without streaming, hurting S3 workloads
> such as Flink ForSt, HBase, and Parquet.
> * Setting pre-read size to 0 avoids the extra read, but it applies to the
> whole client and slows down full GETs.
> h3. Proposed change
> * Read ranges that fit in S3 Gateway's buffer
> ({{ozone.s3g.client.buffer.size}}, default 4 MB) with a single positioned
> read, which requests only the range.
> * Keep sequential reads for larger ranges; sequential pre-read will be
> addressed separately.
> Found while testing Flink ForSt in HDDS-17894.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]