Limit requests to backend based on requested domain?

Guillaume Quintard guillaume at varnish-software.com
Wed Aug 30 10:22:03 CEST 2017


Hi Jeff,

have a look at vmod_vsthrottle in varnish-modules, that should do it.

-- 
Guillaume Quintard

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?
>
> I know I can limit the number of requests to a backend with max requests,
> but our backend services multiple domains, and I’m wanting to limit the
> number of requests per domain (so that too many requests to one doesn’t cut
> off resources for others). I’ve thought of maybe doing this by defining
> multiple backends (pointed at the same server), but then I worry that the
> health checks we run would stack up (i.e. if there are a 100 domains, going
> from 1 backend to 100 backends would presumable increase the health checks
> 100 times).
>
> Thanks,
> Jeff
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170830/03359740/attachment.html>


More information about the varnish-misc mailing list