xuxueli / xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)
http://www.xuxueli.com/xxl-job/
GNU General Public License v3.0
27.46k stars 10.86k forks source link

同步调度时,为什么Netty设置是SO_KEEPALIVE? #1231

Closed duofu closed 4 years ago

duofu commented 4 years ago

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

XXL-JOB-2.0.2

Expected behavior

Actual behavior

Job调度请求对应的服务,网络常常不稳定、频频宕机,引发Admin和Executor大量的超时错误,甚至超出Linux句柄上限(Socket文件打开过多)

Steps to reproduce the behavior

Other information

构建启动类Bootstrap,设置ChannelConfig时,为什么不设置超时时间?为什么使用SO_KEEPALIVE? 微信截图_20191031195308

xuxueli commented 4 years ago

你好,这个问题应该是没有多idel检测导致,新版本xxl-rpc已经尝试优化,可以升级体验。或者对xxl-rpc提交PR处理这个问题:https://github.com/xuxueli/xxl-rpc/blob/master/xxl-rpc-core/src/main/java/com/xxl/rpc/remoting/net/impl/netty_http/client/NettyHttpConnectClient.java