[Improvement](rpc) set grpc channel's keepAliveTime and remove proxy … (#38381)
…on InterruptedExcep… (#37304) ## Proposed changes 1. set grpc channel's keepAliveTime 2. remove proxy on InterruptedException/TimeoutException to avoid channel unavailable pick from #37304 ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
This commit is contained in:
@ -1464,6 +1464,14 @@ public class Config extends ConfigBase {
|
||||
@ConfField
|
||||
public static int grpc_threadmgr_threads_nums = 4096;
|
||||
|
||||
/**
|
||||
* sets the time without read activity before sending a keepalive ping
|
||||
* the smaller the value, the sooner the channel is unavailable, but it will increase network io
|
||||
*/
|
||||
@ConfField(description = { "设置grpc连接发送 keepalive ping 之前没有数据传输的时间。",
|
||||
"The time without grpc read activity before sending a keepalive ping" })
|
||||
public static int grpc_keep_alive_second = 10;
|
||||
|
||||
/**
|
||||
* Used to set minimal number of replication per tablet.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user