[wildfly-dev] is <server name=""> supposed to be the same as -Djboss.node.name?
Dennis Brouwer
dennis.brouwer at kizitos.com
Tue Jun 28 17:43:23 EDT 2016
Dear John,
Suppose you have two JBoss instances running on one (the same) host (using
e.g. port offset) identifying both would be done by explicitly setting the
jboss.node.name so this is expected behavior. Otherwise there would be a
conflict. (In our development stage we have over 30 JBoss servers running
on the same host, all being tied up to JGroups).
Regards Dennis
On Tue, Jun 28, 2016 at 11:30 PM, John Mazzitelli <mazz at redhat.com> wrote:
> There is some confusion about setting the WildFly node name (at least in
> the standalone server case).
>
> <tl;dr>
> QUESTION: How does one change the server's cluster node name (say, for
> the JGroups configuration). I thought both would be equivalent (either
> setting <server name="a"> or setting -Djboss.node.name=a) but that does
> not seem to be the case.
> </tl;dr>
>
> Suppose I start WildFly via standalone.sh (with its stock out of box
> standalone.xml) but with the command line option:
>
> -Djboss.node.name=wotgorilla
>
> When I do this, I see the node-name (in the server-environment subsystem)
> set to "wotgorilla" but the server's name is my normal hostname (in this
> case "mazztower"):
>
> /core-service=server-environment/:read-attribute(name=node-name)
> {
> "outcome" => "success",
> "result" => "wotgorilla"
> }
>
> /:read-attribute(name=name)
> {
> "outcome" => "success",
> "result" => "mazztower"
> }
>
> OK, but now suppose I edit standalone.xml - in the top-level root element
> <server> I add the name attribute:
>
> <server name="foobar">
>
> and I start the server WITHOUT any commmand line options (just
> "standalone.sh"). I see that BOTH "name" and "node-name" match my new
> server name:
>
> /core-service=server-environment/:read-attribute(name=node-name)
> {
> "outcome" => "success",
> "result" => "foobar"
> }
>
> /:read-attribute(name=name)
> {
> "outcome" => "success",
> "result" => "foobar"
> }
>
> QUESTION: Why the discrepency? Is this a bug or expected behavior? How
> does one change the server's cluster node name (say, for the JGroups
> configuration). I thought both would be equivalent (either setting <server
> name="a"> or setting jboss.node.name) but that does not seem to be the
> case.
>
> Thanks,
> John Mazz
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
--
Best regards,
*Dennis Brouwer*
Extraordinary Goalkeeper
ZEEF - Kizitos B.V.
Amstelboulevard 184
1096 HM Amsterdam
www.ZEEF.com <http://www.zeef.com/>
US: +1 (415) 992-9409
NL: +31 (085) 888-3186
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20160628/981d0ed4/attachment-0001.html
More information about the wildfly-dev
mailing list