News for hackers. Stuff that matters.
Re:Using Flat Files So Elections Don’t Break Your Server by jemfinch on Monday December 20, 2010 @04:28PM (#2025833)
Doesn't Varnish handle many times more concurrent clients than apache does, at significantly lower system load? It could just be pure optimization.
Re:Using Flat Files So Elections Don’t Break Your Server by jacquesm on Monday December 20, 2010 @05:27PM (#2026020)
It does. Apache is strictly one process per connection, varnish handles hundreds, thousands or even tens of thousands of connections with just one process so the overhead is minimal.
Re:Using Flat Files So Elections Don’t Break Your Server by jbyers on Monday December 20, 2010 @06:04PM (#2026122)
Apache has not strictly been one process per connection since 2.0. See the worker MPM. I would have chosen nginx, but Apache can be configured as a capable static file server.
Re:Using Flat Files So Elections Don’t Break Your Server by jacquesm on Monday December 20, 2010 @07:29PM (#2026393)
Even then each thread is still one connection (according to the apache docs).
Re:Using Flat Files So Elections Don’t Break Your Server by pquerna on Monday December 20, 2010 @08:54PM (#2026569)
Except in the Event MPM
Re:Using Flat Files So Elections Don’t Break Your Server by dedward on Tuesday December 21, 2010 @09:32AM (#2027821)
It is pure optimization - they said it gives them a performance boost and smooths things out.

In their "flat-file" setup though - they are deliberately configured so that, should varnish fail (which was one of their concerns) - they don't actually need it - they could just have haproxy immediateley start hitting the apache servers directly.