[wildfly-dev] Clustering in WildFly 8

Arun Gupta arun.gupta at gmail.com
Tue Mar 11 19:35:42 EDT 2014


I've started playing with clustering in WildFly 8 and been able to
create a simple sample that shows HTTP session failover.

The sample is at:

https://github.com/arun-gupta/wildfly-samples/tree/master/clustering/http

I'll be sharing a blog post on this soon.

In the mean while here is some initial feedback:

1). Starting domain.sh automatically starts two WildFly instances on
8080 and 8230. Clicking on "Administration Console" shows the message
" if you are running a domain the http interface can not be
automatically detected so check the host.xml configuration and connect
directly.".

I think this message can be improved by saying what needs to be done
in order to access the console.

2). If a WildFly instance needs to run on multiple hosts then it seems
like it needs to be manually copied over to each machine. Is there a
mechanism where a zip bundle can be sftp/ssh copied over to the remote
machine ? This would simplify setting up a cluster.

3). Changed server-two auto-start="false" and server-three
auto-start="true". Running domain.sh gives the following error:

[Server:server-three] 15:17:03,924 INFO  [org.jboss.messaging] (MSC
service thread 1-12) JBAS011615: Registered HTTP upgrade for
hornetq-remoting protocol handled by http-acceptor-throughput acceptor
[Server:server-three] 15:17:03,978 ERROR [org.hornetq.core.server]
(Thread-0 (HornetQ-scheduled-threads-45430818)) HQ224033: Failed to
broadcast connector configs: java.io.IOException: Can't assign
requested address
[Server:server-three] at java.net.PlainDatagramSocketImpl.send(Native
Method) [rt.jar:1.7.0_45]
[Server:server-three] at
java.net.DatagramSocket.send(DatagramSocket.java:676)
[rt.jar:1.7.0_45]
[Server:server-three] at
org.hornetq.api.core.UDPBroadcastGroupConfiguration$UDPBroadcastEndpoint.broadcast(UDPBroadcastGroupConfiguration.java:135)
[hornetq-core-client-2.4.1.Final.jar:]
[Server:server-three] at
org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.broadcastConnectors(BroadcastGroupImpl.java:215)
[hornetq-server-2.4.1.Final.jar:]
[Server:server-three] at
org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.run(BroadcastGroupImpl.java:227)
[hornetq-server-2.4.1.Final.jar:]
[Server:server-three] at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_45]

Is there something else that needs to be configured ?

Thanks
Arun

-- 
http://blog.arungupta.me
http://twitter.com/arungupta


More information about the wildfly-dev mailing list