Removing namespace without downtime (AER-3485)


I have a cluster with one node that has 3 namespaces: mynamespace, test, bar. Each one has a replication factor of 2.

I want to add a second node with only 1 namespace: mynamespace. In brief I want to remove test and bar with no downtime.

When I do that, I see a lot of errors on node#2 complaining that it does not find test and bar.

Please would you suggest a way to remove namespace without any down time?

Thank you

Currently all of the nodes need to agree on which namespaces are in the cluster, so currently, you cannot add or remove namespaces without downtime. The ability to do this type of change without downtime is planned.

Thank you for your response.

Can one leverage XDR for that use case? One could spawn a new cluster and not enable replication for the namespaces that one wants to remove. Once replication has completed, one could shut down cluster#1?

Sure, this can be done. It does require that at some point your clients cut over to the new cluster and there will be a period of time where reads may be stale.

The formula for this can be found here:

1 Like

The ability to add/remove namespaces with rolling restart of the cluster is added starting server version for both Community and Enterprise versions on paxos-protocol version v5.

[AER-3485] - (KVS) Support adding/removing namespaces with rolling restart.

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