dbTalk Databases Forums  

Running multiple instances on the same host

comp.databases.mysql comp.databases.mysql


Discuss Running multiple instances on the same host in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Radoulov, Dimitre
 
Posts: n/a

Default Running multiple instances on the same host - 09-30-2011 , 08:57 AM






Hi all,
I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:

1. mysqld_multi
2. MySQL Sandbox

This should be a long term solution for an enterprise class production
environment.

Any comments and suggestions - pros, cons and real world experience are
very welcome!



Thanks
Dimitre

Reply With Quote
  #2  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: Running multiple instances on the same host - 09-30-2011 , 11:20 AM






Radoulov, Dimitre wrote:
Quote:
Hi all,
I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:

why ?

what is wrong with multiple databases and one instance?

Quote:
1. mysqld_multi
2. MySQL Sandbox

This should be a long term solution for an enterprise class production
environment.

Any comments and suggestions - pros, cons and real world experience are
very welcome!



Thanks
Dimitre

Reply With Quote
  #3  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: Running multiple instances on the same host - 09-30-2011 , 11:33 AM



On Fri, 30 Sep 2011 17:20:50 +0100, The Natural Philosopher wrote:
Quote:
Radoulov, Dimitre wrote:
Hi all,
I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:


why ?

what is wrong with multiple databases and one instance?
And if one really DOES need multiple instances, well, go ahead and
install it twice with different install locations (and possibly just
using symlinks to get to stuff that really WOULD be duplicated between
instances), with different configuration files that specify different
ports, etc. There's very little that actually prevents this from
happening.

--
A way of life that is odd or even erratic but interferes with no rights
or interests of others is not to be condemned because it is different.
-- Chief Justice Warren E. Burger

Reply With Quote
  #4  
Old   
Radoulov, Dimitre
 
Posts: n/a

Default Re: Running multiple instances on the same host - 09-30-2011 , 12:21 PM



On 30/09/2011 18:20, The Natural Philosopher wrote:
Quote:
Radoulov, Dimitre wrote:
Hi all,
I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:


why ?

what is wrong with multiple databases and one instance?

Hi,
we need to migrate an already existing environment which currently uses
the RedHat Cluster with active/passive nodes to a new VM without the
clustering software (VMware HA solutions will be used, it will be
different, I know). There are 3 separate mysql instance/cluster
resources. I don't know the original motivation for this separation, but
I suppose that the customer wants to be able to stop/start (patch,
upgrade ...) the different resources autonomously ...



Regards
Dimitre

Reply With Quote
  #5  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Running multiple instances on the same host - 09-30-2011 , 04:13 PM



"Radoulov, Dimitre" <cichomitiko (AT) gmail (DOT) com> wrote:

Quote:
I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:

1. mysqld_multi
This sucks and often malfunctions

Quote:
2. MySQL Sandbox
And this is not for productive use

Just RTFM for what has to be configured to have multiple instances
running on one machine. Then write the respective number of my.cnfs
and create multiple instances of /etc/init.d/mysqld

It's not rocket science


XL

Reply With Quote
  #6  
Old   
Radoulov, Dimitre
 
Posts: n/a

Default Re: Running multiple instances on the same host - 10-01-2011 , 03:03 AM



On 30/09/2011 23:13, Axel Schwenke wrote:
Quote:
"Radoulov, Dimitre"<cichomitiko (AT) gmail (DOT) com> wrote:

I need to set up multiple MySQL instances on the same host for one of
our customers. As far as I see I could go with:

1. mysqld_multi

This sucks and often malfunctions

2. MySQL Sandbox

And this is not for productive use

Just RTFM for what has to be configured to have multiple instances
running on one machine. Then write the respective number of my.cnfs
and create multiple instances of /etc/init.d/mysqld

It's not rocket science
Thanks again Axel,
I'll try to implement a custom solution.
I'll definitely have more control in this way.


Regards
Dimitre

Reply With Quote
  #7  
Old   
Willem Bogaerts
 
Posts: n/a

Default Re: Running multiple instances on the same host - 10-03-2011 , 02:31 AM



Quote:
Hi,
we need to migrate an already existing environment which currently uses
the RedHat Cluster with active/passive nodes to a new VM without the
clustering software (VMware HA solutions will be used, it will be
different, I know). There are 3 separate mysql instance/cluster
resources. I don't know the original motivation for this separation, but
I suppose that the customer wants to be able to stop/start (patch,
upgrade ...) the different resources autonomously ...
If you have a recent Linux kernel, you could also try kernel-level
para-virtualisation (it probably has another name, but I don't know it).
You can separate a process with it from other processes. It's a kind of
elegant chroot.

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/

Reply With Quote
  #8  
Old   
Radoulov, Dimitre
 
Posts: n/a

Default Re: Running multiple instances on the same host - 10-03-2011 , 02:48 AM



On 03/10/2011 09:31, Willem Bogaerts wrote:
Quote:
Hi,
we need to migrate an already existing environment which currently uses
the RedHat Cluster with active/passive nodes to a new VM without the
clustering software (VMware HA solutions will be used, it will be
different, I know). There are 3 separate mysql instance/cluster
resources. I don't know the original motivation for this separation, but
I suppose that the customer wants to be able to stop/start (patch,
upgrade ...) the different resources autonomously ...

If you have a recent Linux kernel, you could also try kernel-level
para-virtualisation (it probably has another name, but I don't know it).
You can separate a process with it from other processes. It's a kind of
elegant chroot.
Thanks Willem,
I'll look at it.



Regards
Dimitre

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.