Skip to content
Advertisement

Aeron basic pub/sub pair connects on same host, fails across hosts

I am running the BasicPublisher/BasicSubscriber pair from https://github.com/real-logic/aeron binding them to the same multicast group+port. When they run on the same host they connect, but when they run on separate hosts (same switch+subnet+vlan) the publisher reports “Offer failed because publisher is not connected to subscriber”. Here are my configurations:

AERON PAIR:

JavaScript
JavaScript

I ran an iperf udp pair on the same hosts binding to the same group+port, which I think proves that the switch is not blocking the multicast traffic. My hope is that I’m just using Aeron incorrectly; or perhaps there’s some other networking issue I can check?

IPERF PAiR:

JavaScript
JavaScript

Java: java-1.8.0-openjdk.x86_64

OS: Centos7 3.10.0-514.26.2.el7.x86_64

Advertisement

Answer

When using multicast endpoints it is also necessary to provide the interface for some operating systems when going remote. The interface can have a mask to simplify configuration for all machines on a subnet. For example:

JavaScript

https://github.com/real-logic/aeron/wiki/Channel-Configuration

Advertisement