[rabbitmq-discuss] Running 2 instances (not clustered) in same machine
matthias at rabbitmq.com
Thu Aug 2 15:43:04 BST 2012
On 02/08/12 14:49, Tim Watson wrote:
> On 08/02/2012 02:36 PM, Tim Watson wrote:
>> On 08/02/2012 01:46 PM, Thiago Burgo Belo wrote:
>>> Hi all,
>>> There is a way to run 2 rabbit instances (not clustered) in same
>>> machine? The VirtualHost is to do this (isolate instances)?
>> Sure, if what you mean is to have two distinct brokers running on the
>> same machine. Just give them different node names using the
>> RABBITMQ_NODENAME environment variable. Virtual host is not required
>> for this.
> Oh yes - you'll want different listening ports as well, and possibly
> won't want to share other things either (mnesia dir, plugins dirs, etc).
> Please see http://www.rabbitmq.com/configure.html for an exhaustive list.
See also http://www.rabbitmq.com/clustering.html#single-machine
And just to be clear, AMQP virtual hosts have absolutely nothing to do
with that. Their purpose is to create logical partitions of resources
within a *single* broker.
More information about the rabbitmq-discuss