Dragonfly2
Dragonfly2 copied to clipboard
deamon support retrying ListSchedulers rpc call to mutliple managers
Feature request:
deamon support retrying ListSchedulers rpc call to mutliple managers
Use case:
now if daemon have multiple manager in config file, daemon will select the first manager which ipCheck is ok with. But sometimes network are not well-partitioned and there maybe several managers are reachable. it's up to manager to dicide which manager is the correct one. Manager will return error code to daemon, and deamon will try next manager.
UI Example:
https://github.com/dragonflyoss/Dragonfly2/blob/main/client/config/peerhost.go#L165
Add the conditions for dfdaemon to select manager NetworkReady
and SchedulerReady
:
NetworkReady: Select the manager when the ip or host network is available.
SchedulerReady: Select the manager when the ListScheduler
grpc interface return more than one scheduler.