Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc链接状态未检查 #54

Open
YouZhengChuan opened this issue Jun 15, 2018 · 2 comments
Open

rpc链接状态未检查 #54

YouZhengChuan opened this issue Jun 15, 2018 · 2 comments

Comments

@YouZhengChuan
Copy link

var.go:87: call Transfer.Update fail connection is shut down

如果后端的transfer或者gateway重启,导致swcollector现有建立的链接断开,那么在发送数据的时候则会失败。
而实际上在发送数据时刻,transfer或者gateway服务是正常的。
因此在rpc.go this.insureConn() 这个函数调用中,最好增加对链接状态的检查,如果链接是已经被断开的链接,那么需要重新建立一个新的链接。

或者在发送的时候增加重试,默认重试三次没有成功再丢弃也可以。

@YouZhengChuan
Copy link
Author

另外,建议增加支持多个transfer的发送

@freedomkk-qfeng
Copy link
Collaborator

恩,这是个问题。swcollector 的 transfer rpc 是基于早期版本的 falcon-agent 做的。
确实没更新了,下个版本合并下,把最新版的 falcon-agent 里的相关代码合进来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants