You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Paramesh Nc <pa...@gmail.com> on 2016/11/30 18:09:44 UTC

Co Processor taking more time to process the request ?

Dear All,
We are using the Coprocessor to fetch the records from the HBase .There are
3 Region Servers present each having 60 regions currently ,
But when we call the coprocessor it making making a call to all the
regions(I think it is obvious with coprocessor).
But as the each Region Server is getting the 60 RPC calls the time taken to
process the last regions is increasing always .
Result of it the over all time taken by coprocessor is more few seconds .

Example :
Rpc Request. Time Taken in Seconds
[B.defaultRpcServer.handler=46,queue=4,port=16020]  20
[B.defaultRpcServer.handler=24,queue=0,port=16020]  10
[B.defaultRpcServer.handler=40,queue=4,port=16020]   4
[B.defaultRpcServer.handler=33,queue=3,port=16020]   4
[B.defaultRpcServer.handler=38,queue=2,port=16020]   3
[B.defaultRpcServer.handler=38,queue=2,port=16020]   3
[B.defaultRpcServer.handler=49,queue=1,port=16020]   2
[B.defaultRpcServer.handler=7,queue=1,port=16020]    1

Could some please explain .
Why it taking more time for the last RPCs .
What does B.defaultRpcServer.handler=46,queue=4,port=16020 mean in the
Region Server log.
Thanks in Advance,
Param.

Re: Co Processor taking more time to process the request ?

Posted by Ted Yu <te...@yahoo.com.INVALID>.
Please take a look at RpcExecutor#startHandlers() for what the numbers mean in RPC handler string:
      String name = "RpcServer." + threadPrefix + ".handler=" + handlers.size() + ",queue=" +          index + ",port=" + port;
port is the port which the RPC server listens on.
Which release of HBase are you using ?Can you tell us more about what your coprocessor does (code snippet would help illustrate) ?
Cheers 

    On Wednesday, November 30, 2016 10:10 AM, Paramesh Nc <pa...@gmail.com> wrote:
 

 Dear All,
We are using the Coprocessor to fetch the records from the HBase .There are
3 Region Servers present each having 60 regions currently ,
But when we call the coprocessor it making making a call to all the
regions(I think it is obvious with coprocessor).
But as the each Region Server is getting the 60 RPC calls the time taken to
process the last regions is increasing always .
Result of it the over all time taken by coprocessor is more few seconds .

Example :
Rpc Request. Time Taken in Seconds
[B.defaultRpcServer.handler=46,queue=4,port=16020]  20
[B.defaultRpcServer.handler=24,queue=0,port=16020]  10
[B.defaultRpcServer.handler=40,queue=4,port=16020]  4
[B.defaultRpcServer.handler=33,queue=3,port=16020]  4
[B.defaultRpcServer.handler=38,queue=2,port=16020]  3
[B.defaultRpcServer.handler=38,queue=2,port=16020]  3
[B.defaultRpcServer.handler=49,queue=1,port=16020]  2
[B.defaultRpcServer.handler=7,queue=1,port=16020]    1

Could some please explain .
Why it taking more time for the last RPCs .
What does B.defaultRpcServer.handler=46,queue=4,port=16020 mean in the
Region Server log.
Thanks in Advance,
Param.