Limit requests to backend based on requested domain?

Dridi Boukelmoune dridi at varni.sh
Wed Aug 30 10:16:37 CEST 2017


On Wed, Aug 30, 2017 at 9:24 AM,  <jpotter-varnish at codepuppy.com> wrote:
>
> Hi,
>
> Is there a way to limit the number of concurrent requests sent to a backend based on the requested domain name? Or more broadly, based on some key/value?

Have a look at the vsthrottle VMOD, it's usually used for client
requests but you can probably use it on the backend side too.

https://github.com/varnish/varnish-modules
https://github.com/varnish/varnish-modules/blob/master/docs/vmod_vsthrottle.rst

Dridi



More information about the varnish-misc mailing list