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.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:
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
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
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 :
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
Here is a list of changes you should make :
- Look for the term 'httpconnector'. You will see the port 9263 mentioned there. Since your other daisy instance is using this port change this to a different value, 9563 for example.
- in the mbeanserver target you will find the httpAdaptor and xmlHttpAdaptor. Change their respective port attributes from 9264 and 9265 to 9564 9565.
10.17.1.2.3 Customizing activeMQ settings
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.