title: NIFI: limit number of concurrent tasks of a NIFI processor in a NIFI-Cluster
body: <p>The question says it all. How can I do one of the following things:</p>
  
  <ul>
  <li>How can I limit the number of concurrent tasks running for one processor cluster-wide?</li>
  <li>Is there any unique and short ID for the Node, I run on? I could use these ID to append to the database-table-name to load (see details below) and have an exclusive table per connection.</li>
  </ul>
  
  <p>I have a NIFI cluster and a self-written, specialized Processor, that loads heavy amounts of data into a database via JDBC (up to 20Mio rows per Second). It uses some of the database-vendor specific tuning tricks to be really fast in my particular case. One of these tricks needs an exclusive, empty table to load into for each connection.</p>
  
  <p>At the moment, my processor opens one connection per Node in the NIFI-Cluster (it takes a connection from the <code>DBCPConnectionPool</code>). With about 90-100 nodes in the cluster, I'd get 90-100 connections - all of them bulk loading data at the same time.</p>
  
  <p>I'm using NIFI 1.3.0.0 </p>
  
  <p>Any help or comment is highly appreciated. Sorry for not showing any code. It's about 700 lines not really helping with the question. But I plan to put it on Git and as part of the open-source project Kylo.</p>