time out on big object ??

Geoff Simmons geoff at uplex.de
Mon May 30 18:13:57 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/30/11 05:39 PM, Patrick CAO HUU THIEN wrote:
> hello.
> 
> I made a basic «out of the box» varnish server to access a «personal» web
> server ... in fact, just define a backend.
> But I have a problem when I test the download of big object (iso with
> ~630Mb) with this message:
> 
> wget http://xxxxx/iso/ubuntu-zz-10.04.2-desktop-i386.iso
> --2011-05-30 09:28:19--http://xxxx/iso/ubuntu-zz-10.04.2-desktop-i386.iso
> Resolving xxxxx... yy.yy.yy.yy
> Connecting to xxxxx|yy.yy.yy.yy|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 854108160 (815M) [application/x-iso9660-image]
> Saving to: `ubuntu-zz-10.04.2-desktop-i386.iso'
> 
> 53% [===================>                   ] 458,763,695  453K/s   in 10m 0s
> 
> 2011-05-30 09:38:26 (746 KB/s) - Connection closed at byte 458763695. Retrying
> 
> 
> The time-out always appear after 10 mins.
> 
> Can I have some advices to help me resolve this .... like don't cache big
> object or specific URL ?

The default value of the send_timeout parameter is 600 seconds:

"Send timeout for client connections. If no data has been sent to the
client in this many seconds, the session is closed. See setsockopt(2)
under SO_SNDTIMEO for more information."

Probably what's happening is that Varnish needs more than 10 minutes to
read the 630 MB monster from your backend, during which the client
connection sits idle, and the timeout elapses.

You could set a higher timeout with -p send_timeout=<more than 600>, but
you're probably much better off having VCL return pass on that
particular URL. Unless you really need Varnish to take up 630 MB of
space just to cache your Ubuntu ISO.


Best,
Geoff
- -- 
** * * UPLEX - Nils Goroll Systemoptimierung

Schwanenwik 24
22087 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJN48JFAAoJEOUwvh9pJNURvJ4P/Rgtas2aTzKrqWsUkJPhAgbe
WSr3HCouWukARJRzHL6Hz5HB5XME2Di0Qj7QmplEUF35ftQLP0pE/iu3EPvXJ2R9
b2LmXrpK7R1GVEIMo5sBE43hJsftl1B5GWTZKl6w+z5ESSPgltYQrBax888yZK4d
tIphnGlu/T63db8IGvrFQ212QrNtv+tt1z8QEfuhJLUkVCFa2ajDpWJV34rYTOaC
IQd6qepDmMKipEApJdL8mZY6c7Y7wUlmXTnrXLBEQiaIFTONyCv4a72PoLyYa3Xl
fA9cRQ11V059Ws2T7S1/ZN0CEY6T2ms1dHKLTh8B68pGgLGCMufro6KkTMvBXhMZ
uLHMEmOx9ejRL9w6iOhxtYnG1PlNXOpF/BGj2q+8kGQthptgeiBTBnWMfW1jI7y1
mtl9LeQ+5NhVmgpIOgj+j4xKzMHED2f0DjvtN+VmJAZpr4hwY5pxadB+bFlKGq5B
v7bOWQm5imQ91CM7E0PoYa85nR+5Z0JyZMJNRq7FwBhNrsFRFTz8z46t2Ezd/pAe
5H3BT+EDkHhsejMOE3cNZoe0k9TYX+nEtymJUJg6tCGrLynvux3m3XA7mU29prfm
q3Xl+Vkbv9c9XxGJSlAqWF09hSJP8shtpcQ0qGa/eFT6qwNI419NkypVSnD1Yl6y
Yp1+SxymNgnju54t4Frb
=9vzr
-----END PGP SIGNATURE-----




More information about the varnish-misc mailing list