You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new distributed index 1.2 release will be using CBGT for the first time -- CBGT is the component that gives us the sharded DCP feed. CBGT stores internal state in two places:
Files - CBGT needs to store some files which persist some of it's node-specific internal state. The directory for these files is specified in db/cluster_config/data_dir.
Bucket - CBGT also stores it's "CFG" document in a bucket, which contains configuration/metadata that is relevant to all nodes in the cluster.
Test case: delete data_dir
Setup a two node Sync Gateway cluster
Stop one SG node
Delete the data_dir
Restart the SG node
Make sure it starts successfully and continues to receive DCP updates upon restart (unfortunately, I think the only way to do that is to look in the logs)
Test case: delete CFG document
Setup a two node Sync Gateway cluster
Stop both SG nodes
Delete the _sync:CFG document in the bucket specified in db/cluster_config/bucket
Restart the SG nodes
Make sure it starts successfully and continues to receive DCP updates upon restart (unfortunately, I think the only way to do that is to look in the logs)