Service Locator provides automatic and transparent failover and load balancing between service Consumers and Providers and allows for dynamic endpoint registration and lookup.
Once Talend ESB installed, you can access the Service Locator in the Talend-ESB-VA.B.C/zookeeper directory or install it as a feature directly within the Talend ESB Container.
Service Locator can also be installed as a Feature in Talend ESB Container, this way, it will be automatically launched when launching Talend ESB Container.
To launch Service Locator as a Feature in Talend ESB Container:
Run the Container.
Type in the following command to start the feature corresponding to Service Locator:
To stop the Service Locator, type in the following command:
To launch Service Locator in standalone:
Open a command window.
Browse to the Talend-ESB-VA.B.C/zookeeper/bin directory.
Run the following command:
zkServer.cmd starton Windows.
zkServer.sh starton Linux.
Under Linux, ensure execution rights for the locator startup scripts:
chmod a+x zookeeper/bin/*.sh
To customize the configuration of the Service Locator standalone, edit the following file: Talend-ESB-VA.B.C/zookeeper/conf/zoo.cfg and change the parameters according to your needs:
the basic time unit in milliseconds used by the Service Locator. It is used to do heartbeats, and the minimum session timeout will be twice the tickTime
the location to store the in-memory database snapshots and, unless specified otherwise, the transaction log of updates to the database
the port to listen for client connections