switchyard Clustering standalone mode in different boxes
ravi21588 Jan 30, 2016 12:15 AMHi All,
Iam a newbie to Jboss FSW 6.0 and switchyard, iam trying to acheive clustering by creating two instances of jboss eap 6.1 in different boxes.
I had connected the machines in network using wifi router.
I had started the servers in standalone mode with below commands.
Node1:
standalone.bat -c standalone-ha.xml -b 192.168.1.10 -u 224.0.0.1 -Djboss.server.base.dir=../standalone-node1 -Djboss.node.name=node2
I got the multicast address with the below command(Not sure if iam using correct one)
output of Node1:
C:\Users\Ravi>netsh interface ip show joins
Interface 1: Loopback Pseudo-Interface 1
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 5 Yes 239.255.255.250
Interface 4: Ethernet
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 0 Yes 224.0.0.1
0 1 Yes 224.0.0.251
0 1 Yes 224.0.0.252
0 1 Yes 224.0.0.253
0 1 Yes 224.0.1.105
0 4 Yes 239.255.255.250
Node2:
standalone.bat -c standalone-ha.xml -b 192.168.1.8 -u 224.0.0.1 -Djboss.server.base.dir=../standalone-node2 -Djboss.node.name=node2
output of Node2:
Interface 4: Ethernet
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 0 Yes 224.0.0.1
Interface 1: Loopback Pseudo-Interface 1
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 4 Yes 239.255.255.250
Interface 3: Wi-Fi
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 0 Yes 224.0.0.1
0 1 Yes 224.0.0.251
0 1 Yes 224.0.0.252
0 1 Yes 224.0.0.253
0 4 Yes 239.255.255.250
Interface 7: Bluetooth Network Connection
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 0 Yes 224.0.0.1
Interface 5: Local Area Connection* 2
Scope References Last Address
---------- ---------- ---- ---------------------------------
0 0 Yes 224.0.0.1
After this i had deployed the sample quick start application for cluster:
- dealer : contains the Dealer Service which acts as consumer for the clustered Credit Service.
- credit : a clustered decision service implemented in Drools.
- client : the test driver for the application which can be used to send a request payload to the Dealer Service
dealer and credit application is deployed in node1
credit application alone is deployed in node 2.
iam invoking the client from node one and i have changed the url to http://192.168.1.10:8080/switchyard-remote
when i invoke the client multiple times the requests are not going to node 2 all the requests are going to node 1.
After that i tried disabling the credit application is deployed in node1
iam getting below error in client and request is not reaching node 2.
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.switchyard.SwitchYardException: SWITCHYARD015200: Could not instantiate Throwable class: java.lang.reflect.UndeclaredThrowableException
at org.switchyard.serial.graph.node.ThrowableNode.newThrowable(ThrowableNode.java:180)
at org.switchyard.serial.graph.node.ThrowableNode.decompose(ThrowableNode.java:150)
at org.switchyard.serial.graph.Graph.decomposeReference(Graph.java:149)
at org.switchyard.serial.graph.node.ThrowableNode.decompose(ThrowableNode.java:151)
at org.switchyard.serial.graph.Graph.decomposeReference(Graph.java:149)
at org.switchyard.serial.graph.node.AccessNode$1.run(AccessNode.java:135)
at org.switchyard.serial.graph.Graph.decomposeRoot(Graph.java:135)
at org.switchyard.serial.graph.GraphSerializer.deserialize(GraphSerializer.java:61)
at org.switchyard.remote.http.HttpInvoker.invoke(HttpInvoker.java:99)
at org.switchyard.quickstarts.demo.cluster.RemoteClient.main(RemoteClient.java:56)
can you please tell me if iam doing anything in correct?
When i deploy the application as specified in quickstart it works fine(one box with 3 nodes in standalone mode).