Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5201

Utilize TThreadedSelectorServer and remove redundant code in ThriftServer and HRegionThriftServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.94.0
    • regionserver
    • None
    • Reviewed
    • Hide
      New config parameters:

      "hbase.thrift.selector.threads" Number of selector threads for reading and writing socket
      "hbase.thrift.worker.threads" Number of threads for processing the thrift calls
      "hbase.thrift.stop.timeout.seconds" Time to wait for server to stop gracefully
      "hbase.thrift.accept.queue.size.per.selector" Maximum number of accepted elements per selector
      "hbase.thrift.accept.policy" The strategy for handling new accepted connections
      Show
      New config parameters: "hbase.thrift.selector.threads" Number of selector threads for reading and writing socket "hbase.thrift.worker.threads" Number of threads for processing the thrift calls "hbase.thrift.stop.timeout.seconds" Time to wait for server to stop gracefully "hbase.thrift.accept.queue.size.per.selector" Maximum number of accepted elements per selector "hbase.thrift.accept.policy" The strategy for handling new accepted connections

    Description

      TThreadedSelectorServer is good for RPC-heavy situation because IO are not limited to one CPU. See
      https://issues.apache.org/jira/browse/Thrift-1167
      I am porting the related classes form thrift trunk (it is not there in thrift-0.7.0).

      There are lots of repeat codes in ThriftServer and HRegionThriftServer.
      These codes are now moved to a Runnable called ThriftServerRunner.

      Attachments

        1. HBASE-5201.txt
          144 kB
          Scott Chen
        2. HBASE-5201-v2.txt
          105 kB
          Scott Chen
        3. HBASE-5201-v3.txt
          105 kB
          Scott Chen
        4. HBASE-5201-v4.txt
          107 kB
          Scott Chen

        Issue Links

          Activity

            People

              schen Scott Chen
              schen Scott Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: