-
Notifications
You must be signed in to change notification settings - Fork 36
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
Forwarder breaks NSMgr restore case #970
Comments
@Bolodya1997 Do you have any idea how to fix this? |
We can disable restore on Forwarder, because it actually doesn't make any sense:
If we have both [1, 2] failed, we probably need to first heal [1] and after heal [2]. Currently, Forwarder restore blocks [1] healing until [2] would be healed, though [1] healing contains [2] healing. |
I would be suggesting to do next thing:
It is also a bit ugly solution but in comparison with #971 we'll not need to modify each forwarder application. The best solution to this problem is just to switch to a multipoint architecture. |
Exactly this solution wouldn't work, because we cannot use Probably we can try to use path segments names to understand that the Request was originated in Forwarder? But it looks like a very dirty solution. |
/cc @edwarnicke |
Could you explain why? We'll have forwarder's URL here: https://github.com/networkservicemesh/sdk/blob/main/pkg/networkservice/common/interpose/server.go#L39 |
If Forwarder originates Request, it doesn't mean that it already has reregistered itself. So in such case we wouldn't have Forwarder URL in map. |
Sorry, I mean that we can use peer.FromContext to handle this scenario... For example:
|
Closed by #971. |
Expected Behavior
NSMgr restore case should restore the NSC -> NSE connection.
Current Behavior
If Forwarder starts restoring NSMgr earlier than NSC / local NSMgr it results in new connection IDs and +2 path length.
Failure Information (for bugs)
Steps to Reproduce
Context
Packet automation cluster.
The text was updated successfully, but these errors were encountered: