Streaming and backend conditional requests

Geoff Simmons geoff at uplex.de
Sat Jan 14 14:56:32 CET 2012


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

On 1/13/12 2:18 PM, Poul-Henning Kamp wrote:
> 
> By default all backend fetches which can find a candidate for it, 
> will try to IMS against the backend.  If you do not want that, you 
> remove the bereq.http.IMS header in vcl_pass{}/vcl_miss{}

What got the conversation going about this is that in the current
implementation, a busy object can never be the candidate for a
validation. So in 3.0 streaming, it can never be an object that is
still streaming. If that's the right solution now and in the future,
then everything's fine.

When new streaming arrives, if I've understood correctly, a second
request for a streaming object can be served from the same object in
the cache. If this happens after TTL has already elapsed, then a
validation against the backend could avoid another fetch for a large
object that hasn't changed.

If we want that, the innards of IMS implementation would have to
change, because now it can only work with an object stored in entirety
in the cache. If not, IMS would at least have to recognize that an
object is currently streaming (to be able to exclude it), since Martin
has advised that busy flag won't be set.

Thanks for the update.


Geoff
- -- 
UPLEX Systemoptimierung
Schwanenwik 24
22087 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJPEYmPAAoJEOUwvh9pJNURAIoP/A2eNUq32SnQztU/X/zqx6xZ
+2XUVQKdsOnU5TbG5sV53cFvO1UybRGI5VNGs++KhxkEv1IHAwIEq2Kr19QVrKHC
6oIb+dhb/820xGhpC0P0PJBVCkCuiAevuFy7NwIWl9eZDrkxZJqgXiCmQ6ip/rvW
mBw4lAmnIgaAIVidmFRGeO5R5Xk/JrIf6e00c7sGP95WZMd01E7d9pfegb6Hav8w
tm52SZ4bam6D9FI9jqgagGfZJp/bWWXhyc9+ZN1NQeO8/jh/iHqih6rG3dv/XcPH
YO6rSVuGefdeNqcjrnAAObOsmu37nnmWINydgA3k2cdROQJ5ZMGuToNtAc4wUcgk
uy/9wz7fVBxFdX0pWZz1umhkgCJpsYBlDHie+lmhuog5EyCFFnJCgItaUnbDg71V
W5RDp5ZU4LpvJ2p876fT8Hgsb5cJe6svnLO838hm4APqY00WzpzkDpm7B6zoojeK
2AvGXMrEZ4Kogrc0rIMoXMWA0KSwc3tMZda58SKW1bBakqxUNJzs6BZ3m75hgwXQ
6En3f40CbSsC7p/TFhYtJphO/28Ky8es3xlVCFFXPzEOKDq7rMmlqRALUF1sTwR7
AMjoQSUgsxxVmkzZlyn3LJgcsSbcIvHgPHJUqNSE8JjiXo3r4SL5PVRThqfT+Usu
+lOhja0Fl/P+W1BkTL4V
=lG6D
-----END PGP SIGNATURE-----



More information about the varnish-dev mailing list