-
1. Re: jvmroute in domain clustering
pferraro Jan 25, 2013 11:13 AM (in response to willemnoorduin)You can set the jvmRoute per server via the web subsystem.
e.g.
{code:xml}<subsystem xmlns="urn:jboss:domain:web:1.2" instance-id="my-node-name"/>{code}
-
2. Re: jvmroute in domain clustering
willemnoorduin Jan 28, 2013 2:34 AM (in response to pferraro)Okay, I see:
[domain@145.78.121.33:9999 /] /profile=test-fullha/subsystem=web:write-attribute(name=
default-virtual-server instance-id native
So I can set this property on the profile-level. But:
[domain@145.78.121.33:9999 /] /host=server2/server-config=instance/
interface jvm path system-property
and:
[domain@145.78.121.33:9999 /] /host=fbewslave/
core-service interface jvm path server server-config system-property
So I can't use instance-id to refer to a single node in a cluster (or, in JBoss-EAP 6 lingo, a profile). I guess I should one of the system-property tags (either in server-config=instance) or /host=fbewslave).
-
3. Re: jvmroute in domain clustering
rhusar Jan 28, 2013 7:08 AM (in response to willemnoorduin)1 of 1 people found this helpfulIn a domain, since you are sharing one profile, you will indeed need to use a system property to differentiate the value between the nodes.
You seem to know the rest. Configure instance ID to an expression:
[domain@localhost:9999 /] /host=master/server=server-one/subsystem=web/:read-resource
{
"outcome" => "success",
"result" => {
"default-virtual-server" => "default-host",
"instance-id" => expression "${jboss.web.instance-id}",
...
and configure the actual value for each host:
[domain@localhost:9999 /] /host=master/server-config=server-one:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
...
"system-property" => {"jboss.web.instance-id" => {
"boot-time" => false,
"value" => "instanceOneJvmRoute"
}}
}
}