-
1. Re: Jboss 7 cluster node name..
yweintraub May 3, 2012 9:21 AM (in response to pragnyas)Hi Fan,
You can set the instance-id attribute in the web subsystem - otherwise a guid (or is it a uuid??) will be generated (which is what you're seeing now).
I've been using jboss.node.name as the instance-id value, since I already set that for other reasons in my environment, as shown below.
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" instance-id="${jboss.node.name}" native="false">
Then, when you start your server, you include the jboss.node.name as a system property, and mod_cluster will then use that name, for example.
./standalone.sh -Djboss.node.name=JBoss-AS7-S2 -c=standalone-ha.xml
You can, of course, also simply code an actuall value into the configuration file if that's easier for you.
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" instance-id="JBoss-AS7-S2" native="false">
-
2. Re: Jboss 7 cluster node name..
pferraro May 17, 2012 12:17 PM (in response to yweintraub)On top of what Yaakov already mentioned, the default JvmRouteFactory in mod_cluster will look for a jboss.mod_cluster.jvmRoute system property, and if not found, will autogenerate one using a UUID.
e.g.
./standalone.sh -Djboss.mod_cluster.jvmRoute=JBoss-AS7-S2 -c standalone-ha.xml
An instance-id, if defined, will always take precedence.