liblb
liblb copied to clipboard
A golang library that implements load balancing algorithms.
I have been working on an article about load balancing at: http://wiki.squid-cache.org/EliezerCroitoru/Drafts/MwanLB And it contains a simple example of a LB solution at: http://wiki.squid-cache.org/EliezerCroitoru/Drafts/MwanLB#Round_Robin_mark_selection_-_GoLang_example There are are couple good references...
replace the locks on counters with atomic counters to reduce the lock contention
Simple change to use Atomic Booleans. Change proposed in issue #3