chaos / 9nbd

network block device over 9P transport
21 stars 3 forks source link

9nbd handle failover to multiple servers #4

Open garlick opened 9 years ago

garlick commented 9 years ago

I thought this code was already in 9nbd, but it looks like it may not have been completed. We need to be able to attach to a comma-separated list of servers so that when one fails, another can take its place provided the identical image is being served there.

What we have now is the ability to start a new session (thread) that reconnects to the same server when the active one times out a request. Should be simple to have the new session pick from a list of available servers.