Can we alter Index and make the replica online?

Hello - I have this requirement, where one of my developer created index on production with no replica option and when i looked at it i found thats not good and one option obvious is to drop and recreate it but app might see timeouts as its heavily dependent on this index , is there any option that i can do it online instead of the drop and recreate

You can create another index with same definition with the desired number of replicas. Once that index is ready, you can drop the old one. This will make sure there is no disruption.

The next couchbase release will have the feature to alter the number of replicas as part of Alter Index command.

1 Like