Configuring transaction recovery for managed Liberty servers
You can configure managed Liberty servers to automatically recover transactions on behalf of other servers. This capability is called Peer Recovery.
A managed Liberty server that is configured with a Recovery group and Recovery identity continually monitors its peers. Peers are the other server instances that are configured with the same Recovery group value. When a server detects that one of its peers is deleted, it recovers transactions by using the transaction logs from the deleted server to release any remaining resource locks.
Before you begin
To monitor peers, managed Liberty servers must be configured so that their transaction logs are accessible to all members of the recovery group. A server that runs peer recovery must have access to the same set of transactional resources as the server that is being recovered.
The use of a shared file system for this purpose, such as an rwx persistent volume in a Kubernetes cluster, is explicitly not supported where the file system crosses data centers. This limitation is due to the difficulty of implementing POSIX locking semantics in such a configuration. Under these circumstances, the transaction service must be configured to use a relational database for its transaction logs. For more information, see Transaction log management.
Procedure
Results
Every server in the recovery group is now enabled to automatically recover transactions on behalf of the other servers in the group.