[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:
Pxl
2024-07-25 22:11:23 +08:00
committed by GitHub
parent a8da7fcdc6
commit b4e82d2322
3 changed files with 11 additions and 1 deletions

View File

@ -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.
*/