-
Notifications
You must be signed in to change notification settings - Fork 478
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
Dynamic UDP target host address #481
Conversation
Codecov Report
@@ Coverage Diff @@
## master #481 +/- ##
============================================
- Coverage 87.29% 87.27% -0.03%
Complexity 357 357
============================================
Files 24 24
Lines 1496 1501 +5
Branches 164 165 +1
============================================
+ Hits 1306 1310 +4
Misses 124 124
- Partials 66 67 +1
Continue to review full report at Codecov.
|
Hi @fmachado , I think resolving and caching IP address for datagram is unnecessary (and obviously falls defective this case)
hostAddress should be changed to SocketAdress, something like this
What do you think ? |
@lxhoan, that works well only if one has batching enabled. If batching is disabled, it will resolve the hostname every time an UDP write is performed. It can result in denial of service to the DNS service if one sends out a lot of metrics in a short interval of time. |
@m4ce, there some other dns caching levels down to the IP layer (at least at JVM and your OS), So I think we can be safe Otherwise we must be meticulous when introducing more configuration to influxdb (I mean this one ADDRESS_LOOKUP_INTERVAL) |
Hi @fmachado , if you can arrange time please take a look on it |
@m4ce as far as I could understand from your issue ticket and this PR, you can solve your problem by adding a parameter You can also apply this configuration by calling For the reasons mentioned before, I vote for do not merge this PR. |
I'm closing this issue but feel free to reopen it if you think your issue cannot be fixed with the way we mentioned here. |
I see this change was implemented on Sept 5th. We are good then! |
This PR tries to solve #480 by refreshing the target UDP host address every 5m. I am not sure if this is the best approach but that's all I could come up with!