baidu / Jprotobuf-rpc-socket

Protobuf RPC是一种基于TCP协议的二进制RPC通信协议的Java实现
Apache License 2.0
527 stars 221 forks source link

发送过多的请求到rpc server,server端会排队执行所有的请求吗 #46

Open wangzheng0822 opened 7 years ago

wangzheng0822 commented 7 years ago

比如woker线程池只开了50个,处理速度又比较慢,当worker线程都在忙时,新进来的请求会放到线程池的排队队列里面吗?线程池的排队队列的大小可以设置吗?

xiemalin commented 7 years ago

连接池可以设置, RpcServerOptions以下参数 /* The acceptor threads. / private int acceptorThreads = 0; // acceptor threads. default use Netty default value

/** The work threads. */
private int workThreads = 0; // work threads. default use Netty default value
wangzheng0822 commented 7 years ago

连接池的工作线程可以设置,好像排队队列不能设置的

xiemalin commented 7 years ago

排队目前不能设置