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

Support TCP keep alive in exporting process #249

Open
zyiou opened this issue Aug 25, 2021 · 0 comments
Open

Support TCP keep alive in exporting process #249

zyiou opened this issue Aug 25, 2021 · 0 comments

Comments

@zyiou
Copy link
Contributor

zyiou commented Aug 25, 2021

Is your feature request related to a problem? Please describe.
Exporting process keeps a connection to collector field for sending records. We currently maintain a goroutine to check connectivity of this connection by calling checkConnToCollector for a default interval (10s).

Describe the solution you'd like
We can replace checkConnToCollector by setting TCP keep alive for the connection. https://pkg.go.dev/net#TCPConn.SetKeepAlive
It will involve some refactoring of exporting process struct. Either add some customize wrapping/casting of TCPConn or keep two connection struct for udp and tcp protocols.

Describe alternatives you've considered
N/A

Additional context
N/A

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

1 participant