-
1. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
rhusar Apr 17, 2014 7:23 AM (in response to namtn)Make sure you are using the HA profile (start standalone with standalone-ha.xml profile or ha profile in domain mode).
-
2. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
namtn Apr 17, 2014 7:34 AM (in response to rhusar)Of course Husar ,
my command to start jboss:
standalone.sh -server-config=standalone-ha.xml -b 0.0.0.0 -Djboss.mod_cluster.advertise.enabled=true -Djboss.jvmRoute="node2"
Addition, even if i start jboss with standalone-full-ha profile, result still the same.
-
3. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
rhusar Apr 17, 2014 7:39 AM (in response to namtn)1 of 1 people found this helpfulAre you using multicast to discover the nodes?
You should see similar logs when starting the AS:
13:37:45,299 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 60) ISPN000078: Starting JGroups Channel
13:37:45,309 INFO [stdout] (ServerService Thread Pool -- 60)
13:37:45,309 INFO [stdout] (ServerService Thread Pool -- 60) -------------------------------------------------------------------
13:37:45,309 INFO [stdout] (ServerService Thread Pool -- 60) GMS: address=x220-2/web, cluster=web, physical address=127.0.0.1:55300
13:37:45,310 INFO [stdout] (ServerService Thread Pool -- 60) -------------------------------------------------------------------
13:37:45,476 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 60) ISPN000094: Received new cluster view: [x220/web|1] (2) [x220/web, x220-2/web]
13:37:45,480 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 60) ISPN000079: Cache local address is x220-2/web, physical addresses are [127.0.0.1:55300]
13:37:45,485 INFO [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 60) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.1.Final
-
4. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
namtn Apr 17, 2014 11:28 AM (in response to rhusar)Hi Husar , I got a problem when starting Jgroups:
the receive buffer of socket DatagramSocket was set to 20MB, but the OS only allocated 5MB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
I've already added: -Djava.net.preferIPv4Stack=true in script start jboss.
--------------------------------------------------------------------------------------------------------------------------------------------
After i updated:
net.core.rmem_max = 25480000
net.core.wmem_max = 25480000
The warning log out, Jgroups start ok however the session replication still not work:
-
5. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
songty Apr 17, 2014 4:52 PM (in response to namtn)Hi Nam,
You offer me three cups of beer in this weekend, you will have solution for this.
Song Ty,
-
6. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
namtn Apr 17, 2014 10:32 PM (in response to songty)Oke Song, show me?
-
7. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
namtn Apr 17, 2014 11:34 PM (in response to namtn)Everything work well after I Disable SELinux,
Thanks all
-
8. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
rhusar Apr 18, 2014 12:30 PM (in response to namtn)Tran Nam wrote:
Everything work well after I Disable SELinux,
Thanks all
Can you look at the selinux log to see what was denied and post it here? I haven't heard about this problem before.
After i updated:
net.core.rmem_max = 25480000
net.core.wmem_max = 25480000
The warning log out, Jgroups start ok however the session replication still not work:
That's right, but it was just a warning, not an error. It would only impact ideal performance, but won't stop the clustering from functioning.
-
9. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
namtn Apr 19, 2014 2:33 AM (in response to rhusar)Hi Husar,
I found some things in SELinux logging:
type=AVC msg=audit(1397035766.394:678): avc: denied { name_bind } for pid=11326 comm="httpd.worker" src=23364 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=udp_socket
-
10. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
rhusar Apr 25, 2014 4:43 AM (in response to namtn)Oh yes, to run such a low level software with selinux, you need to have the policy in place.
Check this entry in the FAQ:
http://docs.jboss.org/mod_cluster/1.2.0/html/faq.html#d0e5711
-
11. Re: Session replication not work with Jboss eap 6.2 and mod_cluster 1.2.6
kowshikns Sep 12, 2014 5:59 AM (in response to namtn)Hi Tram,
I am trying to configure session replication from past 3 days. but with no success.
Is it possible to share the configuration files please? THis would be helpful
Thanks in advance.
Kowshik