<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to pass dynamic &amp;quot;Max Bin Age&amp;quot; &amp;amp; &amp;quot;Max Number Of Entries&amp;quot; in MergeContent Processor Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322117#M228685</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks for the detailed explanation. My concern was to set the values on the fly since our flows also build like that. I could able to manage it by setting the values through Nifi Rest API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 05:03:45 GMT</pubDate>
    <dc:creator>HariAllstate</dc:creator>
    <dc:date>2021-08-06T05:03:45Z</dc:date>
    <item>
      <title>How to pass dynamic "Max Bin Age" &amp; "Max Number Of Entries" in MergeContent Processor Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322067#M228666</link>
      <description>&lt;P&gt;I would like to pass dynamic values to&amp;nbsp;Max Bin Age" &amp;amp; "Max Number Of Entries" in MergeContent Processor. But it's not supporting expression language.&lt;BR /&gt;&lt;BR /&gt;Please suggest if there is any way to achieve this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 07:26:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322067#M228666</guid>
      <dc:creator>HariAllstate</dc:creator>
      <dc:date>2021-08-05T07:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic "Max Bin Age" &amp; "Max Number Of Entries" in MergeContent Processor Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322099#M228673</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90931"&gt;@HariAllstate&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is the use case for wanting these to be dynamic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MergeContent processor allocates FlowFiles located in the inbound connection(s) to bins based on the configuration of these properties:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Merge Strategy&lt;BR /&gt;&lt;/STRONG&gt;- &lt;SPAN&gt;&lt;STRONG&gt;Bin-Packing Algorithm&lt;/STRONG&gt; - Keeps allocating FlowFiles to bin until both configured mins (&lt;STRONG&gt;Minimum Number of Entries &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Minimum Group Size&lt;/STRONG&gt;) are met. Bins can also be restricted to FlowFiles all having same value set in that attribute specified in the&amp;nbsp;&lt;STRONG&gt;Correlation Attribute Name&lt;/STRONG&gt; property&lt;BR /&gt;&lt;/SPAN&gt;-&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Defragment&lt;/STRONG&gt; - FlowFile are allocated to bins based on &lt;STRONG&gt;fragment&lt;/STRONG&gt; Attributes set on the inbound queued FlowFiles.&lt;BR /&gt;&lt;BR /&gt;The purpose of the &lt;STRONG&gt;Max Bin Age&lt;/STRONG&gt; is to prevent bins from getting stuck forever because they do not meet the criteria necessary to be merged.&amp;nbsp; Assume the scenario where the max num entries has been reached preventing any new FlowFiles from being allocated to a bin and those binned FlowFiles did not total enough size to meet the min group size.&amp;nbsp; Since both mons must be satisfied for a bin to be merged, that bin could potentially sit forever.&amp;nbsp; Max bin age when reached would&amp;nbsp;force that bin to merge.&amp;nbsp; In the case of Defragment the FlowFiles would rout to failure if max bin age is reached&amp;nbsp;before all fragments are allocated to a bin.&amp;nbsp; So&amp;nbsp;&lt;STRONG&gt;Max Bin Age&lt;/STRONG&gt; should be set to max latency you want to allow on a bin. Not clear on why you would want that to be dynamic and if it was, where would you pull that value from since many FlowFiles are allocated to a bin and they could end up having a variety of values.&lt;BR /&gt;&lt;BR /&gt;Since only the "mins" must be satisfied to merge a bin, not clear why you would want a dynamic capability here as well.&amp;nbsp; Plus same applies here in that many FlowFiles are allocated to bins and may have different values.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also note that the processor does not use Max when considering if a bin is ready to be merged.&amp;nbsp; When the MergeContent processor executes, it looks at only the FlowFiles queued on an inbound connection at that exact moment in time and allocates&amp;nbsp;them to 1 or more bins. At the end of that allocation, each bin is evaluated to see if the mins were satisfied&amp;nbsp;or all the fragments are in the bin and if so, it is merged.&lt;BR /&gt;&lt;BR /&gt;If you found this addressed your query, please take a moment to login and click "&lt;A href="https://community.cloudera.com/t5/forums/v4/forumtopicpage.markmessageasacceptedsolutionsecondarybutton/message-uid/322099?t:ac=board-id/Questions/message-id/228666/thread-id/228666/highlight/false&amp;amp;t:cp=solutions/contributions/acceptedsolutionsactions" target="_self"&gt;Accept as Solution&lt;/A&gt;"&lt;BR /&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 18:04:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322099#M228673</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-08-05T18:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic "Max Bin Age" &amp; "Max Number Of Entries" in MergeContent Processor Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322117#M228685</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks for the detailed explanation. My concern was to set the values on the fly since our flows also build like that. I could able to manage it by setting the values through Nifi Rest API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 05:03:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322117#M228685</guid>
      <dc:creator>HariAllstate</dc:creator>
      <dc:date>2021-08-06T05:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic "Max Bin Age" &amp; "Max Number Of Entries" in MergeContent Processor Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322119#M228687</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90931"&gt;@HariAllstate&lt;/a&gt;, I'm glad to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:02:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-pass-dynamic-quot-Max-Bin-Age-quot-amp-quot-Max/m-p/322119#M228687</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-08-06T07:02:21Z</dc:date>
    </item>
  </channel>
</rss>

