How To Find Out What Nodes are in an XDR Datacenter

How To Find Out What Nodes are in an XDR Datacenter

Context

It may sometimes be useful to know which nodes are being shipped to for a datacenter in XDR. For example, a misconfiguration here can lead to records being silently shipped to the wrong destination so that the correct destination is not updated by XDR with no obvious cause. Because the seed nodes can be configured dynamically, and do not necessarily reflect the actual composition of the destination cluster, simply looking in aerospike.conf may not be adequate.

Method

Use asadm to check the active configuration on all nodes. The command varies depending on theAerospike server version.

5.0 and later

asadm -e "enable; asinfo -v 'get-config:context=xdr;dc=west1' -l"

4.9 and earlier

Either of these will work:

asadm -e "asinfo -v get-dc-config -l"
# OR
asadm -e "show config dc like nodes -flip"

Keywords

XDR DC DATACENTER SEED NODES

Timestamp

August 2021

© 2021 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.