-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 12/28/15 11:30 AM, יעקב ירמולובסקי wrote: > But if I have the following in my vcl file: .first_byte_timeout = > 600s; .between_bytes_timeout = 600s; > > Doesn't varnish suppose to respect it?
In that case it wasn't a first byte timeout. Possibly something is causing a network disconnect if there is no activity for 5 seconds. That could be something in your Apache config, or for example a network device such as a firewall. Some advice: don't set your Varnish timeouts to 10 minutes, that's astronomical, and will very likely be counterproductive. This is a typical point of contention between backend app developers and the Varnish admin -- if the apps get slow, they'll want Varnish to "wait forever". But if the apps take that long, one of your Varnish worker threads is blocked for up to 10 minutes. If the app is in serious trouble so that it takes that long for all requests, all of those threads will block, and eventually you'll hit the worker thread maximum and Varnish will start refusing connections. No amount of increasing the thread pool can save you when the timeouts are that long. If the apps are that slow, you have a catastrophe no matter what happens, and you're better off having Varnish time out within a few seconds, so that at least Varnish remains stable. And the developers will have to bite the bullet and fix the app. > Where can I see how long the apache took to respond? The Apache mod_log_config module has formatters for that, for use in the LogFormat directive; but that's no longer a Varnish question. The varnishlog ReqEnd record will tell you how long Varnish waited, look here: https://www.varnish-cache.org/trac/wiki/Varnishlog 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) iQIcBAEBCAAGBQJWgRWWAAoJEOUwvh9pJNUR+OcQAIH/LY/4iHD7M3jx7U0RsCfS JJjNREkCGylWOC6aQfznUZpkhMTeyRrlPpCf4isEFi0cb7XJG1Y32g+fSPeXIC9K PrGs52uslW3eIbI+Ao7Y5ozs+yCRdbWRpobBS7HXa3aj9Ekc3mCrwIh7qAOkfJIY SGVyEPtsYZx/l8XiMhkaPBZkByHePgz+vYU4+EGf5CtAyE6GfGfLFtHd/9o2QuV2 rLPRmr8JmpDJg+Lg0rDBgQziiMfFjvAmAeuEJi9yNu1iNUhlkIPuS8eW0JWWDsDu 9A35gj1Fnip8XtUhZqrRqYX6+zFb6duCZvpj+EHRMMoaXFtuIbsQ/+gyUby8VDGG rAh7V0fOyHt1bGHvgLihZBY0htK1neP5IjiRBUn9DZr8yktfJN44/Ch6QHeTOrb5 PlgZMWKQ3Hgir0PnPhvmT9phR2e90OU6Qv9I8i8i2/crx1EFmrzUH4g0niaUhH/9 j3tiDjmRQJyf0bmcvdCaFW/30A5jsd7phRzDIL8FsmjT5yitSAIcgrjr2g0Cz4wu tIbf0WkJuynd+3cbODqc5MuxLAexlLOkfMZjm3vsxqI6Q24BifX4RUSSwaIsrfqs gHXhObHhlHkMAHqexvp6xVL6lguB4AXdDknfs6rZsPIRtimNzqtlL7V+69AKSG5d TXmnai99dOK6/AH8L8DR =+HvO -----END PGP SIGNATURE----- _______________________________________________ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc