Load Balancing Algorithms in VCL

Shiraz Kanga skanga at gmail.com
Tue Feb 19 23:23:52 CET 2008


Will it be possible to implement custom Load Balancing algorithms in 
VCL? There are numerous algorithms that can be used to distribute load like
Round Robin, Weighted Round Robin, Least Connections, Fastest Response, 
Most Bandwidth, etc.

Each of these algorithms can be made sticky i.e. only balance NEW 
requests and send existing ones to the same backend as they were 
previously sent to (to reuse caches, etc).

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?

Thanks

shiraz
skanga at gmail.com




More information about the varnish-dev mailing list