Created on 09-12-2018 12:30 PM - edited 08-17-2019 06:27 AM
Some processors support configuring a run duration. This setting tells a processor to continue to use the same task to work on as many FlowFiles (or batches of flowfiles) from an incoming queue in a single task. This is ideal for processors where the individual tasks themselves are completed very fast and the volume of FlowFile are large as well.
In the above example, the exact same feed of FlowFiles were passed to both these processors which are configured to perform the same Attribute updated.
Both processed the same number of FlowFiles in the past 5 minutes; however, the processor configured with a run duration consumed less overall CPU time to do so.
Not all processors support setting a run duration. The nature of the processor function, the methods being used, and/or client lib used may not support this capability. You will not be able to set a run duration on such processors.
How this works:
What this means for heap usage: