Articles in this section

How to Reset XDR Connections Dynamically

Context

How to reset XDR connections without restarting asd or using ESP for server versions 5.0+.


Method

Dynamically disassociate the namespace(s)

  • asadm
    asadm -e "enable; manage config xdr dc DC1 remove namespace biggy"
  • asinfo
    asinfo -v "set-config:context=xdr;dc=DC1;namespace=biggy;action=remove"

Dynamically unseed node(s)

asinfo -v "set-config:context=xdr;dc=DC1;node-address-port=192.168.55.xxx:3000;action=remove"

If using TLS:

asinfo -v "set-config:context=xdr;dc=DC1;node-address-port=<IPADDRESS>:<PORT>:<TLSNAME>;action=remove"

 

Wait about 30 seconds and/or use a command such as netstat -anpt | grep <ip address on destination> | wc -l to check for existing connections

$ netstat -anpt | grep 192.168.55.xxx | wc -l
0

When the netstat command (or similar command) outputs 0 connections, then you can re-seed the node(s) and re-associate the namespace(s).

Dynamically re-seed node(s)

asinfo -v "set-config:context=xdr;dc=DC1;node-address-port=192.168.55.xxx:3000;action=add"

if using TLS:

asinfo -v "set-config:context=xdr;dc=DC1;node-address-port=<IPADDRESS>:<PORT>:<TLSNAME>;action=add"

 

Dynamically rewind the namespace(s) for the duration of when it was unseeded/disassociated.

  • asadm: 600 = rewind from 10 minutes
    asadm -e "enable; manage config xdr dc DC1 add namespace biggy rewind 600"
  • asinfo: 600 = rewind from 10 minutes
    asinfo -v "set-config:context=xdr;dc=DC1;namespace=biggy;action=add;rewind=600"

 


Notes

If a node is declared unhealthy (in case of connector DC, if we cannot connect to the node for 30 secs), we re-resolve the dns name given in the config.

Applies To Earliest Version

5.0

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful