You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Carl Yeksigian (JIRA)" <ji...@apache.org> on 2013/06/04 14:25:21 UTC

[jira] [Closed] (THRIFT-786) Handling network I/O process in pooled threads instead of selectThread_ in THsHaServer.java

     [ https://issues.apache.org/jira/browse/THRIFT-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Yeksigian closed THRIFT-786.
---------------------------------

    Resolution: Fixed
    
> Handling network I/O process in pooled threads instead of selectThread_ in THsHaServer.java
> -------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-786
>                 URL: https://issues.apache.org/jira/browse/THRIFT-786
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>    Affects Versions: 0.2
>         Environment: Linux 2.6.18  Xeon 5130 dual core X 2 
>            Reporter: Lisen Mu
>            Assignee: Bryan Duxbury
>         Attachments: THsHaServer.java, TNonblockingServer.java
>
>
> In my test environment, I've made a few modification to TNonblockingServer and THsHaServer to let the thread pool executor to take over I/O handling. selectThread_ selects, maintains interestOps of all keys, and submit tasks when there is something to read or write.
> This modification boosts my thrift server from 7k req/s to 10k req/s, using php client code. I think this is worth doing.

--
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