Search code examples
replicationsymmetricds

Unable to setup multiple instances of symmetricDS on a vm


Please I have two instances of symmetricds running on my vm using the commands:

bin/sym --port 9000
bin/sym --port 4000

but I want to be able to run both instances through the linux service. I have tried installing the service using 'bin/sym_service install' in the respective directories. But it's not working and when I try to start the server I get an error stating that the port is in use.

How can I set up the linux service to use different ports?


Solution

  • To run multiple services of SymmetricDS on the same machine, you will need to:

    • Set unique port numbers for http, https, and jmx in conf/symmetric-server.properties.
    • Set unique service name for wrapper.name in conf/sym_service.conf

    Then you can run "bin/sym_service install" to install the init script. On a side note, consider if it makes sense to run multiple nodes inside the same instance by placing multiple engine.properties files in the "engines" directory.