"Today, we configure clustered JBossAS instances with a "jboss.partition.name" which represents the identity of the cluster of which it is a part. However as far as I've been able to figure out, we do not have a hard-and-fast concept of a node name. I would like to propose a system property "jboss.node.name" which represents the identity of the node itself. This property would have a sensible default but would also be modifiable just as partition name is today.
In terms of implementation, my few minutes of research on the topic indicate that the best way to calculate a default node name at boot would be as follows.
1. Define a system property, "jboss.qualified.host.name", which, if unspecified, defaults to the value of:
1. the value of the "jboss.host.name" system property, or if that is not specified,
1. the HOSTNAME env var, or if that is not specified,
2. the COMPUTERNAME env var, or if that is not specified,
3. the value of InetAddress.getLocalHost().getHostName(), or if that does not turn up anything,
4. a default value such as "unknown-host.unknown-domain"
2. Define a system property, "jboss.host.name" which, if unspecified, defaults to host portion of the above property
3. Define a system property, "jboss.node.name" which, if unspecified, defaults to the value of the above property
Also, add the following command-line options:
-H, --hostname=<name> Set the host name
-N, --nodename=<name> Set the node name to use
(Edited with final system property names, and command line options)