[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: out of workspace (bo)
From:       Kevyn Fyleyssant <kevyn.fyleyssant () gmail ! com>
Date:       2023-08-30 11:34:46
Message-ID: CAE_mS7uR=py-R+LvJdO+Mk_FYfFtPDmrve1fTzKJhBEnbwZG7A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Here is my VCL :
https://pastebin.com/TpN8r0Um

And my varnishd command :
/usr/sbin/varnishd -a :8181 -p feature=+http2 -p
http_resp_hdr_len=200k -p http_resp_size=2M -p http_req_hdr_len=200k
-p workspace_backend=256k -p workspace_client=256k -p http_max_hdr=256
-f /etc/varnish/default.vcl -s malloc,4G

On Wed, Aug 30, 2023 at 11:50 AM Kevyn Fyleyssant <
kevyn.fyleyssant@gmail.com> wrote:

> Hello,
>
> I have set up a server as follows :
> nginx reverse proxy ⇾ varnish ⇾ nginx ⇾ php-fpm ⇾ symfony with apiplatform
>
> All routes work fine, except one that returns a zip file (below 300 MB)
> and returns a 503 error most of the time.
> Even if the zip is 1 MB, it returns errors, which is weird because I have
> other routes that return JSON responses of more than 3 MB and works fine.
> There are no specific headers or cookies, it's only a PHP controller that
> returns a zip file, nothing fancy.
>
> I've tried increasing workspace_backend to 2 MB, but it only makes the
> error occur less often.
>
> The following logs are about a zip file of around 1 MB
> *Error log :*
> https://pastebin.com/ye0KGV4M
> *Success log* (on the same route/response) *:*
> https://pastebin.com/KUvwQLKQ
>
> Thank you,
> Kevyn.
>

[Attachment #5 (text/html)]

<div dir="ltr">Here is my VCL :<br><a \
href="https://pastebin.com/TpN8r0Um">https://pastebin.com/TpN8r0Um</a><br><br>And my \
varnishd command :<br><span class="gmail-ui-provider gmail-bhr gmail-bhs gmail-bfx \
gmail-bht gmail-bhu gmail-bhv gmail-bhw gmail-bhx gmail-bhy gmail-bhz gmail-bia \
gmail-bib gmail-bic gmail-bid gmail-bie gmail-bif gmail-big gmail-bih gmail-bii \
gmail-bij gmail-bik gmail-bil gmail-bim gmail-bin gmail-bio gmail-bip gmail-biq \
gmail-bir gmail-bis gmail-bit gmail-biu gmail-biv gmail-biw gmail-bix gmail-biy" \
dir="ltr">/usr/sbin/varnishd  -a  :8181  -p  feature=+http2  -p  \
http_resp_hdr_len=200k  -p  http_resp_size=2M  -p  http_req_hdr_len=200k  -p  \
workspace_backend=256k  -p  workspace_client=256k  -p  http_max_hdr=256  -f  \
/etc/varnish/default.vcl  -s  malloc,4G</span><br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 30, 2023 at \
11:50 AM Kevyn Fyleyssant &lt;<a \
href="mailto:kevyn.fyleyssant@gmail.com">kevyn.fyleyssant@gmail.com</a>&gt; \
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 \
dir="ltr">Hello,<br><br>I have set up a server as follows :<br>nginx reverse proxy \
⇾  varnish ⇾ nginx ⇾ php-fpm ⇾ symfony with apiplatform<br><br>All routes \
work fine, except one that returns a zip file (below 300 MB) and returns a 503 error \
most of the time.<br>Even if the zip is 1 MB, it returns errors, which is weird \
because I have other routes that return JSON responses of more than 3 MB and works \
fine.<br>There are no specific headers or cookies, it&#39;s only a PHP controller \
that returns a zip file, nothing fancy.<div><br>I&#39;ve tried increasing \
workspace_backend to 2 MB, but it only makes the error occur less often.<br><br>The \
following logs are about a zip file of around 1 MB<br><b>Error log :</b><br><a \
href="https://pastebin.com/ye0KGV4M" \
target="_blank">https://pastebin.com/ye0KGV4M</a><br><b>Success log</b> (on the same \
route/response) <b>:</b><br><a href="https://pastebin.com/KUvwQLKQ" \
target="_blank">https://pastebin.com/KUvwQLKQ</a><br><br>Thank \
you,<br>Kevyn.</div></div> </blockquote></div>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic