Note: we may use balancing only for forwarders that provide the same mechanisms.
Example1:
We could have a few instances of forwarders with different image versions to be compatible with older clients.
Exapmple2:
forwarder with type A could have only N active connections. So if we need to have 2*N connections then we could just deploy an additional forwarder instance.
Definition of done
We can use roundrobin or any other balancing chain element together with discoverforwarder.
Description
Currently, we're not using a balancing algorithm in selecting cross-nse. Nsmgr permutates all forwarders in some order (based on hash).
Motivation
We could add a balancing logic for selecting the cross-nse as we do in https://github.com/networkservicemesh/sdk/tree/master/pkg/networkservice/common/roundrobin This could reduce the load on one of the forwarders.
Note: we may use balancing only for forwarders that provide the same mechanisms.
Example1:
We could have a few instances of forwarders with different image versions to be compatible with older clients.
Exapmple2:
forwarder with type A could have only
N
active connections. So if we need to have2*N
connections then we could just deploy an additional forwarder instance.Definition of done
We can use
roundrobin
or any other balancing chain element together withdiscoverforwarder
.