Limit object count

Guillaume Quintard guillaume at varnish-software.com
Tue Jul 4 09:44:58 CEST 2017


Hello,

Your best best is indeed to reduce the TTL to store less object, or just to
reduce the storage size

-- 
Guillaume Quintard

On Tue, Jul 4, 2017 at 4:09 AM, Reinis Rozitis <r at roze.lv> wrote:

> Hello,
> is there a way to limit maximum cached object count in Varnish or better
> handle OOM situation?
>
> I use only file backend storage (on SSDs) and the nodes have 32Gb ram.
> While the maximum object count was previously limited by the backend
> storage now after upgrading the ssd capacity varnish triggers OOM killer
> (no swap on the instance) and restarts after reaching 35M objects which
> kind of makes sense considering the 1Kb per object overhead.
>
> So what would be the best way to handle it (besides adding more ram)?
> Based on average object size just limit the backend storage size so no
> more than ~30M objects fit / tweak the TTL so older objects get evicted
> sooner / add swap?
>
>
> rr
>
>
>
> _______________________________________________
> 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/20170704/bc5b6ba2/attachment.html>


More information about the varnish-misc mailing list