Popfly - now using Cacheman

John beat me to the post. Popfly is now running on top of Cacheman and we're seeing anywhere between a 2x-6x perf improvement depending on the mashup you're running. This is also the first time Cacheman has been put to real production usage and so far, it has been handling all of Popfly's traffic without breaking a sweat.

This has to be the first time one of my pet projects has proven remotely useful so I'm pretty pleased :-)

 

Slicehost

I spent a lot of my weekend moving my website from Dreamhost to Slicehost. Slicehost is a VPS provider with a platform based on Xen. This was not really due to any problem with Dreamhost (they're really good and I would recommend them instantly) but more due to how good Slicehost was. In fact, I have to say that Slicehost, at this early stage, is by far the best host I've worked with.

Shared hosts vs Virtual Private Servers vs dedicated servers

A quick primer on shared hosts vs VPS vs dedicated servers (most of you can probably skip this section - but you'll be surprised how many people confuse these).

A shared host, like the name implies, means that you get a machine that is shared. Your website will run on the same box as several other websites with some security ACLs in place to make sure you don't trample over someone else's files. Depending on the host, your access to the machine might range from just FTPing files over to a shell account where you can log in and run programs yourself. However, you'll never have root/administrator access to the box and you'll usually need to go through cPanel/some-really-ugly administrative control panel to request changes to your configuration or setting up new software. However, these security settings can't really protect against other type of bad behavior from individual websites. For example, if your website happens to be on the same machine as another website undergoing a Digg/Slashdot-effect, your performance will be affected as there is no real effective throttling mechanism. Most shared hosts will either kill the website hogging resources or perform some manual magic, like moving it to a different box.

A dedicated server is the other end of the spectrum - you get a full machine to yourself. Depending on which company you work and/or how much money you pay, this might be from a low-end provider or in a colo facility or in a big datacenter along with thousands of other boxes. You don't share the machine with anyone and you can party on it to your heart's content. However, since these require a 1:1 mapping between customer and hardware box, they're typically expensive.

A VPS falls in the middle. They offer you most of the benefits of dedicated servers (full root access on the box) without the 'bad-neighbour' problems of shared hosts. They tackle the latter problem by using some form of virtualization and use a hypervisor or a virtual machine to act as a sandbox and throttle resources. In Slicehost's case, they use Xen. In the screenshot below from my slice, you can see the custom Xen kernel in action as well as the 256mb limit imposed on my slice though the actual underlying hardware probably supports multiple GBs.

image

Some random notes


 

Running Ubuntu on Windows Server 2008 Hyper-V

I'm hoping this post saves people the trouble I had with getting Ubuntu 7.10 to boot on Win2k8 Hyper-V.

If you're trying to install Ubuntu 7.10 (either server or desktop) on a VT-enabled machine, you'll be probably get stuck at the "Loading..." screen. If you're interested in the gory details, check out this bug - the issue seems to be around emulation of real mode instructions and the graphics instructions that ISOLinux uses to boot.

The fix is simple - get the patch from this thread and patch your ISO images (the patch makes a small change to your isolinux.cfg.

Ubuntu is now purring away happily on my Win2k8 box :-)

 

Cacheman update (0.0.2)

I've just put out a new Cacheman release (0.0.2 for those of you keeping count). You can get the bits from the link at the bottom of http://www.sriramkrishnan.com/blog/2008/02/cacheman-fast-distributed-hashtable-for.html (which will always point to the latest release).

There are no new features in this release but a *ton* of bug fixes. I had fun stomping out several race conditions that had crept into the code. I've also tested it on a bunch of diverse environments (single-core and multi-core, x86 and x64, Windows XP/Vista and Windows Server 2003/2008) so you shouldn't see some of the OS specific issues that were present in the last release.

I would like to thank Ayende for taking the trouble to find and report a lot of the bugs in the last release. Thanks Ayende!

Archives

November 2004   January 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006   January 2007   February 2007   March 2007   April 2007   May 2007   June 2007   July 2007   August 2007   September 2007   October 2007   December 2007   January 2008   February 2008   March 2008   April 2008