Our application is successfully synchronizing two Couchbase Server database using the Sync Gateway (not using XDCR). I am able to create/delete replication tasks and also monitor the tasks themselves using the “/_active_tasks” endpoint all ok.
However when a replication task is created there seems to be a fairly long period (10’s of mins in our case) of time where the Sync Gateway is checking to see which documents need to be copied before actually doing anything. This means that the Active Tasks results doesn’t show any documents being read/written for quite some period of time after a replication task has been created.
Is there any way to monitor what the Sync Gateway is doing during this “checking” phase so that we can provide feedback to the user that their replication request is actually being worked on, and they just need to wait?
At this stage my best option seems to be to watch the file size of the “sync_gateway_error.log” and just say that the Sync Gateway is working when it sees the file size increasing. Is there a better way?