Inconsistent failover behavior depending of port settings in dacsDaemon property

We have an application that is connecting to a DACS daemon, using the RFA Java libs. We want to enable failover but are seeing a weird behavior when failing over one IP to the other.

We provide a set of hostname:port to the dacsDaemon property, like this (note the different port):

test1:8212,test2:8211

It appears that if we try to connect to connect/logs onto the DACS:

  • if the first host in the list is working, the connection is established
  • if the first host is down, the connection never establishes to the second one
  • on the other hand, if the first host is down but both entries have the same port (test1:8211,test2:8211), we seem to connect properly to the second one.

Is it a known behavior? Is there anything to change to get a proper failover despite the different ports?

Tagged:

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @gaetan.vaysse ,

    Please find the hosts configuration description in OpenDACS Developers guide:

    opendacshosts.gif

    I do not think you are using the hosts configuration in the expected way, which results in unexpected behavior. The separate second port setting is not supported, and when you define with two ports, only the expected one port is applied.

Answers