News for hackers. Stuff that matters.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by Sam_Odio on Tuesday April 24, 2007 @04:00PM (#16432)
Want an example of "simple but less reliable"? Here's one (in one or two easy steps): 1. All updates go in to memcached, but not the database 2. (optional) A background process occasionally copies entries from memcached to the db. Without this, the values will be completely lost when memcached restarts.

Paul - here's an interesting take on your recommended solution: Use solid state ram and forget about step two. You get fast a read/write, without the risk of data loss if the machine restarts.

Here's a pretty cool board that will take DDR SDRAM, and supply it with a constant source of power (imitating solid-state memory): http://techreport.com/reviews/2006q1/gigabyte-iram/index.x?pg=1

Those who insist on a database, could even store the database on this board. Best of both worlds.

Here's an insane graph showing the database transaction rate for the board vs. a conventional hard drive: http://techreport.com/reviews/2006q1/gigabyte-iram/index.x?pg=7

Re:Paul Buchheit: The secret to making things easy: avoid ha... by aristus on Tuesday April 24, 2007 @04:15PM (#16436)
Solid-state drives greater than 128GB are in OEM testing now. Expect server economics to turn upside-down in about 12 months, when persistent storage seek times get 100X faster.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by paul on Tuesday April 24, 2007 @07:43PM (#16475)
Yeah, solid-state storage is clearly the future for most apps. Flash is over 10x cheaper than DRAM though, so it'd be nice to see some high-performance flash drives as well. It's also nice to not have to worry about losing data during a prolonged power outage.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by aristus on Tuesday April 24, 2007 @10:08PM (#16515)
No need to wait, really. Addonics' SATA/CF adapters for your $80/8GB flash cards cost $35. Even cheap compact flash does random seeks 40x faster than platters. Throughput is a little slow but what the hell, for 115 bucks? If I were building a server farm right now I'd try those things out.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by mattculbreth on Tuesday April 24, 2007 @10:31PM (#16523)
This is a cool thread.

So please spec out a couple servers for us. How would you get a bunch of memory (32GB, 64GB even) into one of them and still have it be a good web/app server?

Re:Paul Buchheit: The secret to making things easy: avoid ha... by aristus on Wednesday April 25, 2007 @12:35AM (#16551)
My current favorite is the Altus 600 from Penguin Computing. Cheap chassis with dual sockets and 16 RAM slots. More slots means cheaper chips. 2GB chips for that board are about 300 bucks. Throw two 2.2GHz Opterons and 2x 300GB drives in there. Add an SATA controller card, 4 SATA/CF adapters and CF cards (in the CD-ROM bay), and you've got a nice machine: 1U, dual processors, 32GB of RAM, 600GB of platter, 32GB of flash for about USD$7500.

Expensive, yeah. 5 grand of that is RAM. You could get away with 4GB of RAM and still have a fucking fast web/app server as long as your active dataset fits on the flash.

Re:Paul Buchheit: The secret to making things easy: avoid ha... by paul on Wednesday April 25, 2007 @01:18AM (#16560)
$215: http://www.newegg.com/Product/Product.asp?Item=N82E168201343...

Brings the memory cost down to around $3440.

Re:Paul Buchheit: The secret to making things easy: avoid ha... by aristus on Wednesday April 25, 2007 @08:43AM (#16613)
Wrong speed but yeah, that's the ballpark. I used Crucial to price the RAM.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by cameldrv on Friday April 27, 2007 @01:52AM (#17323)
The problem is that not many people benchmark the write access time for flash. It's pretty bad, often 50ms+. There is a product I know of, the Zeus IOPS, which gets extremely fast write speeds to flash. Unfortunately it costs about $250/GB. For that price, you can get a RAM based solution, which is even faster. Ones like http://www.hyperossystems.co.uk/ can come with a battery backup and a hard drive that it will dump to and restore from if the power goes out. Price is about $220/GB. The prices sound high, but if you're trying to scale a database, it can potentially solve an otherwise intractable problem without any software changes.
Re:Paul Buchheit: The secret to making things easy: avoid ha... by ntoshev on Wednesday April 25, 2007 @02:04AM (#16569)
Does SATA / CF have any advantage over a pack of USB drives?

I am not sure what out-of-the-box solution can you use to read/write packs of flash memory in parallel, but I'm pretty sure there exists something (you could do it on the application level as well).

Edit: USB RAID-0 array benchmarks here:

http://arstechnica.com/reviews/hardware/flash.ars/8

http://www.bigbruin.com/reviews05/thumbraid_5

Re:Paul Buchheit: The secret to making things easy: avoid ha... by aristus on Wednesday April 25, 2007 @11:13AM (#16655)
The advantage is that you're not going through the USB bus. The spec says 480Mbit but in real life it's much much lower. Does your rackmount server have quality USB2.0 (heh) or the cheapest 1.1 crap the manufacturer can find (likely)?

On the other hand I don't have hard numbers, just some bonnie tests on random flash sticks I had lying around. Check out the newer USB sticks that are "Readyboost Ready", such as Corsair. They might be quick enough.

Re:Paul Buchheit: The secret to making things easy: avoid ha... by paul on Wednesday April 25, 2007 @01:27AM (#16561)
It's too bad that the transfer rate is so low. It should be pretty simple to build a very fast device which spreads the blocks across a large number of flash cards. I suppose you could do a raid array of addonics adapters, but it's unclear how that would perform (and it might be a mess dealing with a large number of them).
Re:Paul Buchheit: The secret to making things easy: avoid ha... by Sam_Odio on Wednesday April 25, 2007 @08:49AM (#16616)
For many database applications, I don't think the transfer rate matters that much.

Regardless, the DDR-ram solid state solutions have faster transfer rates than a 4 drive raid0. The only drawback is that they cost about $100 per GB.

Oh, and the onboard battery will only let you unplug your machine for 8hrs. After that, the state is lost.

Re:Paul Buchheit: The secret to making things easy: avoid ha... by nostrademons on Wednesday April 25, 2007 @05:48PM (#16807)
There's also the i-RAM ( http://techreport.com/reviews/2006q1/gigabyte-iram/index.x?pg=1 ), a battery-backed RAM disk. My employer uses it for an app where disks simply couldn't deliver the latency we needed, and yet it had to be fault tolerant enough to survive a power failure.

Edit: wow, totally did not see Sam_odio's original post, linking to exactly the same product. Oops. And yCombinator doesn't allow us to delete comments...