GGraziadei opened a new pull request, #8796:
URL: https://github.com/apache/storm/pull/8796

   ## What is the purpose of the change
   
   This PR introduces an adaptive batch-sizing strategy for `JCQueue's` 
producer-side inserter, controlled by a new feature flag 
(`topology.producer.batch.dynamic`). Instead of committing to a fixed 
`producerBatchSz`, the new `DynamicBatchInserter` starts at a batch size of 1 
and adjusts it online using AIMD: it additively grows the effective size (+1) 
after flushing a full batch (heavy load) and multiplicatively shrinks it 
(halving toward 1) after a timer-driven partial flush (light load), with the 
configured batch size acting as a ceiling rather than a fixed target. This lets 
the queue favor low latency under light load while preserving throughput under 
sustained back-pressure, without manual per-topology tuning. 
   
   ## How was the change tested
   
   - Unit tests
   - Benchmark `BatchInserter` (baseline) vs `DynamicBatchInserter`, report in 
the first comment.


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

Reply via email to