Im following the documation for xdcr statistics api:
https://dhttps://docs.couchbase.com/server/current/rest-api/rest-xdcr-statistics.htmlcs.couchbase.com/server/current/rest-api/rest-xdcr-statistics.html
I’d like to write functions which allow monitor replica satatus:
1.Check if replica exists for source_bucket–>target_bucket
far as i check , it seems I must have the replica UUID in ordet to check the status of
existing replica (either running/paused ) ,
i.e:
curl -X POST -u Administrator:Administrator http://aaaa:8091/settings/replications/7bbc6033acdd8922079eef52c0f83559%2Fsource_bucket%2target_bucket
it seems i first need to get all replica under the cluster ,
meaning:
curl -u Administrator:Administrator -v -X GET http://aaaa:8091/pools/default/tasks
then i can extract the UUID
and continue from there
2.Number of files replica sync/copy :
following:
https://docs.couchbase.com/server/current/rest-api/rest-xdcr-statistics.html
As test
curl -u Administrator:Administrator http://123.123.123.23:8091/pools/default/buckets/com.amdocs.digital.ms.partymanagementsubdomain/stats/replications%2F7bbc6033acdd8922079eef52c0f83559%2Fcompartymanagementsubdomain%2Ftarget_bucket%2Fdocs_written
How could i know how many record replicate written ?
it returns some unclear information: