修改和tfe保活功能的bug

* 修改thread_tfe_keepalive函数recv失败的处理逻辑
  * bind函数放到初始化线程,防止bind失败仍然继续运行
  * 增加SO_REUSEADDR选项保证SAPP挂掉后再TIME_WAIT状态下能够快速恢复
  * 增加tfe状态的fs2统计
This commit is contained in:
崔一鸣
2019-06-18 17:37:43 +08:00
parent 0da2c833fe
commit 7e3ae597c4
4 changed files with 119 additions and 61 deletions

View File

@@ -29,16 +29,19 @@ src_mac_addr = 00:0e:c6:d6:72:c1
[tfe0]
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = ens1f5
ip_addr =
keepalive_listen_port = 2476
[tfe1]
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = eth8
ip_addr =
keepalive_listen_port = 2477
[tfe2]
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = eth9
ip_addr =
keepalive_listen_port = 2478
[field_stat]
@@ -79,5 +82,7 @@ mho_eliminate_type = LRU
[tfe_mgr]
keepalive_switch = 1
keepalive_idle = 2
keepalive_intvl = 1
keepalive_cnt = 3
keepalive_listen_eth =