Connecting DataSources to Discovery
This page describes how to connect DataSource applications to a Discovery server.
Requirements
The instructions on this page assume that you have already completed the first stage in the migration path below:
-
Connect DataSources to Discovery
-
Migrate to Discovery licensing
-
Migrate to peer discovery
-
Migrate to scalable data services
Connecting a Liberator to a Discovery server
Requires: Liberator 7.1.25+
Deployment Framework managed configuration
Follow the steps below:
-
Stop all Caplin Platform components:
$ ./dfw stop
-
In the Deployment Framework’s
global_config/environment.conffile, set the following variables:global_config/environment.confdefine DISCOVERY_ADDR address … (1) define DISCOVERY_CLUSTER_NAME name (2)
1 A space-separated list of hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr. 2 The name of the Discovery cluster in your deployment. See discovery-cluster-name. -
Deactivate the
LiberatorJMXblade if it is enabled:$ .dfw deactivate LiberatorJMX
-
Activate the
LiberatorDiscoveryandLiberatorSockmonconfiguration blades:$ ./dfw activate LiberatorDiscovery LiberatorSockmon
-
Make the following changes or additions to Liberator’s
rttpd.confoverride file:global_config/overrides/servers/Liberator/etc/rttpd.confdatasrc-local-label label (1) datasrc-public-addresses address … (2)
1 A unique identifier for this Liberator (see datasrc-local-label). 2 [Liberator 7.1.27+] A list of addresses at which peers and Discovery can connect to this Liberator. See datasrc-public-addresses -
If you are licensing this Liberator through Discovery, remove the licence file for this Liberator from the Deployment Framework’s
global-config/licensesdirectory.For more information on licensing models in Discovery deployments, see Discovery licensing.
-
Restart all Caplin Platform components:
$ ./dfw start
Manual configuration
Make the following changes to Liberator’s etc/rttpd.conf configuration file:
-
Delete
rmi-registry-portandrmi-client-portconfiguration items:rmi-registry-port port rmi-client-port port
-
Add Sockmon configuration items:
monitor-moddir %r/lib monitor-module sockmon sockmon-port 14301 process-usage-period 10.0 object-monitoring-interval 15.0 session-monitoring-interval 15.0 add-monuser user admin pass admin end-monuser -
Add configuration to enable Liberator to connect to Discovery:
discovery-addr address … (1) discovery-cluster-name name (2) datasrc-local-label label (3)
1 A space-separated list of the hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr.2 The name of the Discovery cluster in your deployment. See discovery-cluster-name3 A unique identifier for this Liberator (see datasrc-local-label). -
Add configuration to enable peers and Discovery to connect to Liberator:
datasrc-public-addresses address … (1)
1 [Liberator 7.1.27+] A list of addresses at which peers and Discovery can connect to this Liberator. See datasrc-public-addresses -
If you are licensing this Liberator through Discovery, remove the licence file for this Liberator from Liberator’s
etc/directory. For more information on licensing models in Discovery deployments, see Discovery licensing.
Connecting a Transformer to a Discovery server
Requires: Transformer 7.1.14+
Deployment Framework managed configuration
Follow the steps below:
-
Stop all Caplin Platform components:
$ ./dfw stop
-
In the Deployment Framework’s
global_config/environment.conffile, set the following variables:global_config/environment.confdefine DISCOVERY_ADDR address … (1) define DISCOVERY_CLUSTER_NAME name (2)
1 A space-separated list of hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr. 2 The name of the Discovery cluster in your deployment. See discovery-cluster-name. -
Deactivate the
TransformerJMXblade if it is enabled:$ .dfw deactivate TransformerJMX
-
Activate the
TransformerDiscoveryandTransformerSockmonconfiguration blades:$ ./dfw activate TransformerDiscovery TransformerSockmon
-
Make the following changes or additions to Transformer’s
transformer.confoverride file:global_config/overrides/servers/Transformer/etc/transformer.confdatasrc-local-label label (1) datasrc-public-addresses address … (2)
1 A unique identifier for this Transformer (see datasrc-local-label). This value is displayed in the Discovery web interface and referenced by the remote-labelandremote-label-regexoptions in data service configurations.2 [Transformer 7.1.17+] A list of addresses at which peers and Discovery can connect to this Transformer. See datasrc-public-addresses -
Remove all configuration related to Transformer clustering. With Discovery, Transformer clustering is managed by Discovery and requires no configuration. For examples of traditional Transformer clustering configuration to remove, see Setup a cluster of Transformers.
-
If you are licensing this Transformer through Discovery, remove the licence file for this Transformer from the Deployment Framework’s
global-config/licencesdirectory. -
Restart all Caplin Platform components:
$ ./dfw start
Manual configuration
Make the following changes to Transformer’s etc/transformer.conf configuration file:
-
Delete
rmi-registry-portandrmi-client-portconfiguration items:rmi-registry-port port rmi-client-port port
-
Add Sockmon configuration items:
monitor-moddir %r/lib monitor-module sockmon sockmon-port 14301 process-usage-period 10.0 object-monitoring-interval 15.0 session-monitoring-interval 15.0 add-monuser user admin pass admin end-monuser -
Add configuration to connect Transformer to Discovery:
discovery-addr address … (1) discovery-cluster-name name (2) datasrc-local-label label (3)
1 A space-separated list of the hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr.2 The name of the Discovery cluster in your deployment. See discovery-cluster-name3 A unique identifier for this Transformer. This value is displayed in the Discovery web interface and referenced by the remote-labelandremote-label-regexoptions in data service configuration. Seedatasrc-local-label. -
Add configuration to enable Discovery and DataSource peers to connect to Transformer:
datasrc-public-addresses address … (1)
1 [Transformer 7.1.17+] A list of addresses at which peers and Discovery can connect to this Transformer. See datasrc-public-addresses -
If you are licensing this Transformer through Discovery, remove the licence file for this Transformer from Transformer’s
etc/directory. For more information on licensing models in Discovery deployments, see Discovery licensing. -
Remove all configuration related to Transformer clustering. With Discovery, Transformer clustering is managed by Discovery and requires no configuration. For examples of traditional Transformer clustering configuration to remove, see Setup a cluster of Transformers.
Connecting a Java DataSource to a Discovery server
Requires: A Java DataSource built with DataSource for Java 7.1.18+
Deployment Framework managed configuration
The instructions below are for a Java DataSource with no configuration blades for Discovery or JMX.
Follow the steps below:
-
Stop all Caplin Platform components:
$ ./dfw stop
-
In the Deployment Framework’s
global_config/environment.conffile, set the following variables:global_config/environment.confdefine DISCOVERY_ADDR address … (1) define DISCOVERY_CLUSTER_NAME name (2)
1 A space-separated list of hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr. 2 The name of the Discovery cluster in your deployment. See discovery-cluster-name. -
In the adapter’s
datasource.confoverride file, add the following configuration:global_config/overrides/<datasrc_name>/etc/datasource.confdiscovery-addr ${DISCOVERY_ADDR} (1) discovery-cluster-name ${DISCOVERY_CLUSTER_NAME} (2) datasrc-local-label name (3)1 See discovery-addr 2 See discovery-cluster-name 3 A unique identifier for this DataSource component. This value is displayed in the Discovery web interface and referenced by the remote-labelandremote-label-regexoptions in data service configuration. Seedatasrc-local-label. -
Enable the adapter’s JMX monitoring interface:
-
Add the following configuration to the Java Adapter’s
datasource.confoverride file:global_config/overrides/<datasrc_name>/etc/datasource.conf# RMI registry port rmi-registry-port port_number (1) # RMI client port rmi-client-port port_number (2) add-monuser user admin pass admin end-monuser1 Set this to a free port number on the host. See rmi-registry-port. 2 Set this to a free port number on the host. See rmi-client-port. -
Add the following option to the
javacommand in the Java adapter’sbin/start-jar.shscript:-Djava.rmi.server.hostname=$(hostname -I | cut -d' ' -f1)
For more information on enabling JMX in a Java adapter, see Activating JMX in a Java DataSource.
-
-
Add configuration to enable Discovery and DataSource peers to connect to this DataSource:
datasrc-public-addresses address … (1)
1 [DataSource for Java 7.1.20+] A list of addresses at which peers and Discovery can connect to this DataSource. See datasrc-public-addresses -
Restart all Caplin Platform components:
$ ./dfw start
Manual configuration
The instructions below are for a Java DataSource that is not packaged as a Deployment Framework kit.
Follow the steps below:
-
Stop the adapter if it is running.
-
In the adapter’s
datasource.conffile, add the following configuration:datasource.confdiscovery-addr address … (1) discovery-cluster-name name (2) datasrc-local-label label (3)
1 A space-separated list of hostnames or IP addresses of Discovery servers in your deployment. See discovery-addr. 2 The name of the Discovery cluster in your deployment. See discovery-cluster-name. 3 A unique identifier for this DataSource component. This value is displayed in the Discovery web interface and referenced by the remote-labelandremote-label-regexoptions in data service configuration. Seedatasrc-local-label. -
Enable the adapter’s JMX monitoring interface:
-
Add the following configuration to the Java Adapter’s
datasource.conffile:datasource.conf# RMI registry port rmi-registry-port port_number (1) # RMI client port rmi-client-port port_number (2) add-monuser user admin pass admin end-monuser1 Set this to a free port number on the host. See rmi-registry-port. 2 Set this to a free port number on the host. See rmi-client-port. -
Add the following option to the
javacommand in the Java adapter’s startup script:-Djava.rmi.server.hostname=$(hostname -I | cut -d' ' -f1)
For more information on enabling JMX in a Java adapter, see Activating JMX in a Java DataSource.
-
-
In the adapter’s
datasource.conffile, add the following configuration to enable Discovery and DataSource peers to connect to this DataSource:datasrc-public-addresses address … (1)
1 [DataSource for Java 7.1.20+] A list of addresses at which peers and Discovery can connect to this DataSource. See datasrc-public-addresses -
Restart the adapter
Next steps
If you’re following a staged migration to Discovery, move on to the next step when you’re ready:
-
Deploy Discovery server
-
Connect DataSources to Discovery
-
Migrate to peer discovery
-
Migrate to scalable data services
See also: