-
Notifications
You must be signed in to change notification settings - Fork 1k
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
StatsdMeterRegistry doesn't renew resolved ip address on DNS change #1252
Comments
Could this actually be related to the default JVM DNS caching behaviour? It's quite conservative (never expire) at times: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-jvm-ttl.html |
@mweirauch no. As I mentioned earlier the security manager is disabled and according to the docs:
On OS level everything set to defauls. Tested on desktop Ubuntu 18.04 LTS with Oracle jvm and debian-stretch in a Docker container (openjdk:8-jdk-stretch). |
I looked into this a bit. reactor-netty's |
@shakuzen knowing very little about this issue, would setting the connection duration to hosts ttl be an option? |
---> any idea about after StatsdMeterRegistry.stop() and start() udp client is not able to send the metrics |
That probably won't work right now because of the issue described in #1251 (comment). I'll reopen #1676 since it isn't strictly about a change in address. |
@shakuzen Is this issue still open. Is this actively being worked upon ? |
It is still open. It is not actively being worked on. If you have a workable solution, feel free to propose it here or in a pull request. I've marked it as |
@shakuzen I am more than happy to help. Based on the code review isn't micrometer is using shaded reactor code within micrometer. Is the shaded reactor has any customization for micrometer which needs more to externalize the reactor dependency. Which is the right place to begin with is it the shaded reactor in micrometer or look into reactor project ? |
Micrometer shades reactor and reactor-netty so Micrometer is not affected by the version a user may wish to use in their own code, or vice versa. There are no changes to the shaded code other than changing the package to a micrometer package. So any changes in reactor or reactor-netty code should be made upstream in those projects. |
I think this is fixed by #1843. |
As Jon mentioned, isn't this already fixed? |
#1843 was released in |
So we can close this in favour of #3563 (comment) ? |
Maybe the opposite, close #3563 and keep this open. |
Hello everyone.
I've faced with the problem that StatsdMeterRegistry doesn't aware of DNS changes after it was
start()
ed.As a result, metrics aren't delivered to Telegraf and there is no warning or so in logs.
How to reproduce:
127.0.0.1 telegraf.kube-system.svc.cluster.local
.127.0.0.2
for example)Actual result:
Using wireshark/tcpdump you can see that all metrics are being sent to 127.0.0.1 even after step 3.
Expected result:
StatsdMeterRegistry respect DNS name change.
Can be reproduced on real network/DNS server. Security manager disabled.
Micrometer version: 1.1.3, reproducible on 1.0.7 as well.
The text was updated successfully, but these errors were encountered: