Skip to content

Discovery Service Configuration#

The file you need for the configuration and settings of the Discovery Service is available here:

  • InstallationFolder\DiscoveryService\config\config.json

The image below provides insight to the Discovery Service configuration:

Discovery Service 01

Critical Manufacturing Discovery Service Configuration#

To enable the Critical Manufacturing Discovery Service you must follow the steps below:

  1. In the InstallationFolder\CriticalManufacturing\BusinessTier\Settings\LoadBalancingConfig.json:
  2. set the IsLoadBalancerEnabled property to true.
  3. the LoadBalancerConfig\Address property should be pointing to the Discovery Service address.

  4. In the InstallationFolder\CriticalManufacturing\BusinessTier\Settings\TransportConfig.json:

  5. set the UseLoadBalancing property to true.
  6. the LoadBalancerConfig\Address property should be pointing to the Discovery Service address.

  7. In the InstallationFolder\CriticalManufacturing\UI\Html\config.json:

  8. set the host\isLoadBalancerEnabled to true.
  9. the loadBalancer\address property should be pointing to the Discovery Service address.

Critical Manufacturing Host Configuration#

In the settings available in the InstallationFolder\CriticalManufacturing\BusinessTier\Settings\LoadBalancingConfig.json file you can also manage specific settings related to the connection of the Host to the Discovery Services.

In this file location, for example, you can manage the weight of the Host in the Weighed Round-Robin algorithm, change its address or, if required, disable it altogether.

The image below provides insight to the mentioned settings:

Discovery Service 02

External Third-Party Load Balancer Configuration#

If an MES cluster environment, with more than one Application Server, is using a third-party Load Balancer (LB) instead of the out-of-the-box Discovery Services, then some MES settings need to be manually changed on each Application Server.

The needed changes are as follows:

  1. In the $\UI\HTML\config.json:
  2. the host\rest\address property needs to point to the LB Address instead of the AppServer.

  3. In the $\BusinessTier\Settings\TransportConfig.json:

  4. the TransportConfig\GatewaysConfig\ExternalAddress needs to point to the LB Address instead of the AppServer.

  5. In the $\MessageBusGateway\config\config.json:

  6. the cluster\broadcast needs to be set to null.
  7. the cluster\unicast needs to be set with the relevant Application Servers IPs "IpAppServer01,IpAppServer02".

Example:

Discovery Service Load Balancer