<div dir="ltr"><div>Hello Karim,</div><div><br></div><div>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 (<a href="https://varnish-cache.org/docs/trunk/users-guide/storage-backends.html#transient-storage">https://varnish-cache.org/docs/trunk/users-guide/storage-backends.html#transient-storage</a>) to store the file, and as the storage isn't bounded, it explodes.</div><div>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 <a href="https://github.com/varnishcache/varnish-cache/pull/3572#issuecomment-1305736643">https://github.com/varnishcache/varnish-cache/pull/3572#issuecomment-1305736643</a> to be released.</div><div><br></div><div>Question is: should that file be cached?</div><div><br></div><div>Cheers,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div><div>Guillaume Quintard<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 20, 2023 at 7:14 AM Karim Ayari <<a href="mailto:karim.ayari@univ-lyon1.fr">karim.ayari@univ-lyon1.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

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

_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>