-
Notifications
You must be signed in to change notification settings - Fork 712
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
Are we doing anything to prevent the same report being send to the same app twice? #463
Comments
Peter has some idea here. The prototype I hacked up shouldn't be merged. This probably isn't a release blocker. |
The actual issue is that the same app instance may be reachable via several IPs, which all get picked up by the probe via weaveDNS. (Perhaps other methods, too.) Probes broadcast their reports to all upstreams, which is a fundamental error in design, but was something we decided to do in the short-term to help in ease of use. The proper fix is to stop broadcasting reports to every apps. If we want to keep the current ease-of-use of being able to connect to any weavescope container app and see the same infrastructure, then something along the lines of:
The quick and dirty fix is probably:
|
Quick & dirty approach sounds fine. Only suggestion would be to not overload the report-posting endpoint, and instead stick the app id in /api (which also has the version, and should be useful in the future). As the resolver calls MultiPublisher.Add() repeatedly, you could fetch /api there and not need the extra timeout for the probe to re-check ids. |
Good ideas. Updated. |
@peterbourgon And this? |
Yep. |
No description provided.
The text was updated successfully, but these errors were encountered: