Daisy documentation
 PreviousHomeNext 
10.16 JMX consoleBook Index10.17.2 Wiki

10.17 Running parallel daisy instances

This is a short how to on running multiple daisies in parallel on one machine. By using different data directories it is possible to get multiple daisies up and running using only one set binaries.

10.17.1 Repository

10.17.1.1 Create a new data base (MySQL)

Create a new data base as described in the installation.  Here is a summary.
Log in as root

mysql -uroot -pYourRootPassword

Create new data bases for the repository and activeMQ.  In our example we'll just add the 'alt' suffix to the default data base names. We will also just  reuse the same database users for these data bases.

CREATE DATABASE daisyrepositoryalt CHARACTER SET 'utf8';
GRANT ALL ON daisyrepositoryalt.* TO daisy@'%' IDENTIFIED BY 'daisy';
GRANT ALL ON daisyrepositoryalt.* TO daisy@localhost IDENTIFIED BY 'daisy';
CREATE DATABASE activemqalt CHARACTER SET 'utf8';
GRANT ALL ON activemqalt.* TO activemq@'%' IDENTIFIED BY 'activemq';
GRANT ALL ON activemqalt.* TO activemq@localhost IDENTIFIED BY 'activemq';

10.17.1.2 Create the data directory

10.17.1.2.1 Daisy repository initialisation

Go to the directory <DAISY_HOME>/install, and execute:

daisy-repository-init

Now here you must be carefull.  After you choose your data base type, you will be asked to provide the data base URL, DO NOT use the default.  Use this instead

jdbc:mysql://localhost/daisyrepositoryalt?characterEncoding=UTF-8

For the data base user, password, driver class, and driver location you can use the defaults.  The same goes for the initial user.
You will now be asked if you wish to create the data base.  When you are absolutely sure you typed in the data base URL for the new data base continue.

After the data base has been initialised you will be asked to choose the data directory location.  This can be

/home/<daisyuser>/daisydata-alt

Now you are ready to pick a namespace.  If you are planning to do imports and exports with other daisy instances on the machine then it would be best to pick a different namespace.  ALT for example.

Now follow the instructions about mail configuration.

When you reach the embedded JMS part (activeMQ) make sure to use the right URL :

jdbc:mysql://localhost/activemqalt?characterEncoding=UTF-8

The rest of the steps you can use the defaults if you like.

10.17.1.2.2 Customizing the repository settings

Open the myconfig.xml in your favourite editor.  This file is found in

/home/<daisyuser>/daisydata-alt/conf/myconfig.xml

Here is a list of changes you should make :

10.17.1.2.3 Customizing activeMQ settings

Open activemq-conf.xml

/home/<daisyuser>/daisydata-alt/conf/activemq-conf.xml

Here you have to change the port activemq listens to.  Look for ':61616' and change this to something else like ':61656'.

10.17.1.2.4 Start the repository

Now you should be set to go.  Try starting the repository.  Go to <daisyhome>/repository-server/bin and run the startup script with your new data directory as argument. 

./daisy-repository-server /home/<daisyuser>/daisydata-alt
 PreviousHomeNext 
10.16 JMX console10.17.2 Wiki