Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

5.2. Creating Affinity Groups

An Affinity Group sets a preference for which JBoss ON servers manage which JBoss ON agents. An affinity group only sets a preference for which server will manage the agent, not an absolute requirement. All agents are still managed within the JBoss ON server cloud, so any JBoss ON server can, theoretically, manage any JBoss ON agent based on the current load and performance.
Important
Agents only have an affinity preference in high availability. This means that agents have a preference in which server they attempt to contact. JBoss ON uses two-way communication, therefore servers also contact agents. Servers — regardless of the partition or the agent affinity configuration — can contact any agent in JBoss ON even if the server is not in that agent's affinity group or if the server does not manage the agent.
The affinity groups page shows the number of agents and servers assigned to each affinity group.
Note
An agent and a server can only belong to a single affinity group.

Figure 5.5. Listing Affinity Groups

Listing Affinity Groups

Procedure 5.1. Create an Affinity Group

Note
To edit an affinity group, click its name, then manage it the same as creating a new affinity group.
  1. Click the Administration
    tab in the top menu.
  2. Click .
  3. Click the Create New button.
  4. Enter a name for the new affinity group, and click Create New.
  5. In the Agent Members group, click the checkboxes by the agent names to add to the group, and click Update Membership.
  6. In the Server Members group, click the checkboxes by the server names to add to the group, and click Update Membership.
  7. Click the Return to Affinity Group Link.
    Once both servers and agents have been added to the affinity group, the group is fully configured.