-
Notifications
You must be signed in to change notification settings - Fork 14
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
Simultaneous creation of multiple vl3-NSEs #3
Comments
@edwarnicke @denis-tingaikin @Bolodya1997 |
I think to solve this we can simply add |
@denis-tingaikin
|
No, expiration_time is updating on refresh.
no, it wouldnt. |
Description
In the current algorithm, when creating a new endpoint, a request is sent to the
master
vl3-endpoint, which is already registered.Master
is the first endpoint in the list received from registry. And it can be different for different endpoints. Thismaster
allocatesCIDR
for a new NSE from a global prefix.So, we have following problems:
CIDR
conflict:If this happens at the same time, neither one nor the other will know about each other, because the request to the registry was at the very beginning.
Possible solution
If we will receive list of NSEs from registry in sorted order, we can solve the first problem. All new NSEs will connect to the first of this list.
For the second problem, we can use
Watch
flag in the registry query.Steps:
master
the same? If not, we have no guarantee that the new master received requests from new NSEs that originally belonged to the first master. This is necessary for state consistency and CIDR allocation. So, in this case, we need to close all connections and start over.The text was updated successfully, but these errors were encountered: