varnish and mp4 files

Guillaume Quintard guillaume.quintard at gmail.com
Mon Feb 20 17:55:19 UTC 2023


Hello Karim,

You VCL would be useful to debug this (as well as the command line you are
running Varnish with), but it sounds like Varnish is using the Transient
storage (
https://varnish-cache.org/docs/trunk/users-guide/storage-backends.html#transient-storage)
to store the file, and as the storage isn't bounded, it explodes.
We can fix this in a couple of ways, from storing the file in the regular
cache storage, to using pipe, to waiting a few days for
https://github.com/varnishcache/varnish-cache/pull/3572#issuecomment-1305736643
to be released.

Question is: should that file be cached?

Cheers,

-- 
Guillaume Quintard


On Mon, Feb 20, 2023 at 7:14 AM Karim Ayari <karim.ayari at univ-lyon1.fr>
wrote:

> Hi!
>
> I am currently experiencing a memory load problem with video playback.
>
> here is the infrastructure :
>
> client --> haproxy --> varnish --> moodle workers (x5)
>
> a teacher uploaded a 400MB video to Moodle, when we start playing the
> video with browser player, Varnish consumes all the memory until it runs
> out and oom killer to kill varnishd. i have no configuration for mp4
> files in my vcl file, so by default they are not hidden (?). I can't find
> a solution :(
>
> I can give my vcl file if necessary.
>
> (I am a beginner on varnish :))
>
> thank you for your support.
>
> Karim
> _______________________________________________
> 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/20230220/c7dd1d75/attachment-0001.html>


More information about the varnish-misc mailing list