Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Asinine MySQL configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Fri Aug 04, 2006 1:28 am    Post subject: Asinine MySQL configuration Reply with quote

Odd question that some of you may enjoy answering about a system destined to provide a *very* large database server.

I've recently acquired control of a very... *large* server. I'll withhold details for the moment, but suffice it to say that things are pretty unlimited - the typically supplied "my-huge.cnf' doesn't even come close to scratching the surface. Although I'm quite familiar with kernel & hardware tuning, I'm interested in seeing what the beast can do with MySQL. My question is this: what bits of the MySQL configuration scale linearly, and which don't? Are there any pitfalls or undocumented ceilings?
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Fri Aug 04, 2006 1:24 pm    Post subject: Reply with quote

Okay - specs:
- 8x P-III Xeon 900/100/2
- 24GB RAM
- All the SCSI/AoE storage I can throw at it
Back to top
View user's profile Send private message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Fri Aug 04, 2006 6:34 pm    Post subject: Reply with quote

I've been helping prod a pretty big MySQL database/server into cooperating, though not THAT big. The database, a fairly ginormous forum, was about 1GB in size, and the fulltext index another gig or two. Two gigs of ram, dual Opteron processors, SCSI disks.

Beware queries with "GROUP BY" or "ORDER BY" clauses in them. The database has to get all the results, store them in a temporary table, sort them, THEN give them to you. LIMIT 10 or whatever does nothing since it can't know what the first 10 are before sorting. You never notice the overhead on small tables, but when the result set gets big, WHAMN.

Writes can back up behind slow selects. The worst bit is that if there are writes in the queue, MySQL will wait for the writes to finish before doing more reads even if the writes aren't writing yet, and even though the reads could be happening simultaneously with that big select. --low-priority-updates will prevent writes from corking the queue like that, but then, endless reads could prevent writes from happening.
_________________
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum