MySQL in vmware virtual machine

MySQLvmware-esxi

What do you think about having MySQLd in vmware VM ? The problem is, we are having MySQL cluster on 2 nodes and it keeps on making the problems (auto-restarting ndbd, ndb_mgmt must be available etc). The performance is not that critical, as it is used mainly by VoIP PBX system.

Could you please give me some pros/cons about having it in the virtual machine that has HA enabled ?

Best Answer

Ok, well you've got a couple of things going on here.

  • MySQL running in a VM will of course run a little slower than on bare-metal, especially if there's a lot of IO going on - there's no way around that, it's the cost of virtualisation. That said it may not be too bad, maybe only a ~3-5% CPU speed loss, ~3-7% memory speed loss and anywhere between 5% and 25% of IO performance drop based on the load, concurrency with other VMs and disk subsystem setup.

  • HA makes no difference to this at all, literally none - all HA does is say that if a host goes off line your VMs will restart on another host. But nothing changes until one of your hosts falls over, nothing at all. Now if a host does fall over HA will restart the VMs on the other hosts, not this could mean that the working hosts would then have more load per host and thus the performance could drop overall but only for the time it takes for the failed host to recover and for you to manually or automatically (with DRS) reallocate your VMs across your hosts.

Hope this helps. By the way are you planning on working in your role on an ongoing basis?

Related Topic