Ad Widget

Collapse

upgrade 1.4.4 -> 1.8.3: MyISAM+InnoDB questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #1

    upgrade 1.4.4 -> 1.8.3: MyISAM+InnoDB questions

    Hello, we've been using Zabbix 1.4.4 for ages. We're eager to migrate to a new version for various reasons. We started with MyISAM table structure, but the new patches provide new tables in InnoDB table format. That would require MySQL to support both MyISAM engine as InnoDB engine.

    Our current server only has 4GB of memory (32bits OS), and from what I've been reading, an InnoDB structure strains both CPU and memory more than a MyISAM structrure, at the gain of row level locking instead of table locking.

    Of course I can use mysqldump and sed to change the entire structure over to InnoDB, but dumping and loading takes ~15 hrs to complete, at the risk that at the end, the InnoDB structure is straining the available CPU and RAM resources to the max. I guess the only way to speed up this 15 hrs, is to do it on new hardware, but I'd like to see the extend in which Zabbix 1.8.3 is able to reduce server load.

    So, I'd like to stick with the MyISAM structure for now, use sed to change "InnoDB" to "MyISAM" in the DBpatches 1.4.4 -> 1.6.x -> 1.8.3, see how that performs, wait for about a month to see how things are running, and then get some budget for a new server, 64bits, with lots of memory, and do the DB engine migration on new, faster hardware.

    But I wonder (and here's my question ), if it is wise to do the conversion of the patches as I described, or will that decision bite me in the *ss?

    For example, I can imagine that those patches are specifically designed with the InnoDB row lock feature in mind, I'd like some input before I endeavor into my demise

    <edit> current DB size is 8,2GB, converted to 1.8.3 + MyISAM->InnoDB conversion it's about 17GB.
    If I knew how to upload attachments, I would upload a "show processlist", but in short it's displaying 62 "insert into history" statements, 5 selects on history, and about 56 sleeps
    Last edited by 0siris; 23-11-2010, 17:55.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    you can convert to innodb without dumping and inserting after - see http://dev.mysql.com/doc/refman/5.1/...to-innodb.html for more details (alter table method).

    of course, have a backup of your db before that.

    as for performance, i expect zabbix 1.8 on innodb to perform better than 1.4 + myisam on the same hardware, so most likely there would be no issues - but make sure to increase default innodb buffers (to at least 2gb or so).

    you didn't mention some important parameters like database size and new values per second (although, if i recall correctly, 1.4 didn't have that value easily available...), so this is all a bit wild guessing
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...