Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Tools
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 3/12/2009

Mike Grafton
Thursday, March 12, 2009

Interesting

  • Selenium removes the If-Modified-Since header. This gets in your way if you are testing ETags.

  • Speaking of ETags – they are awesome. See Ryan Daigle’s article for code.

Help

Just how slow is Mongrel when serving static images?

The answer is – pretty slow. The reason for the question was that Google’s crawler tends to keep a single connection open and fire lots and lots of http requests over a period of several hours. With a standard Nginx/Mongrel setup, this would tie up a mongrel for this entire period.

A proposed solution to this problem is to use HAProxy between Nginx and Mongrel.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 Comments

  1. Dan says:

    Wouldn’t a standard nginx/mongrel setup have it so all static content is handled by Nginx only? Requests for /images/*, /stylesheets/*, /javascripts/*, etc would be handled by Nginx before ever hitting Mongrel.

    March 18, 2009 at 12:31 am

  2. Joseph Palermo says:

    Dan,

    You are correct, there were a few issues and they all got combined into this one standup. Google actually gets locked onto a single Nginx for the entire period (assuming you have Nginx on each host in front of the Mongrel’s on that host). This was our problem.

    One idea was to use HAProxy to solve this, but then there was a question of do we still need Nginx. It seems like it, since HAProxy can’t serve the static files, and you don’t really want Mongrel doing that (although it doesn’t tie up a Mongrel since it doesn’t need to get into the Rails mutex, everybody agrees it’s still much slower).

    March 18, 2009 at 4:51 am

Add New Comment Cancel reply

Your email address will not be published.

Mike Grafton

Mike Grafton
San Francisco

Recent Posts

  • SF Standup 5/6/2011: Bundler Blah Blah Blah Blah
  • SF Standup 5/5/2011: The Most Interesting Standup in the World
  • SF Standup 5/4/2011: Tête-à-tête
Subscribe to Mike's Feed

Author Topics

agile (5)
bundler (2)
jquery (1)
ikea (1)
pairing (1)
amazon cloudfront (1)
internet explorer (1)
paperclip (1)
chef (2)
engineyard (1)
fast_xs (1)
rails (5)
activerecord (1)
rvm (1)
memcache (1)
etags (1)
haproxy (1)
mongrel (1)
selenium (1)
imagemagick (1)
jolt awards (1)
mac (1)
rubymine (1)
jruby (1)
postgres (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Tools
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >