<?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 Apache NiFi Sharing of load in a cluster not happening in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-Sharing-of-load-in-a-cluster-not-happening/m-p/391735#M247750</link>
    <description>&lt;P&gt;In Apache NiFi, We are interacting to SOAP api through powershell. As API expect attachment with MTOM.&lt;BR /&gt;Now if we load 10000 request we can see only one server is acting on those requeset while other remainnig 2 server are sitting idle. Is there way to share the load acrooss all three servers?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 08:38:38 GMT</pubDate>
    <dc:creator>varungupta</dc:creator>
    <dc:date>2024-08-14T08:38:38Z</dc:date>
    <item>
      <title>Apache NiFi Sharing of load in a cluster not happening</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-Sharing-of-load-in-a-cluster-not-happening/m-p/391735#M247750</link>
      <description>&lt;P&gt;In Apache NiFi, We are interacting to SOAP api through powershell. As API expect attachment with MTOM.&lt;BR /&gt;Now if we load 10000 request we can see only one server is acting on those requeset while other remainnig 2 server are sitting idle. Is there way to share the load acrooss all three servers?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 08:38:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-Sharing-of-load-in-a-cluster-not-happening/m-p/391735#M247750</guid>
      <dc:creator>varungupta</dc:creator>
      <dc:date>2024-08-14T08:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi Sharing of load in a cluster not happening</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-Sharing-of-load-in-a-cluster-not-happening/m-p/391792#M247774</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112330"&gt;@varungupta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;In Apache NiFi, We are interacting to SOAP api through powershell. As API expect attachment with MTOM.&amp;nbsp;&lt;A href="https://www.spotify-pie.com" target="_blank" rel="noopener"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;Official Site&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;Now if we load 10000 request we can see only one server is acting on those requeset while other remainnig 2 server are sitting idle. Is there way to share the load acrooss all three servers?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It sounds like you’re encountering a load balancing issue in your Apache NiFi cluster. To ensure that all three servers share the load, you can use NiFi’s built-in load balancing features. Here are some steps to help you achieve this:&lt;/P&gt;&lt;P&gt;Enable Load-Balanced Connections: NiFi allows you to configure connections to distribute data across the cluster. You can set the load balancing strategy for each connection. The available strategies are:&lt;BR /&gt;Do Not Load Balance: Default setting, no load balancing.&lt;BR /&gt;Round Robin: Distributes FlowFiles evenly across all nodes.&lt;BR /&gt;Single Node: Sends all FlowFiles to a single node.&lt;BR /&gt;Partition by Attribute: Distributes FlowFiles based on a specific attribute.&lt;BR /&gt;Configure Load Balancing:&lt;BR /&gt;Open your NiFi flow and select the connection you want to load balance.&lt;BR /&gt;In the connection settings, go to the Load Balancing tab.&lt;BR /&gt;Choose the appropriate load balancing strategy, such as Round Robin.&lt;BR /&gt;Check Node Status: Ensure all nodes in your cluster are active and properly connected. You can check the status of your nodes in the NiFi Cluster Manager.&lt;BR /&gt;Monitor Performance: Use NiFi’s monitoring tools to observe the distribution of FlowFiles and ensure that the load is balanced across all nodes.&lt;BR /&gt;Here’s a quick example of how to set up a load-balanced connection:&lt;/P&gt;&lt;P&gt;Select the Connection: Click on the connection between processors in your NiFi flow.&lt;BR /&gt;Load Balancing Tab: In the connection settings, navigate to the Load Balancing tab.&lt;BR /&gt;Choose Strategy: Select Round Robin to distribute FlowFiles evenly across all nodes.&lt;BR /&gt;By following these steps, you should be able to distribute the load more evenly across your NiFi cluster, ensuring that all servers are utilized efficiently&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;BR /&gt;Bets regards,&lt;BR /&gt;florence0239&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 08:44:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-Sharing-of-load-in-a-cluster-not-happening/m-p/391792#M247774</guid>
      <dc:creator>florence0239</dc:creator>
      <dc:date>2024-08-16T08:44:07Z</dc:date>
    </item>
  </channel>
</rss>

