hadoop组件timeout时间

以下是一些timeout的例子

name    value    description

dfs.heartbeat.interval  3  Determines datanode heartbeat interval in seconds.

dfs.namenode.stale.datanode.interval  30000  Default time interval for marking a datanode as "stale", i.e., if the namenode has not received heartbeat msg from a datanode for more than this time interval, the datanode will be marked and treated as "stale" by default. The stale interval cannot be too small since otherwise this may cause too frequent change of stale states. We thus set a minimum stale interval value (the default value is 3 times of heartbeat interval) and guarantee that the stale interval cannot be less than the minimum value. A stale data node is avoided during lease/block recovery. It can be conditionally avoided for reads (see dfs.namenode.avoid.read.stale.datanode) and for writes (see dfs.namenode.avoid.write.stale.datanode).

dfs.heartbeat.recheck.interval  15  Determines datanode heartbeat interval in seconds.

dfs.qjournal.start-segment.timeout.ms  20000  Timeout when starting a new edit segment with JournalNodes. This only applies when NameNode high availability is enabled.

dfs.qjournal.select-input-streams.timeout.ms  20000  Timeout when selecting input streams on JournalNodes. This only applies when NameNode high availability is enabled.

dfs.qjournal.write-txns.timeout.ms  20000  Timeout when writing edits to a JournalNode. This only applies when NameNode high availability is enabled.

Hbase角度:

zookeeper.session.timeout  60000  ZooKeeper session timeout in milliseconds. HBase passes this to the ZooKeeper quorum as the suggested maximum time for a session. See http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions The client sends a requested timeout, the server responds with the timeout that it can give the client.

Zookeeper角度

tickTime 2000 The basic time unit in milliseconds used by ZooKeeper. It is used to do heartbeats and the minimum session timeout will be twice the tickTime.

initLimit 10 Amount of time, in ticks, to allow followers to connect and sync to a leader. Increase this value as needed, if the amount of data managed by ZooKeeper is large.

Synctime 5 Amount of time, in ticks, to allow followers to sync with ZooKeeper. If followers fall too far behind a leader, they are dropped

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值