alphacomm / alpharpc

AlphaRPC is an RPC daemon based on ZeroMQ that can be used to distribute workload over one or multiple servers.
alpharpc.net
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Keep track of unavailable managers to reduce latency. #33

Closed reenl closed 10 years ago

reenl commented 10 years ago

When you configure multiple servers and you run multiple requests on the same client. It makes no sense to keep trying to connect to a manager that times out.

This PR, keeps track of the unavailable managers and gives priority to the managers that are actually responding.

This PR also attempts to improve load distribution when using multiple managers. Because managers are not only shuffled at boot time but also when starting a new request. (In the past a client pretty much never changed manager).

jacobkiers commented 10 years ago

Wasn't happy with the commit message, so I changed that (and only that). Is now commit 1cf8f5e.