Russole opened a new pull request, #9461:
URL: https://github.com/apache/ozone/pull/9461

   ## What changes were proposed in this pull request?
   This change makes the fixed values used by StreamBlockInputStream for
   preReadSize, responseDataSize, and the streaming read timeout configurable
   via OzoneClientConfig and ozone-default.xml.
   This allows users and operators to tune stream-read performance based on 
workload
   characteristics and cluster latency.
   
   Currently, StreamBlockInputStream uses the following fixed values:
   * preReadSize = 32MB
   * responseDataSize = 1MB
   * a fixed 10-second streaming read timeout (poll(10, TimeUnit.SECONDS))
   
   These defaults work for general cases but may not be optimal for all 
environments, particularly under higher latency conditions or workloads that 
benefit from larger streaming buffers or more fine-grained timeout control.
   
   This PR introduces three new client-side configuration keys to make these 
parameters fully configurable:
   * ozone.client.stream.read.pre-read-size
   * ozone.client.stream.read.response-data-size
   * ozone.client.stream.read.timeout
   
   Changes include:
   * Adding the new configuration keys and default values to ozone-default.xml.
   * Introducing corresponding fields and getters in OzoneClientConfig.
   * Updating StreamBlockInputStream to use values from OzoneClientConfig 
instead of fixed constants.
   * Replacing the previous fixed 10-second timeout in StreamingReader.poll() 
with a configurable timeout.
   * Adding constants to OzoneConfigKeys for consistency and discoverability.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-14036
   ## How was this patch tested?
   GitHub Actions CI for my fork ran successfully with all checks passing.
   
   
   
   
   


-- 
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]

Reply via email to