@VisibleForTesting public RpcScheduler getRpcScheduler() { return rpcServer.getScheduler(); } }
public static void dumpCallQueues(HRegionServer hrs, PrintWriter out) { CallQueueInfo callQueueInfo = hrs.rpcServices.rpcServer.getScheduler().getCallQueueInfo(); for(String queueName: callQueueInfo.getCallQueueNames()) { out.println("\nQueue Name: " + queueName); long totalCallCount = 0L, totalCallSize = 0L; for (String methodName: callQueueInfo.getCalledMethodNames(queueName)) { long thisMethodCount, thisMethodSize; thisMethodCount = callQueueInfo.getCallMethodCount(queueName, methodName); thisMethodSize = callQueueInfo.getCallMethodSize(queueName, methodName); out.println("Method in call: "+methodName); out.println("Total call count for method: "+thisMethodCount); out.println("Total call size for method (bytes): "+thisMethodSize); totalCallCount += thisMethodCount; totalCallSize += thisMethodSize; } out.println("Total call count for queue: "+totalCallCount); out.println("Total call size for queue (bytes): "+totalCallSize); } }
TEST_UTIL.getHBaseCluster().getRegionServer(0).getRpcServer().getScheduler(); Configuration newConf = HBaseConfiguration.create(TEST_UTIL.getConfiguration()); newConf.setInt("hbase.ipc.server.max.callqueue.length", 0);
rsQuotaManager.start(getRpcServer().getScheduler());
SpyingRpcScheduler scheduler = (SpyingRpcScheduler) rs.getRpcServer().getScheduler(); long prevCalls = scheduler.numPriorityCalls; MetaTableAccessor.splitRegion(connection, parent, -1L, splitA, splitB, loc.getServerName(),
TEST_UTIL.getHBaseCluster().getRegionServer(0).getRpcServer().getScheduler(); Configuration newConf = HBaseConfiguration.create(TEST_UTIL.getConfiguration()); newConf.setInt("hbase.ipc.server.max.callqueue.length", 0);
SpyingRpcScheduler scheduler = (SpyingRpcScheduler) rs.getRpcServer().getScheduler(); long prevCalls = scheduler.numPriorityCalls; MetaTableAccessor.splitRegion(connection, parent, -1L, splitA, splitB, loc.getServerName(),
rsQuotaManager.start(getRpcServer().getScheduler());