-
Notifications
You must be signed in to change notification settings - Fork 138
CBGT Persisted State
Traun Leyden edited this page Sep 14, 2015
·
2 revisions
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.
- 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)
- Setup a two node Sync Gateway cluster
- Stop both SG nodes
- Delete the
_sync:CFG
document in the bucket specified indb/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)