June 13, 2013

Configure High-Availability Clustering using TCP Unicast with JBoss EAP 6, HTTPD, mod_cluster on RHEL 6

In my previous blogs I have written about HA in JBoss EAP 6 with Apache Webserver (httpd) and that is all done with UDP multicast. In this blog I will show you how to do it with TCP unicast.



In this example we are going to run all JBoss EAP server on the same machine and we are using standalone mode for simplicity reason. But the same apply if you want to run domain mode.

First configure JGroups to use TCP unicast.

Secondly we need to configure modcluster subsystem in JBoss EAP 6 and set advertise="false" and proxy-list="".

Now lets restart Apache Webserver (httpd) and start two JBoss server. And last you must deploy a clusterable application.

1 comment:

PHANI said...

Hi Magnus,
I tried following your steps outlined in the blog to configure a HA, However I get a error message saying :
ERROR "[org.infinispan.interceptors.InvocationContextInterceptor] (ajp-/ ISPN000136: Execution error: org.infinispan.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.util.Util.rewrapAsCacheException(Util.java:542 ".
Please guide me as to where I am going wrong here. Kindly help.