Query regarding "http first read error: EOF" error in varnish
Geoff Simmons
geoff at uplex.de
Thu Jan 14 07:53:10 CET 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 1/14/16 6:29 AM, Jayanth Kalyanasundaram wrote:
>
> Hey, like you said the issue only happens sometimes. But the
> first_byte_timeout for all the backends is set to 300 seconds.
>
> [root at varnish ~]# sudo varnishadm "param.show first_byte_timeout"
> first_byte_timeout Value is: 300.000 [seconds] Default is: 60.000
> Minimum is: 0.000
>
> Also the time difference between the backend request and backend
> response seems to be different each time this issue occurs. For
> instance, in this case http://pastebin.com/eS2Ldnbv the difference
> is just 0.6 seconds. So I don't think it can be an issue with
> timeouts.
>
> Would this also happen if the backend server gives an empty
> response to the request ?
Yes, that would also happen, or if the connection is prematurely
closed. Since your backend apparently responds with times ranging from
0.6s to 27s to 54s, and sometimes either drops the connection or sends
an empty response, it looks like your problem is the backend and not
Varnish.
If I may add, "set the Varnish timeout really high" (as in 5 minutes)
is a common reaction from backend developers, but is usually not the
way to solve a such a problem. With that timeout, your worker threads
could be idle for up to five minutes, and you could rapidly exhaust
your thread pool. There's no way around it -- the backend needs to be
fixed.
Best,
Geoff
- --
UPLEX Systemoptimierung
Scheffelstraße 32
22301 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iQIcBAEBCAAGBQJWl0XVAAoJEOUwvh9pJNURH5gP/AuFxAcddrCoSLjbsGF/7D8C
zmuyaL3fY89LFwSavTKq1IVU8vPedKE2P+MAO6wlfOPIOV9EAFOOJ04kXVd4RvhQ
+RCO4xCIX8wKrpla+mF2fD9f0zW5S8AaYm1B935XfLyibsjNtDT3aAY7KE0mqTSO
MH6/HaEH7WiFOe2Ahp9YPQeqmrixj8Cf0w99sort9ZxTb6Seh8rZxcg0nwFJnFFB
mKWa1f6pC6mlocc4NkykQGm6sn5ywWff+NyVCj+tqKRJj+SEtVDemcgd6VPItmRa
BB9ixLBjIvCM2881surpLo4GPqTqGZqS8FYlWKj7jfBmrJaQjYuUGOeTB0Z8l+Dr
7HLBWn9OYx2dgQ2IIl4kinKjfSQBqCPW+kGOyfHpNrzdUJuNHUAmOmB1tdtl3heM
H3H4ysDfHnXNsPNYLNIsIclQOFdqG11yt4YrGR36y+3+oywOqAFvs89YLv8ohiPJ
cl6r/PzqocdliDbWAF/hsSSwd8KFGORQmIESH/qbAHMjlFdwfdt3zQBjS1hdnQrj
n9lY0t+pwbnnxgVwot6EMNOQUAP3gkKVUF8e02lqdlG4sm73IuTG8ooxe6+vonEX
Eyd2HzBASdOtDQ2abj1I6scHrzP1jdg+1SmlsiAkx+DJfpNftUVp5RI/jK67q9Ln
MrdlQWfYryv1yOcvICF0
=LALc
-----END PGP SIGNATURE-----
More information about the varnish-misc
mailing list