To simplify future upgrades, you should migrate the cluster discovery settings in the tcp.xml file to the jgroups.properties file.
When you upgrade, PingFederate can set the default
configuration of any new features in the supported discovery protocols. Because of
this, you should use the
<pf_install>/pingfederate/bin/jgroups.properties
file to enable and configure cluster discovery settings. For example, if
NATIVE_S3_PING
gets a new discovery protocol configuration, a
PingFederate upgrade could automatically add the
following line to jgroups.properties as a reasonable default,
letting you take advantage of the new configuration:
pf.cluster.NATIVE_S3_PING.new_configuration=reasonable-default-configuration-value
For more information, see Dynamic cluster discovery.
The tcp.xml file has a ${DISCOVERY_TAG}
that replaces all content related to cluster discovery protocol configuration.
The jgroups.properties file is where the discovery protocol
configuration exists and lets you do what you previously did in
tcp.xml, such as:
- Add custom configuration to discovery protocols that PingFederate officially supports, using the
following
syntax:
pf.cluster.{discovery protocol}.{attribute name}={attribute value}
For example, the following line adds a custom attribute called
bucket_prefix
with the valuejgroups
to theNATIVE_S3_PING
protocol configuration:pf.cluster.NATIVE_S3_PING.bucket_prefix=jgroups
- Add and configure a discovery protocol that PingFederate does not officially support, using
the following
syntax:
pf.cluster.discovery.protocol={discovery protocol} pf.cluster.discovery.class={fully qualified class name}
For example, the following lines add a discovery protocol called
CUSTOM
and then add an attribute calledattr1
with the valuevalue1
to it:pf.cluster.discovery.protocol=CUSTOM pf.cluster.discovery.class=org.jgroups.custom.discovery pf.cluster.CUSTOM.attr1=value1
The examples in the following table compare the syntax of cluster discovery settings in the tcp.xml file and the jgroups.properties file.
Examples in tcp.xml |
Examples in jgroups.properties |
---|---|
|
|
|
|
|
|
To migrate the cluster discovery settings from the tcp.xml file to the jgroups.properties file: