You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/08/18 04:25:27 UTC
[jira] [Commented] (THRIFT-1167) Java nonblocking server with more
than one thread for select and handling IO
[ https://issues.apache.org/jira/browse/THRIFT-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086746#comment-13086746 ]
Hudson commented on THRIFT-1167:
--------------------------------
Integrated in Thrift #223 (See [https://builds.apache.org/job/Thrift/223/])
THRIFT-1167. java: Java nonblocking server with more than one thread for select and handling IO
This patch refactors the nonblocking server hierarchy and adds in a new server that has a threaded selector pool as well as a threaded invoker pool.
Patch: Steve Jiang
bryanduxbury : http://svn.apache.org/viewvc/?view=rev&rev=1158977
Files :
* /thrift/trunk/lib/java/src/org/apache/thrift/server/Invocation.java
* /thrift/trunk/lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
* /thrift/trunk/lib/java/test/org/apache/thrift/server/TestThreadedSelectorServer.java
* /thrift/trunk/lib/java/src/org/apache/thrift/server/THsHaServer.java
* /thrift/trunk/lib/java/src/org/apache/thrift/server/AbstractNonblockingServer.java
* /thrift/trunk/lib/java/src/org/apache/thrift/server/TNonblockingServer.java
> Java nonblocking server with more than one thread for select and handling IO
> ----------------------------------------------------------------------------
>
> Key: THRIFT-1167
> URL: https://issues.apache.org/jira/browse/THRIFT-1167
> Project: Thrift
> Issue Type: New Feature
> Components: Java - Library
> Reporter: Steve Jiang
> Assignee: Steve Jiang
> Fix For: 0.8
>
> Attachments: TSHSHAServer-Patch-MultiThreaded_v3.patch, threadedselectorthrift3.diff
>
>
> I've used the HsHa server model to write a server that uses a thread for accept and a separate, configurable number of Selector threads to handle IO. I'd like to contribute this back to Thrift.
> For apps that are RPC-heavy and require little computation from the executor pool running on multi-core architectures, this server allows gets throughput as IO is not limited by one CPU.
> Please take a look at the attached patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira