-
Notifications
You must be signed in to change notification settings - Fork 487
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
Consul nameresolution resolves conflicts #2489
Comments
One of the solutions I can think of is Add the appId query to check.
Then in sidercar if the appId exists then match the appId consistently, otherwise return 403. This allows consul to assume the check is invalid and not find the record |
related: dapr/components-contrib#2489 Signed-off-by: AlbertHuang <[email protected]>
fix dapr#2489 Signed-off-by: AlbertHuang [email protected]
fix dapr#2489 Signed-off-by: AlbertHuang <[email protected]>
related: dapr/components-contrib#2489 Signed-off-by: AlbertHuang <[email protected]>
fix dapr#2489 Signed-off-by: AlbertHuang <[email protected]>
Could we make the consul resolver delete the registration on shutdown? |
This is also an idea, but it seems difficult to prevent accidental shutdowns that lead to unsuccessful deletions. |
What about pairing that (de-registering on shutdown) with a check at startup to see if the old IP is registered and replace that? |
This sounds a lot like the mDNS cache problem #2413 |
It seems difficult to do if a service has multiple instances |
fix dapr#2489 Signed-off-by: AlbertHuang <[email protected]>
related: dapr/components-contrib#2489 Signed-off-by: AlbertHuang <[email protected]>
related: dapr/components-contrib#2489 Signed-off-by: AlbertHuang <[email protected]>
Consul does not automatically delete or overwrite service registrations. When services
service-a
andservice-b
exist and the following behavior occurs.A parsing error occurs
service-a
= 192.168.1.2:3500service-b
= 192.168.1.3:3500At this point consul has the following parsing
Restart both services and reassign service ip
service-a
-> 192.168.1.4:3500service-b
-> 192.168.1.2:3500At this point consul has the following resolution
Now when we access
service-a
there is a chance that it will resolve to192.168.1.2:3500
resulting in the server actually accessingservice-b
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Release Note
RELEASE NOTE: Fix consul name-resolution resolves conflicts
The text was updated successfully, but these errors were encountered: