Get indexes num_replica


I did’nt find a way to get “num_replica” for indexes.
Is it possible ?


Hi @Etd45 ,

You can see the num_replica for each index on the Couchbase Web UI (indexes tab).

You can also use following url to get the json output of status of all indexes, which includes num_replica. But I would recommend not to use this API in the production setups as this is a very costly call with respect to performance impact.

GET http://<indexer-service-node-addr>:9102/getIndexStatus

There is an open improvement for getting “num_replica” for indexes via n1ql query

Note that the num_replica value displayed on the UI and returned via above mentioned URL represent the “configured” number of replicas for that index.

Hope this helps.