[
https://issues.apache.org/jira/browse/NIFI-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16023993#comment-16023993
]
ASF subversion and git services commented on NIFI-3568:
-------------------------------------------------------
Commit 5aa3baca79eb6111c7b84e7adbdd7e1e50b71b8e in nifi's branch
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=5aa3bac ]
NIFI-3568: This closes #1577. Use a cached thread pool in order to allow
ThreadPoolRequestReplicator to scale up the number of threads to some
configurable max
Signed-off-by: joewitt <[email protected]>
> Default thread pool that is created for cluster request replication is not
> sufficient
> -------------------------------------------------------------------------------------
>
> Key: NIFI-3568
> URL: https://issues.apache.org/jira/browse/NIFI-3568
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
>
> I have a cluster of 3 nodes. When the nodes are under heavy load, I notice
> that API requests sometimes complete in 10's to 100's of milliseconds but
> sometimes take several seconds (8+ seconds, at times).
> After doing some investigation, it appears to be due to the fact that the
> default thread pool size of 10 is not sufficient anymore. In the 0.x
> baseline, it was okay because each time that a user clicks "Refresh" on the
> UI it was a single request. With the 1.x baseline, this results in 4 separate
> requests fired off simultaneously due to the multi-tenancy features added. As
> a result, these 4 requests need to be replicated to 3 nodes each, which is 12
> web requests that have to occur. So even a simple Refresh on the UI cannot be
> fully done in parallel.
> Changing my pool size from 10 to 30 resulted in far more consistent response
> times. Unfortunately, scaling the thread pool up to a large number of threads
> can have its cons, too. So will create a "cached" thread pool and expose
> properties for the "core pool size" and the "max pool size".
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)