-
1. Re: mod_cluster with jboss communication
mbabacek Jan 9, 2013 6:35 AM (in response to weblogic.subha)Hmm, I am sorry, I don't see what I can do for you...can you rephrase your question a bit?
Anyhow,
Mod_cluster uses UDP multicast olny for advertising the balancer's presence.
Balancer <----> Nodes communication as to client's requests or MCPM messages is TCP/IP...
If your enviremoment does not support multicast, just don't use Advertising feature and rely on proxy-list configuration (tells the node where to look for balancers).
-
2. Re: mod_cluster with jboss communication
weblogic.subha Jan 9, 2013 6:45 AM (in response to mbabacek)nothing man
all the 3 boxes in VLANS. and later it may be in production Jboss inside the firewall
so in this time the cluster members are not communicate. so we rerequired unicast how we configure unicast in jboss
and useing mod_cluster
-
3. Re: mod_cluster with jboss communication
rhusar Jan 9, 2013 7:10 AM (in response to weblogic.subha)To answer this question:
how we configure unicast in jboss
Look into standalone-ha.xml and you should see:
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
<stack name="udp">
<transport type="UDP" socket-binding="jgroups-udp"/>
<protocol type="PING"/>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2"/>
<protocol type="UNICAST2"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="UFC"/>
<protocol type="MFC"/>
<protocol type="FRAG2"/>
<protocol type="RSVP"/>
</stack>
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<protocol type="MPING" socket-binding="jgroups-mping"/>
<protocol type="MERGE2"/>
<protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2"/>
<protocol type="UNICAST2"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="UFC"/>
<protocol type="MFC"/>
<protocol type="FRAG2"/>
<protocol type="RSVP"/>
</stack>
</subsystem>
Just switch the stack to tcp:
default-stack="tcp"
Afterwards, you will probably have to change MPING to TCPPING with static node configuration.
-
4. Re: mod_cluster with jboss communication
weblogic.subha Jan 10, 2013 1:19 AM (in response to rhusar)hi guys
I hav uploaded Environment Image also
pls see and give u r valuble information
-
5. Re: mod_cluster with jboss communication
rhusar Jan 22, 2013 6:28 AM (in response to weblogic.subha)The topology is clear, so what is the question now?
To avoid using multicast for mod_cluster, use attribute proxy-list in mod-cluster-config element [1].
[1] http://docs.jboss.org/mod_cluster/1.1.0/html/java.AS7config.html#ModClusterSubSystemConfiguration
-
6. Re: mod_cluster with jboss communication
weblogic.subha Jan 24, 2013 6:10 AM (in response to rhusar)Thanks Husar,
I have only single mod_cluster, I have 20 apps deployed on jboss nodes. all the nodes in different server groups how to add no of server groups in single load balencer
mod_cluster uses multicast to discover the jboss nodes. This won’t work in production or staging as jboss is inside the firewall and thus on a different VLAN. Multicast does not work across VLANs.How to overcome this situation and another thing is I am using jboss EAP6.0. domain level
where we add the proxy urls HOST.xml or Domain.xml
-
7. Re: mod_cluster with jboss communication
rhusar Jan 25, 2013 9:28 AM (in response to weblogic.subha)Right, you will have to use static configuration here.
mod_cluster uses multicast to discover the jboss nodes. This won’t work in production or staging as jboss is inside the firewall and thus on a different VLAN. Multicast does not work across VLANs.How to overcome this situation and another thing is I am using jboss EAP6.0. domain level
To do this, if you prefer editing XML files, edit the mod cluster configuraion and configure attribute proxy-list like this:
<mod-cluster-config proxy-list="10.0.1.2:6667"/>
It is comma-seprated list of host:port of the load-balancer to register the AS node with.
-
8. Re: mod_cluster with jboss communication
weblogic.subha Jan 25, 2013 2:03 PM (in response to rhusar)Thanks Huser,
u given valuble information
<mod-cluster-config proxy-list="10.0.1.2:6667"/>
here 10.0.1.2:6667 is Loadbalencer url ?
in jboss level we need any configuration is required or not ?
where we add proxy list url in httpd.conf or domain.xml
I seen some configuration in jboss console --- > mod_cluser that is any related with load balencer(mod_cluster) ?
In Jboss console we seen the configuration serverAdvertise proxy url .....some thing
both are same or jboss mod_cluster different ?
pls specify
-
9. Re: mod_cluster with jboss communication
rhusar Jan 28, 2013 4:46 AM (in response to weblogic.subha)here 10.0.1.2:6667 is Loadbalencer url ?
No exactly URL, but HOST:PORT combination. If you have it under different context you would need proxy-url which if defined, this value will be prepended to the URL of MCMP commands. You can likely ommit this.
in jboss level we need any configuration is required or not ?
Yes, this is at JBoss level. You need to tell the JBoss AS which load-balancers to register with if multicast doesn't work for you.
where we add proxy list url in httpd.conf or domain.xml
Open up domain.xml and look for "mod-cluster-config" -- there you will configure this.
I seen some configuration in jboss console --- > mod_cluser that is any related with load balencer(mod_cluster) ?
Yes, thats the same configuration in the console. You can configure this from the console if you prefer that.