Example PolicyCenter cluster configuration

One way to assign a role to an individual server is to use the <registry> element in file config.xml. See Understanding the configuration <registry> element for details.

The following sample code illustrates a PolicyCenter cluster definition with five cluster members.

<registry roles="batch, scheduler, workqueue, messaging, startable, ui>
  <server env="prod" serverid="pcnode1"roles="batch, scheduler, messaging, startable"/>
  <server env="prod" serverid="pcnode2"roles="batch, scheduler, messaging, startable"/>
  <server env="prod" serverid="pcnode3"roles="workqueue, ui" />
  <server env="prod" serverid="pcnode4"roles="workqueue, ui" />
  <server env="prod" serverid="pcnode5"roles="ui" />
</registry>

It is also common to set the server role during the start of the application server using a command line option.