Home > java-internals > Enabling plain clustering on JBoss in 3 steps

Enabling plain clustering on JBoss in 3 steps

This quick tip tells about enabling clustering on a existing non-all JBoss realm($JBOSS_HOME/server/all), say default realm ($JBOSS_HOME/server/default) (by default clustering with farming (hot-deployment) in enabled for ‘all’ realm).

1) Synchronize(copy) the lib/*.jar from all to the custom realm (eg. default)
2) Copy the cluster-service.xml  from ‘all’ to your custom realm and retain the mbean with code org.jboss.ha.framework.server.ClusterPartition, removing the other beans, as they are need for advanced configuration.Be-default, the discovery of the other nodes in the partition is identified by UDP configuration specified by PartitionConfig tag.
3) Copy the farm-service.xml from all/deploy.last to your custom realm directory.

Repeat these steps on all cluster instances.

Run the JBoss cluster server instances using

run -c [realm_id] -b 0.0.0.0

Note: If your cluster instance binds to localhost/127.0.0.1, you could bind to your actual IP

run -c [realm_id] -b x.x.x.x

You could read more at JBoss Clustering chapter

Categories: java-internals Tags:
  1. No comments yet.
  1. No trackbacks yet.