Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am looking at creating a MySQL cluster as a back end to a site I am in the process of setting up. The hosting company I am with prefers virtual machines, in particular VMWare virtual machines. I just read the mysql-cluster faq's found here and saw that it is not recommended to run a mysql cluster on virtual machines. Is this true? or can you in fact run a mysql cluster on something other than physical machines? Has anyone tried to run a mysql cluster on VMs before?
SQL on a VMWare cluster is not necessarily required IMO. If you are using a well designed VMWare cluster you will have a cluster of hosts and duplicated / redundant back end storage. So in essence you are clustering on a cluster.
If you do have to different Virtual Machines ensure that they are on a separate VMWare cluster, storage and node else there is no point in having two virtual machines clustered on the same hardware.
In a nut shell this depends on your providers setup.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
i dont see the point either, a virtual machine eats up resources that would otherwise be available to your SQL server, if you are running multiple instances of vmware on the same machine that would slow the server to a crawl, if you are running vmware on multiple machines then you should just cluster those instead
that being said a virtual machine should behave like any other machine and can probably be clustered the same way via the vmware virtual network, however unless there is a specific reason to use virtual machines it seems like an unnecessary step and a waste of resources as now the server has to process the emulated machine as well as the sql
Thank you for your replies. I know that it's a bad idea performance wise to have your MySQL Cluster running on VM's. I just wanted to know whether it was possible or not (I don't know if all of the VM's would be on the same physical machine or not. Have to ask hosting company). It seems that the problem of running each node on a separate VM is that the extra latency of the VM layer causes the nodes to think that some of the other nodes have crashed. (Thanks to Monty for the answer here).
This would mean that it would be possible, however, if the cluster started having problems and behaving oddly, it would have to have it's timeout values reconfigured.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.