DK 'Log


MySQL Performance Tuning
Wed, 28 Nov 2007

I've finally decided to learn everything I could about MySQL performance tuning; we're working on highly tuned appliances and this is a must for high-traffic environments.
I'd like to share my first findings on interesting stuff and encourage comments on the matter, which seems as deep as any science.

These last days we've discussing about this at the office and we couldn't agree about the type of database configuration using MySQL was optimal for the broadest range of users.
It's much easier to tune everything if you already know the exact environment, available hardware and so on, rather than trying to tune a database for a broad range of people going to install a product.

::start here

Enough of introduction anyway, I want to get to the bottom of this issue once and for all, so for a beginning I ordered these three books:

  • MySQL Administrator's Guide Paul du Bois (Autor)
  • MySQL High Performance Jeremy D. Zawodny (Autor), Derek J. Balling (Autor)
  • MySQL Clustering Alex Davies (Autor), Harrison Fisk (Autor)
Besides the books, which should arrive in less than a week, I've been googling quite a lot. I really have to try out mirroring an event table into memory from where events are being fetched and writing a copy into disk. I also see that a lot of index and key optimization can be done in all the involved databases.
Anyway, it's too early to reach a conclusion, in the meantime here's a very interesting piece of reading about index optimizations.

Other interesting options:

  • Clustering using mysql blackholes
  • Vertical or Horizontal partitioning
  • Caching certain tables in order to greatly improve performance (ossim_event, event, plugin_sid and some others with heavy usage)
  • Correctly assign indexes to all the involved tables without increasing disk usage too much

Anyway, if you've got an opinion, suggestion or any sort of input about all of this, please share it on the comments section or send me a mail and I'll post conclusions here.

posted at: 21:02 | path: /ossim/tuning | permanent link to this entry | 1 comments |
Tags: ossim, mysql, database, performance



* Posted by DK at Thu Nov 29 10:20:13 2007
Found another interesting place for mysql optimization at http://www.tutcity.com/tutorials/MySQL/Optimization/.

Name:


E-mail:


URL:


Comment:


Categories

/ (66)
    code/ (1)
    feed/ (1)
    friends/ (1)
    ossim/ (41)
        installer/ (3)
        plugins/ (2)
        tuning/ (3)
        tutorials/ (8)
    personal/ (20)
        campus/ (2)
        opinion/ (1)
        travel/ (1)
    rants/ (1)



Dominique Karg
(feel free to get in touch)
  • Mail (gpg key)
  • Linkedin
  • Twitter
  • Forums

Friend's blogs:
  • /blog/jaime
  • /blog/juanma
  • /blog/santiago






Certified Application Security Specialist




RSS




November 2007 >
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
2627282930  




Archives

2010-Apr
2010-Mar
2010-Feb
2009-Dec
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Oct
2008-Aug
2008-Jul
2008-May
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov




Tags

installer ossim tutorial untagged




Made with PyBlosxom