diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-12-02 22:12:30 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-12-02 22:12:30 +0000 |
commit | 7ee4a93a62c620e1b692cf6c06f901330a29d865 (patch) | |
tree | bb7b7bdca8bda608a6d190d0233ad47c656e1f5b /usr.sbin/tftp-proxy/filter.h | |
parent | 47ed23eaa28387cae449f86d52d3c5d7e7a28ab0 (diff) |
relayd (when running relays) can distribute client sessions over hosts
with a hash generated from different data and calculate modulo
rlt->rlt_nhosts to find the host the session should go to. If this
host is down, the current algorithm simply selects the next host that
is up, obviously not ideal, because this puts heavier load on this
next host.
this changes the algorithm: if the chosen host is not available, the
hash value is recalculated and and retried until a host that is usable
is found or a maximum of retires is reached (in that case the old
method is used).
ok and nice input on my original idea bluhm@
Diffstat (limited to 'usr.sbin/tftp-proxy/filter.h')
0 files changed, 0 insertions, 0 deletions