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 <[email protected]>
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
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to