-
1. Re: changing node UUID
pferraro Jul 27, 2012 11:57 AM (in response to pragnyas)You can override the node identifier in one of a few ways:
* By specifying a "jboss.mod_cluster.jvmRoute" system property (recognized by mod_cluster)
* By specifying a "jboss.jvmRoute" system property (recognized by JBoss Web and Tomcat)
* By defining a specific instance-id attribute in the web subsystem
As for defining virtual hosts:
-
2. Re: changing node UUID
pragnyas Jul 27, 2012 2:22 PM (in response to pferraro)Paul,
I ;am sorry am a newbie for Jboss... can you please give a ow to kind of exlanation on how to do this for UUID.. Thank you in advance,
How can I do it in mod_cluster.. so it oudl be easy for me...
P
-
3. Re: changing node UUID
pferraro Jul 27, 2012 2:29 PM (in response to pragnyas)e.g.
To override the node ID using a system property:
$ ./standalone.sh --server-config=standalone-ha.xml -Djboss.mod_cluster.jvmRoute=node1
To override the node ID via the web subsystem:
<subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false" instance-id="node1">
...
</subsystem>
Either will work.
-
4. Re: changing node UUID
pragnyas Jul 27, 2012 3:08 PM (in response to pferraro)Paul,
Thanks fo rthe quick reply.. however am sorry fo rthe trouble.. I used domain mode.. I know we can run the same command for domain.sh
but my question is.. if I have 2 nodes.. node1 and node2.. and I have 2 server instances per node.. S1 and S2 on node1, also. s1 and S2 on node2..
What am looking for is.. mod_cluster to display...
node1_s1 (ajp://........)
node1_s2 (ajp://.......)
this kind of message on mod-cluster page..
P
-
5. Re: changing node UUID
pferraro Jul 27, 2012 3:29 PM (in response to pragnyas)In that case, just edit the web subsystem as follows:
e.g.
{code:xml}
<subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false" instance-id="${jboss.node.name}">
...
</subsystem>{code}
and make sure you've named your servers in host.xml as node1_s1, node1_s2, etc.
-
6. Re: changing node UUID
pragnyas Jul 27, 2012 4:06 PM (in response to pferraro)Hi Paul,
Still no good.. I have edited web sub system in all profiles in domain.xml, and have required server names in host-slave.xml file.. (that is what am using..) and still I don't see the changed UUID.. it stil gives me a random number..
Note : My Bad.. that worked.. I forgot to chnage web sysbsystem on my master node.... sorry.. it works perfectly fine now..
P