Global Caching Notifications
A local PubSub+ Cache Instance that is actively caching global topics must monitor its connectivity to the home Cache Cluster to ensure that it is caching the same messages as the home Cache Cluster.
If the PubSub+ Cache Instance stops receiving global caching heart beats from the remote home Cache Cluster, it notifies clients of this loss of connectivity through global prefix status messages. (It also generates these messages when connectivity is restored.) These messages are sent to the following topic:
#LOG/NOTICE/VPN/<rtr-name>/VPN_SOLCACHE_GLOBAL_PREFIX_STATUS/<vpn-name>/<distributed-cache-name>
Where:
<rtr-name>
is the name of the Designated Router that the PubSub+ Cache Instance belongs to.
<vpn-name>
is the name of the Message VPN that the PubSub+ Cache Instance belongs to.
<distributed-cache-name>
is the name of the local Distributed Cache that the PubSub+ Cache Instance belongs to.
The binary attachment of the message indicates the state of the PubSub+ Cache Instance’s connection to the home Cache Cluster:
- If the connection is lost, the binary attachment contains the following text: “Cache Instance (id)’s Global Caching connectivity to home cluster is lost.”
- If the connection is restored, the binary attachment contains the following text: “Cache Instance (id)’s Global Caching connectivity to home cluster is restored.”
The message contains additional information in the user property map:
Field | Keyed Data Type | Description |
---|---|---|
status |
String |
The status of the global topic prefixes in the message can be: STALE—Connectivity to the home Cache Cluster is lost, and the PubSub+ Cache Instance is not actively caching global topics. OK—There is connectivity to the home Cache Cluster, and the PubSub+ Cache Instance is actively caching global topics. |
prefix-list |
Stream |
A list of the topic prefixes whose status is being reported. |
distributed-cache-name |
String |
The local Distributed Cache that has lost connectivity with the home Cache Cluster. |
cache-cluster |
String |
The local Cache Cluster within the Distributed Cache that lost connectivity with the home Cache Cluster. |
cache-instance |
String |
The local PubSub+ Cache Instance within the Cache Cluster that lost connectivity with the home Cache Cluster. |
home-cache-cluster |
String |
The Cache Cluster that is home to the topic prefixes listed in this message. |