Clustering in WildFly 8

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Clustering in WildFly 8

Arun Gupta
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
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: Clustering in WildFly 8

Jeff Mesnil

On 12 Mar 2014, at 00:35, Arun Gupta <[hidden email]> wrote:

> 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
>
> Is there something else that needs to be configured ?

server-two uses the full profile, server-three uses the full-ha profile that add discovery support to its hornetq-server.

This error likely occurs when you run multiple host on the same machine: https://community.jboss.org/wiki/RunningAHornetQClusterUsingDiscoveryDoesntWork
To use this setup, you need to add a multicast route to the loopback interface (on my mac, I have to run "sudo route add 224.0.0.0 127.0.0.1 -netmask 240.0.0.0"

jeff

--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/


_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev