I am trying to run a resync operation on a setup which uses multiple sync gateways using some instructions described here: https://docs.couchbase.com/sync-gateway/current/learn/defining-sync-functions.html#changing-the-sync-function.
Here are the steps I’m taking:
- Update sync function config on all instances of sync gateway
- Restart all instances of sync gateway
- Call
/bucket/_offline
on all instances of sync gateway - Run the
/bucket/_resync
on a single instance of sync gateway
I am stuck at this point.
At the end of that link it states: “After the configuration is updated, one instance should be brought up so it can update the database—if more than one is running at this time, they’ll conflict with each other. After the first instance finishes opening the database, the others can be started.”
How do I know when the first instance of sync gateway has finished opening the database? Is this after a successful call to the _resync
endpoint? Or is it after a successful call to the _online
endpoint on a single instance of sync gateway?