Distributed Host Setup

This article was written for version 2.0.9 of Core. Click here for the most recent version of the help center.

This guide will demonstrate configuring a distributed runtime with hosts on a single subnet.

For each host in a multi-host distributed runtime, the following must occur:

  • Designate a PolySync Ethernet interface and IP subnet
  • Determine a unique IP address within the defined subnet
  • PolySync will start PTP services automatically

1. PolySync Ethernet interface

Most machines have at least one Ethernet interface, also known as a Network Interface Card (NIC). To list all available NICs, the developer can use the system command ifconfig:

$ ifconfig

For machines with a single NIC, the Ethernet interface displayed eth0, must be designated as the PolySync Ethernet interface.

2. PolySync IP address

When using a static network, the DDS Discovery feature will search for other hosts through the selected Ethernet interface. If other hosts exist on the network, developers will be sharing the PolySync bus, which means they will see the other host’s data, and vice versa.

Once a PolySync IP address is defined it must exist on an Ethernet interface before any PolySync application is run.

The most common network configuration solutions define a single subnet for all hosts to communicate on. Advanced users may set the subnet mask and perform more sophisticated networking solutions.

When defining hosts on the ‘200’ subnet, it is important to note that all host IP addresses will start with ‘192.168.200’. Each host defined on the subnet will have a unique address. Once an address is selected, use the PolySync Manager to update the PolySync configuration.

$ polysync-core-manager -s 192.168.200.100

The IP address must exist on the host (shown through ifconfig command) before PolySync applications can run.

3. SDF IP address

Open the SDF Configurator to ensure that the SDF configuration matches the system network configuration. If there is a mismatch detected in the SDF, the Host Wizard will open.

$ polysync-core-sdf-configurator`

The last requirement is to run Precision Time Protocol (PTP). Without the PTP service, hosts defined in the PolySync runtime will have differing system times and PolySync data will not be aligned or replayable.