[jboss-jira] [JBoss JIRA] (JGRP-1037) Ergonomics: size thread pools dynamically
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu May 30 10:49:20 EDT 2013
[ https://issues.jboss.org/browse/JGRP-1037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778253#comment-12778253 ]
Bela Ban commented on JGRP-1037:
--------------------------------
OK, so for the regular pool, we could use the following strategy to set the max thread pool size:
* We know the cluster size
* If we received a message from *every member at the same time*, then we'd need N threads to process those messages
* Any additional messages received from member P would get added to the table for P and then the thread would return immediately, so this is quick
* To be able to take incoming messages and place them into that table *when all threads are busy*, we should add a buffer of 1-2 threads
* So the formula for the max thread pool size of the regular pool could be CLUSTER-SIZE + 2 (to be investigated)
> Ergonomics: size thread pools dynamically
> -----------------------------------------
>
> Key: JGRP-1037
> URL: https://issues.jboss.org/browse/JGRP-1037
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.4
>
>
> Ergonomics are a step towards less configuration and more dynamic setting of values. Example: a thread pool's min and max sizes can be dynamically changed, based on observations. When we have a min size of 10, but the thread pool is always 75, then we should set the min size to 75 and possibly change the idle time too.
> This is just a first step towards ergonomics and needs to be expanded on in 3.x releases
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list