Page MenuHomePhabricator

unix domain socket listening for varnish4
Closed, ResolvedPublic

Description

It would be nice to have varnish listen on a unix domain socket for the bulk traffic from the host-local nginx TLS terminator. nginx already has unix domain sockets for output. This gets rid of the various forms of inefficiency in local TCP, and also gets rid of the 64K connection-parallelism limits (which sounds high for true request-parallelism on a single cache, but things like TIME_WAIT and other timeout-based states come into play here, too).

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
BBlack claimed this task.

For now we've solved the pragmatic issues in other ways: some general nginx/varnish tuning, kernel TCP params tuning, and using 8x TCP sockets in parallel for the local traffic. I don't see any point in pursuing varnish patches for unix domain sockets at this time, or in the foreseeable Varnish future here.