关于hbase超时的参数设置
参数分析
-
socket建连时间
默认值:
final private static String SOCKET_TIMEOUT = "ipc.socket.timeout";
final static int DEFAULT_SOCKET_TIMEOUT = 20000; // 20 seconds
1 2 |
final private static String SOCKET_TIMEOUT = "ipc.socket.timeout"; final static int DEFAULT_SOCKET_TIMEOUT = 20000; // 20 seconds |
生效位置:
RpcClient.Connection:575
protected synchronized void setupConnection()
NetUtils.connect(this.socket, remoteId.getAddress(),
getSocketTimeout(conf));
RpcClient.Connection:259
static int getSocketTimeout(Configuration conf) {
return conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
}
1 2 3 4 5 6 7 8 |
RpcClient.Connection:575 protected synchronized void setupConnection() NetUtils.connect(this.socket, remoteId.getAddress(), getSocketTimeout(conf)); RpcClient.Connection:259 static int getSocketTimeout(Configuration conf) { return conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); } |
- socket建连重试次数,对io错误和socket超时分别计算重试次数