Integrate the failover client in ipfs-cluster-ctl #1222
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
status/ready
Ready to be worked
Milestone
Describe the feature you are proposing
ipfs-cluster-ctl should use the restapi LBClient with a Failover strategy.
Particularly, it should also be possible to create a Failover and a RoundRobin client strategy from a /dnsaddr. If the record resolves to multiple multiaddresses, each client should be initialized to one of them.
This needs a method to turn a single Config into multiple ones that can be used for
NewLBClient
, each of them with one multiaddress as resolved from the/dnsaddr
. i.e.config.AsTemplateFor([]multiaddresses) []Config
andconfig.AsTemplateForResolvedAddresses(multiaddress) []Config
.This should in the end enable
ipfs-cluster-ctl
to perform auto-failover to other resolved addresses in a multiaddress.The text was updated successfully, but these errors were encountered: