Hacking Apache HTTP Server at Yahoo!

How does the busiest web site on the planet squeeze maximum performance out of Apache? Check out the talk notes from Michael Radwin’s ApacheCon 2005 session titled Hacking Apache HTTP Server at Yahoo!.

Here’s the excerpt:

Since 1996, Yahoo has been running Apache HTTP Server on thousands of servers and serving billions of requests a day. This session reveals the secrets of how Yahoo gets maximum performance out of minimal hardware by tweaking configuration directives and hacking the source code. Radwin will cover topics such as reducing bandwidth costs, extensible logfile format and rotation schemes, dumping core gracefully, and how to avoid the dreaded MaxClients, Max/MinSpareServers, StartServers configuration nightmare.

Technorati Tags: ,

Advertisements

2 thoughts on “Hacking Apache HTTP Server at Yahoo!

  1. I find it interesting that he writes in the summary (slide 55): “Every CPU cycle counts” but then shows code like that on slide 41. It’s more efficient to write:

    static int yahoo_hostname_handler(request_rec *r) {
    if (r->method_number == M_GET) {
    r->content_type = ” text/plain”;


    }
    return HTTP_NOT_IMPLEMENTED;
    }

    instead of checking that r->method_number != M_GET for each and every request (unless compiler optimizations render them equivalent)

Comments are closed.