Red Hat Bugzilla – Bug 813066
[as7] Expose multicast group/port of a ha-server as trait on server level
Last modified: 2015-09-02 20:01:04 EDT
In as4/5 there was the cluster partition name to "identify" clusters and to e.g. build dynagroups that contain all the members of one cluster. See e.g. https://issues.jboss.org/browse/AS7-4512
In AS7 this feature is deprecated so we need a replacement
One way to do that is to expose the multicast group/port as string trait on server level
(see also https://issues.jboss.org/browse/AS7-4512?focusedCommentId=12684672&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12684672 )
Targetting this correctly.
This is done in master:
The new trait is called 'multicastAddress' and is defined on the Standalone Server and Managed Server types. A value will only be returned for the trait for a server that is in HA/cluster mode. The value format is "HOST:PORT" (e.g. "22.214.171.124:45688").
[master http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=b1e5c9b] excludes the 'multicastAddress' trait from the null-metric-values test for Managed Servers, since a null value is expected when the managed servers are not in HA mode, which is currently the case for the host controller instance used by our itests.
Created attachment 601749 [details]
verified on both standalone and domain modes.