Author: spierzchala

  • Web Performance: MySpace Offline

    I came in this morning to read on Netcraft that MySpace had been knocked offline by a power outage at their datacenter. [here]

    The question is now one of how did this happen. There should have been contingency planning in the extreme for this type of event, especially for operations in the Western US. Backup generators, UPS, etc. should have been in place.

    It would be very interesting to sit in on a post-mortem of this event.

    Technorati Tags: ,

  • GrabPERF: Five of Seven Agents updated

    As of right now, five of the seven GrabPERF measurement agents are updated with the new code I created last night.

    I am also planning some addition changes to the service, including posts, HTTP Basic authentication, content matching and some basic per-measurement cookie jar technology.

    Thank you all for your continued support of GrabPERF.

    Technorati Tags: ,

  • Web Performance — Flickr: Do you want to get faster?

    Dear Flickr:

    I have been wondering for sometime why downloads from your site seemed a little sluggish at times.

    At first I blamed your unprecedented growth and success. For a little Vancouver startup (I am a BC boy myself), your entrance onto the stage of social networking applications has been phenomenal. The move from zero to infinity may have played a part in the performance I was seeing.

    Nope. There was something else going on; I could see it every time I loaded a Flickr page in my browser. There was something else going on.

    So today, I checked something out, and found the problem.

    You need to enable persistent TCP connection on the static.flickr.com servers.

    Now, that is the simple answer. I know that with large, web-based applications, enabling something as monumental as persistent connections could cause serious issues. If the architecture of the system was not designed to handle persistent connections, turning them on could cause the entire system to collapse.

    There are legitimate, if mis-guided, reasons for disabled persistent connections. Some administrators believe that it is actually more efficient to have a client open a connection for every object. Easier to manage state, etc. The only problem is that in order to do that, you have to tune the systems serving data to shorten the amount of time a closed connection spends in a TIME_WAIT state.

    When a TCP connection is closed, the socket is not immediately closed by the system in a default configuration. The TIME_WAIT state is the holding pen that these connections are pushed into. While in this state, the socket is locked and this may count against the incoming TCP connection queue, forcing the network stack to delay or reset new incoming connections.

    Still, as Flickr is a worldwide company, the delay that the lack of persistent connections injects is astounding for locations in Asia. If you want to grow your business, and support more services, this will likely become a bottleneck very quickly.

    Have a great weekend!

    smp

    Technorati Tags: , , , , ,

  • GrabPERF: New Agent Code in Testing

    After a few month hiatus, I am starting to code for GrabPERF again. I need to exercise my brain; as I am a hobbyist code mangler, I have to take on a project every now and then to keep my not-so-l33t skillz honed.

    The change to the agent is one of efficiency. The current production agent opens two database connections to run tests: one to retrieve the test configuration data; the other to insert the results of the tests. This means I loop through one set of database query results while doing inserts inside the loop on a second database connection.

    This is stupid.

    The new code opens a single connection to the database, retrieves the test configuration, dumps the results to an array of arrays, then inserts the data on the same connection. This is more efficient, as I use persistent connections and compression to MySQL to improve performance.

    I have this running as TEST AGENT 1 from the Technorati #2 site.

    Let me know if you see any madness…outside of Washington DC, and specifically with GrabPERF.

    Technorati Tags: , ,

  • A Metallica Morning

    My musical tastes run the gamut. The sublime includes Gregorian Chants, Baroque music, and ethereal soaring symphonies.

    But I was raised in a small town in the BC interior. Metallica is in my blood.

    Oh, you may try and deny your Metallica-ness, but you know it’s there. It’s the one that makes you want to drive fast on the 280 between San Mateo and Sand Hill Road. The one that sees you doing the rocker salute and hair-wave when the kids are out. The one that makes do those 10 extra reps at the gym.

    I thought Motorhead and AC/DC could soothe the beast.

    No hope.

    Out comes Kill ‘Em All.

    Now, all I need is a very fast car.

    Technorati Tags: , , ,

  • Staples: Fisher Space Pen for Cheap

    Wandered into the neighbourhood Staples today for an office-supply fix — didn’t buy anything, just like the smell of paper and ink.
    Down the pen aisle, I found a Fisher Space Pen.
    For $15.99.
    This is about $15 cheaper than anywhere else I have seen.
    Now, when they start selling Moleskines or Rite in the Rain, I will be impressed.

  • Massachusetts: And people live here because…?

    It’s just about noon and the temperature is racing towards 95F.

    The humidity is high enough that the dog went for a swim, not a walk this morning.

    The atmosphere is currently: 80% Nitrogen, 19% Pollution, and 1% Oxygen.

    I am trying to imagine why so many people want to live here.

    Technorati Tags: , , , ,

  • New Pen Lust: UniBall Power Tank

    I got the UniBall Power Tank in Golden, and it has replaced all of my other pens. A gel pen with a pressurized tank, it lives up to its reputation to write anywhere and on anything.

    Effectively, it is a $2.95 Fisher Space Pen. And how can that be wrong?

  • Canada: Community Recreation Centres — Another Reason Canada is Better

    In Canada, the norm is to have a community recreation centre, usually with a pool, an arena and a curling rink.

    In the parts of the US where we have lived, community pools are almost unheard of. Private fitness clubs are the only places with pools, other than private homes.

    This explains why my seven year-old still can’t swim.

    While in Victoria, we have been able to enjoy

    All of these locations have VERY reasonably priced swim sessions, as well as public lessons and swim teams.

    And in Massachusetts and California? Well, I think that if you are privileged enough to live in Sudbury, MA or Palo Alto, CA, you might have access to a public pool.

    Oh yeah, how’s that Protestant Work Ethic thing working out for you?

    Technorati Tags: , , , ,

  • Canada: Mother

    I visited my mother on this trip to Canada.

    To some, this would seem like a natural. However, my relationship with my mother has been strained over the years for a number of reason which I won’t get into here.

    I was glad that my youngest brother and his family were there as well, or I would have cut and run a lot sooner than we did. This trip reminded me that my brothers are my family, despite the feelings I may have for (or against) my mother.

    It’s always your relationship with your parents that make life interesting. They shape you, twist you, bend you, and sometimes break you. For me, the goal has been to try and escape the orbit my mother’s gravity pulls me toward. I see a lot of her in myself, and it scares the hell out of me. I know that I have to work hard to try and be my own person; but the baggage of my upbringing and genetics makes it a hard slog sometimes.

    Seeing her reminded me that I have to continue to work, struggle against the pull, escape the potential disaster.