-
1. Re: Basic jboss clustering for jboss-as-web-7.0.0.Final
pferraro Aug 22, 2011 9:55 AM (in response to shep)For starters, use 7.0.1.Final (just released). There are a number of clustering fixes that you'll not want to be without.
Second, in AS7 (as with AS6), you don't need to set a group name unless you intend to actually have multiple groups in your cluster.
When you start your servers via standalone-ha.xml, you will not see any cluster formation. In AS7, a cluster does not form unless a distributable deployment demands it to start. The first time a <distributable/> web application is deployed, you should see logs in your server.log indicating cluster formation. And yes, everything auto-wires as it did in AS6.
From a practical standpoint, there is one configuration change you'll have to make to get clustering to work. Within standalone-ha.xml, look for the following configuration block.
<interfaces>
<interface name="management">
<inet-address value="127.0.0.1"/>
</interface>
<interface name="public">
<inet-address value="127.0.0.1"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public">
...
</socket-binding-group>
As indicated by the default-interface attribute of the socket-binding-group, the "public" interface is used as the bind address for all socket bindings (including those for clustering services). You will need to change this on each server to use an appropriate non-loopback network interface so that your 2 servers can communicate. That's it. Everything else should just work.
-
2. Re: Basic jboss clustering for jboss-as-web-7.0.0.Final
simas_ch Aug 22, 2011 10:17 AM (in response to pferraro)Two questions:
1)
With AS 5.1 is started the server with
-g EntwPartition -u 239.255.100.100
Where can I set this parameters in AS 7.
2)
I used a network drive to deploy the application and configured it in conf/bootstrap/profile.xml
<bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.StaticClusteredProfileFactory">
...
<property name="applicationURIs">
<list elementClass="java.net.URI">
<value>${jboss.server.home.url}deploy</value>
<value>file:/j:/Stab/T Dok/Projekte/400 Architektur/010 SW-Architektur/JBoss/deploy</value>
</list>
</property>
...
</bean>How can I do that with AS7?
Thanks,
Simon -
3. Re: Basic jboss clustering for jboss-as-web-7.0.0.Final
pferraro Aug 22, 2011 11:16 AM (in response to simas_ch)1. The group name (i.e. -g) used for web session clustering in AS7 is the name of the infinispan cache container used to store web sessions, "web" by default. Unless you actually intend to have multiple groups communicating using the same multicast address, you don't need to override this.
The udp multicast address (i.e. -u) is defined by the multicast-address of the jgroups-udp socket binding.
e.g.
<socket-binding-group name="standard-sockets" default-interface="public">
<!-- ... -->
<socket-binding name="jgroups-udp" port="55200" multicast-address="239.255.100.100" multicast-port="45688"/>
<!-- ... -->
</socket-binding-group>
2. http://community.jboss.org/wiki/DeployingAnApplicationFromAnExternalDeploymentLocation
-
4. Re: Basic jboss clustering for jboss-as-web-7.0.0.Final
shep Aug 22, 2011 1:07 PM (in response to pferraro)I will get 7.0.1 and give it a try. Thank you for the assistance.