Manoj Singh
Manoj Singh

Reputation: 951

Installing Multiple Instances Mule ESB

I have gone through the mule doc. https://www.mulesoft.org/documentation-3.2/display/MULE2INTRO/Installing+Mule I am trying to understand how to make multiple instances from a single esb server. I have to make a cluster of the instance. But I havent get any clear idea about doing this.

I am using a ubuntu OS.

I want to know that. 1) Do I have to make 2 directory which containing to 2 server. 2 if no Do I have to configure 1 server So that I can make as many instance as I can. 3 if yes Then please can some one help me with step.

Upvotes: 0

Views: 1362

Answers (1)

Ryan Hoegg
Ryan Hoegg

Reputation: 2475

I often set up multiple mule instances on Ubuntu linux in parallel, and I use parallel directories that contain the Mule standalone installation.

Here is a template upstart script I have used to run it on startup under the mule user. You should copy this file to /etc/init/mule-instance-name.conf, and create an associated file /etc/default/mule-instance-name in which you set the MULE_HOME environment variable to the directory where you installed that instance.

description "Run Mule ESB instance 1"
author "Ryan Hoegg"
setuid mule
setgid nogroup 

# we need real ethernet before starting:
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
kill timeout 30
script
    . /etc/default/mule-instance1
    exec $MULE_HOME/bin/mule
end script

Upvotes: 1

Related Questions