Load Balancing Algorithms in VCL

Shiraz Kanga skanga at gmail.com
Mon Mar 3 21:06:59 CET 2008

Dag-Erling Smørgrav wrote:
> Shiraz Kanga <skanga at gmail.com> writes:
>> In order to support these VCL will need access to various statistics like
>> * Number of active requests per server
>> * Number of requests per second per server
>> * Avg response time per server
>> * Bandwidth per server
>> Are these stats available in the VCL environment?
> Not presently, and our current take on backend load balancing is that
> it is best done in C, probably with pluggable algorithms (or directors
> as they are called in the code).
Thanks for your reply. Would you mind explaining why load balancing is 
"best done in C" especially since VCL should have the same performance 
as C as it goes through the C compiler.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20080303/30dec5df/attachment.html>

More information about the varnish-dev mailing list