- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I control the number of threads executing dataflows in a Nifi instance ?
- Labels:
-
Apache NiFi
Created ‎11-13-2017 03:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created on ‎11-13-2017 04:19 PM - edited ‎08-17-2019 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Tarek Elgamal,
Click on Global menu and Click on Controller settings button then in General tab from this tab you can control threads running in NiFi instance.
In addition you can refer to below community links
https://community.hortonworks.com/questions/76117/how-to-improve-nifi-concurrency.html
Created on ‎11-13-2017 04:19 PM - edited ‎08-17-2019 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Tarek Elgamal,
Click on Global menu and Click on Controller settings button then in General tab from this tab you can control threads running in NiFi instance.
In addition you can refer to below community links
https://community.hortonworks.com/questions/76117/how-to-improve-nifi-concurrency.html
Created ‎11-13-2017 10:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Shu , thats what I was looking for , do you have an idea what is the corresponding parameter in nifi.properties file?
Created ‎11-14-2017 01:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Tarek Elgamal,
I don't think corresponding parameters are in nifi.properties file and these params are for each node not for the whole cluster.The concurrent tasks assigned to your processors pull threads from the Maximum Timer Driven Thread Count pool.
You can refer to below community links to get more info about these parameters
https://community.hortonworks.com/questions/104718/handlehttprequest-configure-to-process-millions-o...
https://community.hortonworks.com/questions/140889/in-nifi-all-the-processors-in-the-data-flow-are-e...
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#system_properties
Created ‎11-16-2017 05:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Shu that was really helpful.. I am just wondering that when I set the number of threads of the whole instance to 1 and I have two processors connected to each other they still manage to somehow run concurrently .. The first processor takes on average 2.5 seconds per input and the second processors takes on average 4.5 seconds.. I gave it 100 inputs and I was expecting it to finish in around 700 seconds (i.e., sequential execution) but it still manages to finish in 480 seconds which suggests that each processor is using a separate thread and they do not wait on each other. Am I missing something here ?
