Add function to update current set of nodes to connect #30
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#30
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original issue: https://github.com/nspcc-dev/neofs-sdk-go/issues/338
We can provide a method to update current set of endpoints. Remaining endpoints will use the same connection, new endpoints produce
client.dial()
and old endpoints triggerclient.close()
in the clients. Make sure that active requests should be finished.Alternative solution
Do nothing and call
pool.Close()
andpool.New()
on application side. We also should check thatpool.Close()
will not affect active requests.Reload pool configuration on external signalto Add function to update current set of nodes to connectWe can start with a short prototype to see whether proposed solution is okay. Also if it is possible to wait for all active requests during
pool.Close()
.One could use https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/network/cache/multi.go#L99 for the inspiration