How to Forward Writes Originating from XDR

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Synopsis:

After setting up XDR, you find that XDR writes are not being forwarded onto the next cluster.

Example: Customer has 3 cluster (Cluster A, B, & C). Cluster A replicates to Cluster B. Cluster B, was only configured XDR to foward two sets to Cluster C, but it’s not working.

Solution:

The foward-xdr-writes parameter is off by default. What forward-xdr-writes does is, if true, it will forward writes that originated from another XDR to a remote XDR service. But before you set forward-xdr-writes to true, be aware of your topology and ensure you aren’t creating a forwarding loop.

Dynamic configuration:

asinfo -v 'set-config:context=xdr;forward-xdr-writes=true'

Static configuration:

...
xdr {
    forward-xdr-writes true
    ...
}
namespace <namespace-name-1> {
    ...
}
...

Note: This can also be configured per namespace with the ns-forward-xdr-writes parameter.

Applies To

Server prior to v. 5.0