LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2009, 04:15 AM   #1
Srz0rz
LQ Newbie
 
Registered: Jun 2008
Location: Auckland, New Zealand
Distribution: Ubuntu, Debian
Posts: 11

Rep: Reputation: 0
MySQL Cluster on Virtual Machines?


Hi,

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?
 
Old 02-15-2009, 01:43 PM   #2
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
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.
 
Old 02-16-2009, 11:10 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 02-18-2009, 04:13 AM   #4
Srz0rz
LQ Newbie
 
Registered: Jun 2008
Location: Auckland, New Zealand
Distribution: Ubuntu, Debian
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 07:26 AM
LXer: How To Set Up A Load-Balanced MySQL Cluster With MySQL 5.1 LXer Syndicated Linux News 0 06-17-2008 02:20 PM
[SOLVED] Cluster two RedHat machines procfs Linux - Newbie 2 06-07-2007 12:50 AM
errors while testing cluster machines (MPICH) nedian123 Linux - Networking 0 12-09-2004 03:27 AM
is cluster computing possible in two RH8 machines? how? kublador Linux - General 9 06-19-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration