Slashdot Mirror


Slashdot's Setup, Part 1- Hardware

As part of our 10-Year anniversary coverage, we intend to update our insanely dated FAQ entry that describes our system setup. Today is Part 1 where we talk mostly about the hardware that powers Slashdot. Next week we'll run Part 2 where we'll talk mostly about Software. Read on to learn about our routers, our databases, our webservers and more. And as a reminder, don't forget to bid on our charity auction for the EFF and if you are in Ann Arbor, our anniversary party is tomorrow night.

CT:Most of the following was written by Uriah Welcome, famed sysadmin extraordinaire, responsible for our corporate intertubes. He Writes...

Many of you have asked about the infrastructure that supports your favorite time sink... err news site. The question even reached the top ten questions to ask CmdrTaco. So I've been asked to share our secrets on how we keep the site up and running, as well as a look towards the future of Slashdot's infrastructure. Please keep in mind that this infrastructure not only runs Slashdot, but also all the other sites owned by SourceForge, Inc.: SourceForge.net, Thinkgeek.com, Freshmeat.net, Linux.com, Newsforge.com, et al.

Well, let's begin with the most boring and basic details. We're hosted at a Savvis data center in the Bay Area. Our data center is pretty much like every other one. Raised floors, UPSs, giant diesel generators, 24x7 security, man traps, the works. Really, once you've seen one class A data center, you've seen them all. (CT: I've still never seen one. And they won't let us take pictures. Boo savvis.)

Next, our bandwidth and network. We currently have two Active-Active Gigabit uplinks; again nothing unique here, no crazy routing, just symmetric, equal cost uplinks. The uplinks terminate in our cage at a pair of Cisco 7301s that we use as our gateway/border routers. We do some basic filtering here, but nothing too outrageous; we tier our filtering to try to spread the load. From the border routers, the bits hit our core switches/routers, a pair of Foundry BigIron 8000s. They have been our workhorses throughout the years. The BigIron 8000s have been in production since we built this data center in 2002 and actually, having just looked at it... haven't been rebooted since. These guys used to be our border routers, but alas... their CPUs just weren't up to the task after all these years and growth. Many machines plug directly into these core switches, however for certain self contained racks we branch off to Foundry FastIron 9604s. They are basically switches and do nothing but save us ports on the cores.

Now onto the meat: the actual systems. We've gone through many vendors over the years. Some good, some...not so much. We've had our share of problems with everyone. Currently in production we have the following: HP, Dell, IBM, Rackable, and I kid you not, VA Linux Systems. Since this article is about Slashdot, I'll stick to their hardware. The first hop on the way to Slashdot is the load balancing firewalls, which are a pair of Rackable Systems 1Us; P4 Xeon 2.66Gz, 2G RAM, 2x80GB IDE, running CentOS and LVS. These guys distribute the traffic to the next hop, which are the web servers.

Slashdot currently has 16 web servers all of which are running Red Hat 9. Two serve static content: javascript, images, and the front page for non logged-in users. Four serve the front page to logged in users. And the remaining ten handle comment pages. All web servers are Rackable 1U servers with 2 Xeon 2.66Ghz processors, 2GB of RAM, and 2x80GB IDE hard drives. The web servers all NFS mount the NFS server, which is a Rackable 2U with 2 Xeon 2.4Ghz processors, 2GB of RAM, and 4x36GB 15K RPM SCSI drives. (CT: Just as a note, we frequently shuffle these 16 servers from one task to another to handle changes in load or performance. Next week's software story will explain in much more detail exactly what we do with those machines. Also as a note- the NFS is read-only, which was really the only safe way to use NFS around 1999 when we started doing it this way.)

Besides the 16 web servers, we have 7 databases. They currently are all running CentOS 4. They breakdown as follows: 2 Dual Opteron 270's with 16GB RAM, 4x36GB 15K RPM SCSI Drives These are doing multiple-master replication, with one acting as Slashdot's single write-only DB, and the other acting as a reader. We have the ability to swap their functions dynamically at any time, providing an acceptable level of failover.

2 Dual Opteron 270's with 8GB RAM, 4x36GB 15K RPM SCSI Drives These are Slashdot's reader DBs. Each derives data from a specific master database (listed above). The idea is that we can add more reader databases as we need to scale. These boxes are barely a year old now — and still are plenty fast for our needs.

Lastly, we have 3 Quad P3 Xeon 700Mhz with 4GB RAM, 8x36GB 10K RPM SCSI Drives which are sort of our miscellaneous 'other' boxes. They are used to host our accesslog writer, an accesslog reader, and Slashdot's search database. We need this much for accesslogs because moderation and stats require a lot of CPU time for computation.

And that is basically it, in a nutshell. There isn't anything too terribly crazy about the infrastructure. We like to keep things as simple as possible. This design is also very similar to what all the other SourceForge, Inc. sites use, and has proved to scale quite well.

CT: Thanks to Uriah and Chris Brown for the report. Now if only we remember to update the FAQ entry...

22 of 273 comments (clear)

  1. Windows? by mseidl · · Score: 4, Funny

    I'm like sooooooooo surprised you guys aren't running nt4 boxes. IIS was this sh!t back in the day

    1. Re:Windows? by QBasicer · · Score: 5, Funny

      Do you know how many people would be heartbroken if they found out Slashdot was run off windows?

      --
      x86, oh yes, I'm pro.
    2. Re:Windows? by ObsessiveMathsFreak · · Score: 4, Funny

      Not as many people who were traumatized to hear that Slashdot is run on a Dell.

      --
      May the Maths Be with you!
  2. Savvis by garethwi · · Score: 5, Funny

    Nice to see you're hosted by a Microsoft Gold Partner. That's a benchmark of quality.

  3. Redhat 9 by Anonymous Coward · · Score: 5, Funny

    Tell me that's a hilarious joke...

    1. Re:Redhat 9 by eln · · Score: 1, Funny

      I wouldn't use it for a production system because it was end-of-lifed like 3 years ago and is therefore completely unsupported. I don't think I'd want to run a website that (presumably) generates quite a bit of revenue on ancient unsupported software.

    2. Re:Redhat 9 by Shakrai · · Score: 5, Funny

      Rule #1 of a mission-critical application is "if it ain't broke, don't fix it."

      Slashdot is mission-critical? That's what I'll tell my boss the next time he asks why I'm spending so much time on it ;)

      Kidding aside though, I'm rather fond of the old joke that I found in 'fortune -o'. "Working computer hardware is a lot like an erect penis. It stays up as long as you don't fuck with it."

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
  4. Can I...? by Kranfer · · Score: 1, Funny

    can I play on that awesome hardware? Or perhaps run SETI on it and make it a huge waste of processing power? oh oh, please please!!!

    --
    -- Josh
    "Whoopie! Man, that may have been a small one for Neil, but that's a long one for me!" - Pete Conrad
  5. Write-only database? by jolyonr · · Score: 4, Funny

    That sounds useful! I use /dev/null as a write-only database. Very efficient.

    Jolyon

    --


    Please read my Canon EOS tech blog at http://www.everyothershot.com
    1. Re:Write-only database? by Anonymous Coward · · Score: 1, Funny

      But if it's truely ready-only, how to you propagate the data written out to the read-only nodes?

    2. Re:Write-only database? by cbiltcliffe · · Score: 3, Funny

      Magic.

      --
      "City hall" in German is "Rathaus" Kinda explains a few things......
  6. Finally some adult stories by Jack+Malmostoso · · Score: 5, Funny

    Oh yes, geek pornography finally appears on /. :)
    Thanks for the report, looking forward to the software part!

  7. Re:the powers that be by the_tsi · · Score: 5, Funny

    Only the bad guys have red LCDs. That's how you tell them apart from the good guys, who always have blue or green. ... or purple, I guess, if you're a bad ass motherfucker.

  8. I want my sense of childlike wonder back! by foo+fighter · · Score: 4, Funny

    I always imagined slashdot ran on hundreds (perhaps thousands) of modded Dreamcast consoles powered by lucky, randomly selected registered users running in hamster wheels who were lured by blocks of Wisconsin cheese dangling just out of reach.

    Thanks for destroying my sense of childlike wonder, you insensitive clods!

    --
    obviously no deficiencies vs. no obvious deficiencies
    1. Re:I want my sense of childlike wonder back! by An+ominous+Cow+art · · Score: 3, Funny

      I always imagined slashdot ran on hundreds (perhaps thousands) of modded Dreamcast consoles Are you seriously saying that you imagined a Beowulf Cluster of them?
  9. read the entire series by clem · · Score: 5, Funny

    I can't wait for "Slashdot's Setup, Part 8 - Root Passwords".

    --
    Your courageous and selfless spelling corrections have made me a better person.
    1. Re:read the entire series by Anonymous Coward · · Score: 1, Funny

      Webservers: Yur@wank3r

      DB servers: G3tfuk3D1

      Routers: CwByN34Lr00lz!

    2. Re:read the entire series by moosesocks · · Score: 3, Funny

      I have this funny vision of what would happen if /. got hacked, and how it would have been done:

      The admins would wake up the next day to discover that the site was running perfectly normally, but was performing slightly faster than normal.

      After closer inspection, they'd find that their datacenter had been emptied, and replaced by a single Apple ][ that had been hacked to run the latest version of Ubuntu, and that slashcode had been rewritten so that it would perform all of the same functions as the previous slashcode, but ran at twice the speed... on the Apple ][.

      A post-it would be found stuck to the screen, stating that all of slashdot's old and now unnecessary hardware had been sold, with the proceeds being donated to the EFF. The message would likely include or be in the form of a Soviet Russia joke. Additionally, a miniaturized plastic Gnu would be left behind as a calling-card.

      The news of this would be regarded as insignificant by the editors, until over a year later, it gets posted four times in the span of two days.

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
  10. Re:Interesting by avronius · · Score: 5, Funny

    best thrustworthy news site I do not think that word means what you think it means...
  11. Artistic solution... by Anonymous Coward · · Score: 2, Funny

    "Really, once you've seen one class A data center, you've seen them all. (CT: I've still never seen one. And they won't let us take pictures. Boo savvis.)"

    Send in a courtroom artist :-)

  12. Re:You probably shouldn't tell us too much informa by Precision · · Score: 4, Funny

    Lemme know how that works out for you, considering they're doing layer 2 only and don't have an IP address.

    --
    - U
  13. Re:Interesting by Provocateur · · Score: 2, Funny

    Yes but did you see where all this hardware is wired to a Palm Pilot??

    The Palm, so the legend goes, provides the necessary horsepower for the few that actually do read TFA's.

    --
    WARNING: Smartphones have side effects--most of them undocumented.