Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDNS SD: Old targets do not disappear #1610
Comments
beorn7
added
kind/bug
component/service discovery
labels
May 3, 2016
This comment has been minimized.
This comment has been minimized.
|
Goroutine dump would help, yes. |
This comment has been minimized.
This comment has been minimized.
|
Sent via personal mail. |
This comment has been minimized.
This comment has been minimized.
|
Just FTR: This happened again now. But it's definitely a rare event. Targets at SC are coming and going all the time. (Perhaps it's triggered by a special pattern, e.g. all targets are replaced in one go?) @mweiden This is the issue I was talking about. And to be fair, we never considered it fixed. |
This comment has been minimized.
This comment has been minimized.
|
Happened again, on v0.20... Is there any difference between 1.0 and 0.20 that could affect this? (We should release 1.1 so that I can upgrade all of SC, and then I can create goroutine dumps for the current version for easier troubleshooting.) |
This comment has been minimized.
This comment has been minimized.
|
Replacing all the addresses in a job, without renaming the job, does the trick. Here is a script to reproduce this reliably. |
This comment has been minimized.
This comment has been minimized.
|
This sounds pretty relevant for normal operations. |
beorn7
added
the
priority/P1
label
Aug 18, 2016
beorn7
self-assigned this
Aug 22, 2016
This comment has been minimized.
This comment has been minimized.
|
OK, I'm working on this one now. Dropping |
This comment has been minimized.
This comment has been minimized.
|
Thanks, lacking bandwidth for this right now. |
This comment has been minimized.
This comment has been minimized.
espenkm
commented
Aug 22, 2016
|
This may or may not be useful information on this: What I also see is that the scraping gets confused as it now scrape some other pod that has gotten the recycled ip from the deleted pod(s). This (also?) leads to the new pod gets scraped with the wrong labels as prometheus thinks it is the old pod. Were on 1.0.1 |
This comment has been minimized.
This comment has been minimized.
|
Bug is understood. Now I have to figure out a solution… |
This comment has been minimized.
This comment has been minimized.
|
What is the bug? On Mon, Aug 22, 2016 at 5:42 PM Björn Rabenstein notifications@github.com
|
beorn7
added a commit
that referenced
this issue
Aug 22, 2016
beorn7
referenced this issue
Aug 22, 2016
Merged
retrieval: Clean up target group map on config reload #1907
This comment has been minimized.
This comment has been minimized.
|
See PR. |
beorn7
closed this
Aug 24, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
beorn7 commentedMay 3, 2016
I have just run into an issue where targets disappear from the DNS SRV record but stick around in Prometheus. The new targets have been added, but the old ones don't disappear. I couldn't detect any hung goroutine are something, but perhaps I didn't look carefully enough.
I have the full goroutine dump if needed.
I'll report here if I see the issue happening more often. (So far this was the only incident.)
This has happened with the stock 0.18.0 binary.
@fabxc Perhaps this is related to the occasional K8s SD hiccups reported elsewhere, i.e. something in the retrieval layer might get stuck that is not specific to K8s.