Run a standalone Coherence cluster using Multicast and Well Known Address(WKA)

Run a standalone Coherence cluster using Multicast and Well Known Address(WKA)

book

Article ID: KB0094276

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
This solution explains how to run a standaloneCcoherence cluster (Multicast or WKA) using a Java command without involving BE.

Environment:
===========
TIBCO Product name and version: TIBCO BusinessEvents (BE) All versions
Operating System(s): All

Resolution:
==========

Scenario: BusinessEvents engine using Coherence for cluster management and throwing exceptions. To debug whether the issue is with BE or Coherence, running the Coherence.jar using a Java command might be helpful.

Multicast command:

java -Dtangosol.coherence.clusteraddress="&ltcluster address>" -Dtangosol.coherence.clusterport=&ltcluster port> -Dtangosol.coherence.localhost=&ltIP address> -jar "&ltpath to coherence.jar>"

You can add more arguments to the command based on your requirement such as the following:

-Dtangosol.coherence.log.level=9 (debug level for coherence)
-Dtangosol.coherence.ttl=10
-Dtangosol.coherence.guard.timeout=0

WKA command:

java -Dtangosol.coherence.override=&ltpath to coherence-override.xml> -Dtangosol.coherence.localport=&ltport> -jar &ltpath to coherence.jar>

Sample Override XML

<?xml version='1.0'?>
&ltcoherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config" xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
    &ltcluster-config>
        &ltunicast-listener>
            &ltsocket-provider system-property="tangosol.coherence.socketprovider"&gttcp</socket-provider>
            &ltwell-known-addresses>
                &ltsocket-address id="1">
                  &ltaddress system-property="tangosol.coherence.wka1">&ltIP address1></address>
                  &ltport system-property="tangosol.coherence.wka1.port">&ltPort1></port>
                </socket-address>
                &ltsocket-address id="2">
                  &ltaddress system-property="tangosol.coherence.wka2">&ltIP address2></address>
                  &ltport system-property="tangosol.coherence.wka2.port">&ltPort2></port>
                </socket-address>
            </well-known-addresses>
             &ltport-auto-adjust system-property="tangosol.coherence.localport.adjust"&gtfalse</port-auto-adjust>
        </unicast-listener>
    </cluster-config>    
</coherence>

Example:

If the issue is with joining an existing cluster in BE, start another instance using the same (Java) command to check if the second instance can join the cluster.

Issue/Introduction

Run a standalone Coherence cluster using Multicast and Well Known Address(WKA)