The documentation states:
If the Sync Function is changed, Sync Gateway needs to reprocess all existing documents in the bucket to recalculate the routing and access assignments.
This whole section of the docs scares me a bit, tbh. Want to make sure I fully understand all the caveats and corner cases. First question: if I have sgw running in a kubernetes cluster behind a load balancer, I ought to be able to drop the # replicas down by one, and redeploy a new one with the new sync function configuration – however, there’s a period where there will be a mix of old sync-function and new sync function. What is the recommendation on handling this situation properly?