About this task
In order to avoid conflicts between multiple container instances, there are Karaf
configuration adaption scripts which automate the adjustment of potentially conflicting
parameters. They are based on the
property-set commands described above.
Those scripts are executed within the Karaf container and thus are supported by all platforms compatible with container. So, even if they have a ".sh" extention, their usage is not limited to Linux based operating systems.
To deploy multiple containers:
Make sure that the default container you will copy has never been started
before. Or if it has already been started, make sure it is stopped (using the
logoutcommands or Ctrl+D), and that its data directory has been deleted, before copying its directory and files to create containers 1, 2 and 3. Otherwise, the data in the default container (which contains absolute paths relating to the default container) will cause problems in the others.
- In a Linux terminal or Windows command line window, change directory to <TalendRuntimePath>.
Copy the directory structure of the default container with all its content to
produce the first container by executing the most applicable command:
Now, you have a second container in directory container1.Repeat the above command to create the second and the third containers in the same way.
cp -r container container1(Linux)
robocopy /e container container1(Windows)
xcopy /e container container1(older Windows with no robocopy)
Start the first container:
Start the second and the third containers in the same way.
Under Linux, go to directory <TalendRuntimePath>/container1 and execute the following command:
Under Windows, go to directory <TalendRuntimePath>\container1 and execute the following command:
When the initialization is complete, run the configuration adaption script at
the container prompt to update and save the new settings:
All necessary parameters adjustments are done using this single script call. Changes performed by the configuration adaption scripts are persistent and reflected in the configuration files in container/etc.
source scripts/configureC1.shfor the first container copy
source scripts/configureC2.shfor the second container copy
source scripts/configureC3.shfor the third container copy
source scripts/configureC0.shresets the parameters to the default values
- Shut down and restart the container after applying a configuration adaption script, to make sure the new parameters are used. Most of the parameter changes will be adapted "on the fly", but for the Jobserver parameters in Talend ESB this is not yet possible.
The ports which are configured using the configuration scripts are described in the table below:
|RMI Registry Port||1099||1100||1101||1102|
|RMI Server Port||44444||44445||44446||44447|
|File Transfer Port||8001||8011||8021||8031|