News for hackers. Stuff that matters.
Re:Varnish Explained by maggit on Monday October 24, 2016 @05:16AM (#12777515)
I use both in concert in several installations. Varnish is so blindingly fast that it is a great addition in virtually any stack :)
Re:Varnish Explained by zepolen on Monday October 24, 2016 @07:23AM (#12777933)
Fast and unstable at high concurrency.
Re:Varnish Explained by acdha on Monday October 24, 2016 @07:30AM (#12777951)
Do you have any details about that?
Re:Varnish Explained by zepolen on Monday October 24, 2016 @08:27AM (#12778182)
Most of the problems stem from the thread pool - and most of my personal observations come from using both in production.

Up to a certain high load, Varnish works well, then all hell breaks loose - Nginx in comparison was much more stable and used less resources, had a higher max throughput, and when it hit the max - (assuming it filenode limit was high enough) would still work..just slowly. Varnish just died.

Re:Varnish Explained by jimjag on Monday October 24, 2016 @09:52AM (#12778745)
There is this sad idea that "threads are bad" and that event is the cat's pajamas. But even nginx admits that there are situations where threads make sense, hence their semi-recent addition to adding them.

I encourage people to read http://capriccio.cs.berkeley.edu/pubs/threads-hotos-2003.pdf. Yeah, it's old, but so is the 10k Concurrency paper which is still touted as the reason why people should use nginx instead of anything else. Threads will only get better.

Re:Varnish Explained by olavgg on Monday October 24, 2016 @09:58AM (#12778799)
Sounds like you had a gigantic malloc and used too much memory and let Linux kill it.

http://stackoverflow.com/questions/16693677/why-isnt-varnish...

If you really need a large malloc, I highly recommend running Varnish on FreeBSD instead of Linux as the Linux kernels VM system is horrible when memory is overcommitted.

Re:Varnish Explained by acdha on Monday October 24, 2016 @10:19AM (#12778975)
Interesting - curious about what the actual failures were as I've never seen failures like that with fairly large Varnish caches. nginx wasn't an option for us until they made it handle the HTTP Vary header correctly so I don't have recent comparative experience with it as a cache.