Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Ok, maybe that was it? Bottlenecks! They just keep moving.

Posted on 10/05/2004 9:24:10 PM PDT by John Robinson

It's always something new with a complex system. We have frontends, backends and databases, not to mention ancillary services like DNS, mail, and internal gadgets. Something is bound to goober up.

A few months ago we were hitting the limits of our database environment. I added hardware and all was good... well, too good. The backends couldn't keep up, so I added hardware (just this weekend!), and all was good... until tonight, when things were once again too good. This time the frontend went on strike, overwhelmed.

A few years ago, when last looking at the scalability of our site, we made a choice, to save bandwidth, we spend extra CPU cycles to compress server responses. We achieve roughly a 60% savings.

Unfortunately, that takes a dear toll on our two little 933 MHz CPUs running the frontend. That toll looks something like this:

<code type="unix geek">

  8:15pm  up 2 days, 14:48, 11 users,  load average: 214.69, 160.02, 84.25
317 processes: 306 sleeping, 10 running, 1 zombie, 0 stopped
CPU0 states: 12.1% user, 69.0% system,  0.0% nice, 18.0% idle
CPU1 states: 12.0% user, 63.0% system,  0.0% nice, 24.0% idle
Mem:  2064712K av, 2050876K used,   13836K free,       0K shrd,   46816K buff
Swap: 2040244K av,   22900K used, 2017344K free                  223376K cached
</code>

Translation:

So... I added more hardware! That explains the second IP address (209.157.64.201, the first is 209.157.64.200.) In a few days your ISPs will have our updated DNS, and will automagically select one of the two frontends when you visit www.freerepublic.com.

The new frontend is a dual 1.4 GHz whopper. It along with it's older partner will have no trouble slinging compressed pages now, and saving roughly 2 grand a month. Oh, and when I said I added more hardware, well, I actually reassigned an older backend to frontend duty. I thought I may have to rearrange machines while I tune the system, so I made it easy ((cough)) to do.

We're running fine now. The peak load I saw was 130 requests per second. I figure we were probably doing 160-180 per second during the debate. No way to know for sure, the fire burned up our logs.

As for the new hardware, I know many people have been asking about it, and how the install went last weekend. I just haven't yet had the time to write what I wanted to write.

In summary, we added three Dell ((cough)) PowerEdge 1750 servers each with dual 2.8 GHz Intel Xeon processors and 1 Gigabyte of RAM. I was really impressed with the Dell machines out of the box, they're mean looking boxes and have more features than the barebones Supermicro kits I used before. Of course, the rails were too short for my rack and there was no table space to lay them. What else can a guy do but rebuild a rack on a Saturday night/Sunday morning? Ah, but that's for another story to tell.


TOPICS: Announcements; Technical
KEYWORDS: faq; techindex
Navigation: use the links below to view more comments.
first 1-5051-79 next last

1 posted on 10/05/2004 9:24:11 PM PDT by John Robinson
[ Post Reply | Private Reply | View Replies]

To: John Robinson

Did you try logging on?


2 posted on 10/05/2004 9:25:15 PM PDT by Drango (NPR-When government funds a "news" outlet that has a bias...it's no longer news...it's propaganda.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

ok...anyone speak nerd, I have no idea what he said and I am somewhat of an amateur techie...


3 posted on 10/05/2004 9:26:15 PM PDT by Keith (JOHN KERRY...IN VIOLATION OF ARTICLE III SECTION 3 OF THE US CONSTITUTION)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Just don't cut the tag off the mattress. :)


4 posted on 10/05/2004 9:27:04 PM PDT by ClintonBeGone (Take the first step in the war on terror - defeat John Kerry)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Keith

One of our FR boxes melted, he replaced it, the site will be working better now.


5 posted on 10/05/2004 9:28:43 PM PDT by mattdono ("Crush the democrats, drive them before you, and hear the lamentations of the scumbags" -Big Arnie)
[ Post Reply | Private Reply | To 3 | View Replies]

To: John Robinson

Al Gore would be proud!


6 posted on 10/05/2004 9:28:44 PM PDT by Dallas59 (I'm a "Scumbag" who has been "Intimidating" the Press since 2003!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

I had the same problem before I bought a new computer.

I could actually hear the gears grinding. The synchromesh thingie was shot.

The new computer has an automatic transmission. It's easier for me to keep my eyes on the screen.


7 posted on 10/05/2004 9:28:47 PM PDT by Pete'sWife (Dirt is for racing... asphalt is for getting there.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Keith

Hey, If you've got to ask you don't need to know


8 posted on 10/05/2004 9:29:29 PM PDT by hatfieldmccoy (Satan has a new name and it is Islam)
[ Post Reply | Private Reply | To 3 | View Replies]

To: John Robinson

So what you're saying is, if things go any better there's going to be a small thermonuclear explosion?


9 posted on 10/05/2004 9:30:39 PM PDT by John Jorsett (Kerry-Edwards: FORGING AHEAD)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Now that's what I was trying to say. Even thought the system is new it broke down and took a little while to figure out why and how to fix it. LOL


10 posted on 10/05/2004 9:30:41 PM PDT by Jim Robinson
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

I appreciate the alternate server. It is weird, but working fine. Thanks.


11 posted on 10/05/2004 9:31:51 PM PDT by Jet Jaguar (Who would the terrorists vote for?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Frontend, backend....... this sounds too much like my dad's birds and the bees speech.


12 posted on 10/05/2004 9:32:08 PM PDT by bad company (Global test? Damn I forgot to study.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

LOL, I got it with the picture of the thingy burning.


13 posted on 10/05/2004 9:32:13 PM PDT by Bahbah (Proud member of the pajamahadeen)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Dammit,tired of excuses,lets' fix it,make things happen;)


14 posted on 10/05/2004 9:32:58 PM PDT by mdittmar (May God watch over those who serve to keep us free.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Jorsett

Just a small one.


15 posted on 10/05/2004 9:34:01 PM PDT by John Robinson
[ Post Reply | Private Reply | To 9 | View Replies]

To: John Robinson

it is to support upgrades (even in the middle of a cpu fire) that I choose to be a modest monthly contributor.

It's just the right thing to do!

Thanks for the update, and the upgrade... Not having my primary news source for any period of time is hard, but with the upgrades, I know that the downtime was only temporary!


16 posted on 10/05/2004 9:34:13 PM PDT by pop-aye (For every journey, there is a higher path.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
. . . we added three Dell ((cough)) PowerEdge 1750 servers each with dual 2.8 GHz Intel Xeon processors and 1 Gigabyte of RAM.

Oh, YES!!! I'm impressed. Definitely. Good job! :-)

17 posted on 10/05/2004 9:34:51 PM PDT by LibWhacker
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Ya done good and Thanks for all your efforts!!!


Looking forward to the next 2 debates and election night and smooth sailing at FR.


18 posted on 10/05/2004 9:35:36 PM PDT by NormsRevenge (Semper Fi ...... The War on Terrorism is the ultimate 'faith-based' initiative.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
306 sleeping, 10 running, 1 zombie,

Two of those would be describing ME! LOL!!

THANKS for the work you're doing to keep us up & running!!!

19 posted on 10/05/2004 9:36:28 PM PDT by Brad's Gramma ($1 a month/each Freeper/Tick off the libs/End the Freepathons/$1 a month/each Freeper/Tick off the l)
[ Post Reply | Private Reply | To 1 | View Replies]

To: pop-aye

Yes, there is some tuning left to do. Tonight was one of the more painful tune-ups. I'm going to try to overwhelm the server tonight, see if I can't knock out any more bugs. I'd have gotten to this bug hunt sooner, but I really wanted to catchup on my Z's. ;-)


20 posted on 10/05/2004 9:36:38 PM PDT by John Robinson
[ Post Reply | Private Reply | To 16 | View Replies]

To: John Robinson
We run on PFM

Pure F'n Magic!!!

Becki

21 posted on 10/05/2004 9:36:48 PM PDT by Becki (Pray continually for our leaders and our troops.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Keith
Well, suffice it to say, those are some busy servers! Here's what my computer's top readout looks like for comparison:

top - 00:32:31 up 53 min, 1 user, load average: 0.50, 0.21, 0.07
Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.7% us, 0.3% sy, 0.0% ni, 93.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 507040k total, 229372k used, 277668k free, 8616k buffers
Swap: 987956k total, 0k used, 987956k free, 156392k cached


Small wonder the FR servers were smoking...
22 posted on 10/05/2004 9:38:06 PM PDT by Ex-Dem (http://www.bugmenot.com <-- bypass those registration forms on news websites)
[ Post Reply | Private Reply | To 3 | View Replies]

To: John Robinson
Pretty good load on that box! Our load wasn't nearly that high and we replaced it with this (with dual Opteron 246s) - it'll arrive on Friday. Can't wait... We've been running Mandrake 8.1 for a couple of years and are switching to SUSE.
23 posted on 10/05/2004 9:40:11 PM PDT by scripter (Thousands have left the homosexual lifestyle)
[ Post Reply | Private Reply | To 1 | View Replies]

To: LibWhacker
I'm unhappy the consumer brand Pentiums are no longer SMP capable. They were always good for a cheap dual box. These servers weren't bad though, around $2,000 a pop. Wish they had more memory, though. Memcached is hungry.
24 posted on 10/05/2004 9:41:03 PM PDT by John Robinson
[ Post Reply | Private Reply | To 17 | View Replies]

To: hatfieldmccoy

fair nough...

<crawls back into his hole thoroughly Cheney-spanked...hehe.


25 posted on 10/05/2004 9:42:18 PM PDT by Keith (JOHN KERRY...IN VIOLATION OF ARTICLE III SECTION 3 OF THE US CONSTITUTION)
[ Post Reply | Private Reply | To 8 | View Replies]

To: John Robinson

John, you are a cool dude. Keep it up.


26 posted on 10/05/2004 9:42:23 PM PDT by old-ager
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

I never understand this computer lingo. Are we supposed to bookmark one or the other? I am so confused!


27 posted on 10/05/2004 9:43:52 PM PDT by ladyinred ("John Kerry reporting for spitball and typewriter duty.")
[ Post Reply | Private Reply | To 1 | View Replies]

To: Keith

Ignor that one hardnose poster -

I didn't understand much of it either but I'm glad he(the operator) knows what it is that needs doing when things go wrong - this site is great and it would be a big blow if we lost it, in my opinion -

just my thoughts - take care now -


28 posted on 10/05/2004 9:48:35 PM PDT by Pastnowfuturealpha
[ Post Reply | Private Reply | To 3 | View Replies]

To: scripter

That looks fun. I have no experience with AMD but have been meaning to give them a try.


29 posted on 10/05/2004 9:48:46 PM PDT by John Robinson
[ Post Reply | Private Reply | To 23 | View Replies]

To: John Robinson

Nice Try John, but we all know it was Bush's fault.

Look for Brokejaw to report this tomorrow as another example of Political Jihadery..

On a lighter note. Thanks for all you do in the background to let us, the Pajamahadeen take serious advantage of your skills in getting this site to keep running.

Keep up the great work, and I appreciate you letting us make this a part of our home as well.

Regards,
Joe


30 posted on 10/05/2004 9:49:07 PM PDT by Sonar5 ("Global Test" - 2004 = "I'm an Internationalist" - 1970)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ladyinred

Don't touch that dial!


31 posted on 10/05/2004 9:49:44 PM PDT by John Robinson
[ Post Reply | Private Reply | To 27 | View Replies]

To: Pete'sWife
I bought a new computer. I could actually hear the gears grinding. The synchromesh thingie was shot.

You should take it to one of those shops with the sign:
Computer Spin Balancing

Take your computer in there and have it spin-balanced. That'll take care of the noise.

32 posted on 10/05/2004 9:50:46 PM PDT by Izzy Dunne (Hello, I'm a TAGLINE virus. Please help me spread by copying me into YOUR tag line.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: John Robinson

While we're all speaking techie here, I've been dying to ask you what your database backend is. I assumed it was Oracle. I'm guessing it wouldn't be MS SQL Server for the load. How big is your database?

I'm an experienced & certified Sybase DBA, also working a little with Oracle and Microsoft SQL Server (the latter being the same as Sybase at one time). Hence the curiosity about your database.


33 posted on 10/05/2004 9:51:37 PM PDT by plushaye (President Bush - Four more years! Thanks Swifties.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

We considered the Apple G5 with duals (on FreeBSD) as well, just too much money, and Dell was another $900 or so, wo we went with the Opteron's (just over $3500) with a terabyte of data. If high tech picks up we'll need a number of 'em.


34 posted on 10/05/2004 9:57:18 PM PDT by scripter (Thousands have left the homosexual lifestyle)
[ Post Reply | Private Reply | To 29 | View Replies]

To: John Robinson

I have no idea what you said but the flaming icon gives me some idea. And I could log into Free Republic tonight when 4 years ago I had trouble getting in on a busy night so I'm happy!


35 posted on 10/05/2004 10:00:27 PM PDT by DJ MacWoW (Save a Democrat! Vote Republican!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

(three Dell ((cough)) PowerEdge 1750 servers each with dual 2.8 GHz Intel Xeon processors and 1 Gigabyte of RAM.)

Damn If I had that much computing power......oh I'd probably waste it playing 3D shooters and downloading .....nevermind.


36 posted on 10/05/2004 10:01:31 PM PDT by edchambers (Where are we going and why am I in this hand-basket?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
I have no experience with AMD but have been meaning to give them a try.

My Hubby and our son, Darksheare, love AMD. Hubby won't buy anything else. I know nothing about computers but I "know" AMD. I hear it all the time. LOL!!!

37 posted on 10/05/2004 10:03:03 PM PDT by DJ MacWoW (Save a Democrat! Vote Republican!)
[ Post Reply | Private Reply | To 29 | View Replies]

To: John Robinson
I am too dumb on the technical side to understand anything you said, other than the general concept. But the meaning of that is clear. You worked as hard and efficiently as possible, to serve the crunch needs of people who poured their hearts out on FR tonight.

That much I understand, and congratulations and thank you.

Congressman Billybob

Latest column, "And the Debate Winner is -- Lemony Snicket"

If you haven't already joined the anti-CFR effort, please click here.

38 posted on 10/05/2004 10:03:06 PM PDT by Congressman Billybob (Visit: www.ArmorforCongress.com please.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson
Wow, $2,000 for a dual fire-breathing Xenon server . . . Not bad at all, John!!! Never heard of memcached. That was a cool link, thanks, and I enjoyed reading about it. Man, this technology is moving like crazy. Can't keep up, lol! I'm glad you're keeping up, though. :-)

Really, really good job!

39 posted on 10/05/2004 10:05:06 PM PDT by LibWhacker
[ Post Reply | Private Reply | To 24 | View Replies]

To: John Robinson
John -

Do you have time to post your complete hardware configuration in terms of front-end, back-end, database, etc. servers, memory, disk, and bandwidth? (I probably have enough hardware to replicate the site, but assume that I suffer on bandwidth)

Also - is your setup something that might lend itself to a backup site - i.e. is there a way to keep the database in sync between two different sites?

-tb
40 posted on 10/05/2004 10:13:05 PM PDT by tahoeblue
[ Post Reply | Private Reply | To 31 | View Replies]

To: John Robinson

I have no clue of what you just said .. but thank you for getting us back up and running


41 posted on 10/05/2004 10:13:44 PM PDT by Mo1 (Edwards blinks more than a "vacancy" sign on a cheap motel)
[ Post Reply | Private Reply | To 1 | View Replies]

To: plushaye

MySQL, it's been good to us and has a choice of storage engines each with different features. We're using the MyISAM storage engine for everything right now, but it's starting to show signs of contention (MyISAM is really good at heavy writing or heavy reading, but not both) so I'll probably start migrating some tables to InnoDB which handles contention better (and does transactions too.)


42 posted on 10/05/2004 10:15:31 PM PDT by John Robinson
[ Post Reply | Private Reply | To 33 | View Replies]

To: plushaye

Oh, the DB is around 30 GB, with another 7 GB of compressed archives which are flat files (actually just HTML.) Those are the older /forum/ URLs you might see from time to time. 2001 and earlier.


43 posted on 10/05/2004 10:17:22 PM PDT by John Robinson
[ Post Reply | Private Reply | To 33 | View Replies]

To: John Robinson

Lets have another fund raiser.........last one was too fast !


44 posted on 10/05/2004 10:19:03 PM PDT by Squantos (Be polite. Be professional. But, have a plan to kill everyone you meet. ©)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

I understand, a hugh moose bit your sister in the shower.


45 posted on 10/05/2004 10:19:36 PM PDT by razorback-bert
[ Post Reply | Private Reply | To 1 | View Replies]

To: edchambers

I was real tempted to install XP and Doom III on one, but I'd still need to acquire the PCI-X vid card and Doom III. Plus I really didn't have the time, if I did, I probably wouldn't have given the machine up. :-)


46 posted on 10/05/2004 10:20:13 PM PDT by John Robinson
[ Post Reply | Private Reply | To 36 | View Replies]

To: John Robinson; lara; Mama_Bear
um...okay...john...i think i...got...it.

so, the external clastoid mastoid hyberchronifiar, dismachifnegated the hypostatic ekenosinator, thereby vitiatimating the vortocuticlastical shmagtrofinator...right?

:o)

47 posted on 10/05/2004 10:22:54 PM PDT by tame (Are you willing to do for the truth what leftists are willing to do for a lie?)
[ Post Reply | Private Reply | To 24 | View Replies]

To: John Robinson

This is kinda scary I actually understood what you said.

Thanks for being so speedy on the repair.


48 posted on 10/05/2004 10:30:10 PM PDT by swheats
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Robinson

Thanks for the info. A 30gb db. The biggest single db of the many sybase servers I work with is a mission-critical one about 45 gb, but we have bigger ones in Oracle, which I don't work with. Interesting you have MySQL for a large db and for such a heavily hit application (FR). I'm surprised but impressed. I have to do some research on MySQL dbs.


49 posted on 10/05/2004 10:34:17 PM PDT by plushaye (President Bush - Four more years! Thanks Swifties.)
[ Post Reply | Private Reply | To 43 | View Replies]

To: John Robinson

Get a Mac!!! -- Just kidding! (sort of)

Wow! That is some load. I have only seen that on an overloaded multinode Nagios monitoring system with 7,000+ checks. But this shows the power of Unix/Unix-like OSes. They might get overloaded but they don't go down. Throw in a little more hardware and a foundry switch to balance it out and you are golden.

50 posted on 10/05/2004 10:35:14 PM PDT by toupsie
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-5051-79 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson