News for hackers. Stuff that matters.
Re:How to build your own CDN using BIND, GeoIP, Nginx, Varnish by fanf2 on Monday August 09, 2010 @02:25PM (#1588852)
What do you need a fully-fledged web server on the edge nodes for? Wouldn't it be better for varnish to proxy everything to the back end dynamic server directly, except for requests that need to use the local edge node nginx?

The post describes a setup with two cacheing layers on each edge node, varnish cache in front of ngingx cache, which has got to be sub-optimal.

Re:How to build your own CDN using BIND, GeoIP, Nginx, Varnish by jjoe on Tuesday August 10, 2010 @07:25PM (#1593258)
Nginx is used as a disk cache and varnish is used as a memory cache. So you're saying that why not scrap nginx and let varnish run the show on the edge nodes? That works just fine too.

Keep in mind that the goal of the article is to build an affordable CDN based on VM edge nodes. Memory is still expensive on VMs (especially if you're going to be renting VMs in costly locations). So if you have say a 20GB static store that needs to be served, on a 2GB RAM VPS, Varnish will only be able to cache that much files and be forced to make round trips to the dynamic node on miss.

Varnish does have "persistent" storage capabilities but from what I've read they're still experimental.

Regards