[ 
https://issues.apache.org/jira/browse/NIFI-14797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011920#comment-18011920
 ] 

Michael W Moser commented on NIFI-14797:
----------------------------------------

The ControlRate documentation says {{If you configure a very small Time 
Duration, then the accuracy of the throttle gets worse. You can improve this 
accuracy by decreasing the Yield Duration}}

Based on this guidance, when lowering the ControlRate {{Time Duration}} to 
something as low as {{1 sec}} you should also lower the {{Yield Duration}} 
setting as well, to something like {{200 millis}}.

[~scoutjohn] Let us know if this helps the accuracy of your flow's use case.

> ControlRate Processor sends fewer FlowFiles than expected in NiFi 2.3 
> compared to NiFi 1.28
> -------------------------------------------------------------------------------------------
>
>                 Key: NIFI-14797
>                 URL: https://issues.apache.org/jira/browse/NIFI-14797
>             Project: Apache NiFi
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>            Reporter: John Joseph
>            Priority: Major
>         Attachments: image-2025-07-29-11-00-05-438.png, 
> image-2025-07-29-11-00-53-864.png
>
>
> We recently upgraded from NiFi 1.28 to NiFi 2.3 and noticed that the 
> *{{ControlRate}}* processor does not honor the configured rate accurately in 
> the new version.
> In our use case, the *{{ControlRate}}* is configured with:
>  * Rate: 15 flowfiles/second
>  * Rate Controlled Criteria: {{FlowFile Count}}
>  * Time Duration: {{1 sec}}
> However, the {*}actual average rate is observed to be lower{*}:
>  * 15 configured → only ~12.5 observed
>  * 18 configured → only ~15 observed
> In NiFi 1.28, the exact configured rate was achieved. The flow design remains 
> unchanged, with 3-4 intermediate processors (all with 0 sec run scheduling 
> interval) between {{ControlRate}} and {{{}InvokeHTTP{}}}.
> This appears to be a *behavioral change* in +_2.3_+
> We request the team to:
>  * Investigate potential regressions in how {{ControlRate}} behaves in the 
> newer version.
>  * Provide guidance or improvements to ensure accurate rate control, 
> especially in batch/integration use cases.
> +*2.3*+
> !image-2025-07-29-11-00-53-864.png!
>  
> +*1.28*+
> !image-2025-07-29-11-00-05-438.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to