Add New Datacenter to XDR Dynamically (pre-3.8.x)

xdr

#1

Hi guys,

If I want to add a new DC to XDR, can I configure it without restarting asd?

The effect should be equal to:

xdr {
...
  datacenter DC1 {
    dc-node-address-port HOST PORT
  }
...
}

namespace NS1 {
...
  xdr-remote-datacenter DC1
...
}

Can I use asinfo to do this?

Best, Simon


#2

It seems that I can change the aerospike.conf and then restart xdr without restarting asd.


#3

You are right. For adding a brand new DC, you need to change config and restart XDR.

BTW, In the new XDR (3.8+) you need to plan this more carefully, as XDR and ASD are merged.


#5

Thanks for your confirmation and advice!