nigoroll / libvmod-dynamic

The Varnish dns/named director continued
BSD 2-Clause "Simplified" License
95 stars 34 forks source link

Least connection support #61

Closed danielmotaleite closed 3 years ago

danielmotaleite commented 4 years ago

Hi

From what i understand, we have by default round-robin backend policy... Is there any way to switch to least connections?

If one backend locks up or get overload , with round-robin, varnish will still try to deliver requests, not only overloading it more, but increasing the number of requests that may fail (when finally the healthcheck removes the bad backend) or get bad performance... with least connections, the locked one still will keep some requests, but new ones will be delivered to good backends, avoiding overloading even more the bad backend

thanks

nigoroll commented 4 years ago

sure, this could be added, and I would consider pull requests or sponsorships

nigoroll commented 3 years ago

timeout