-
Notifications
You must be signed in to change notification settings - Fork 138
CBGT Configuration Values
Adam Fraser edited this page Sep 10, 2015
·
15 revisions
Path | Example Value | Description |
---|---|---|
databases/db/feedtype | DCPSHARD | Valid feed types are TAP, DCP, and DCPSHARD. To use the distributed index feature, it must be set to DCPSHARD. |
databases/db/feed_params/num_shards | 64 | The number of DCP shards that will be created across the cluster of Sync Gateway machines. There must be at least one shard for each Sync Gateway node that you deploy that is configured to be an IndexWriter. |
cluster_config/server | http://localhost:8091 | The URL of the Couchbase Server |
cluster_config/bucket | default | The name of the Couchbase bucket where CBGT can store it's metadata |
cluster_config/username | user | The username for the Couchbase bucket (or blank) |
cluster_config/password | password | The password for the Couchbase bucket (or blank) |
cluster_config/data_dir | /var/lib/sync_dateway/data_dir | The directory where CBGT can persist the node's UDID and other metadata. |
cluster_config/heartbeat_interval_seconds | 10 | The interval in seconds that heartbeats are recorded. Defaults to 10 |
{
"interface":":4984",
"adminInterface":":4985",
"log":[
"*"
],
"verbose":"true",
"cluster_config":{
"server":"http://localhost:8091",
"data_dir":"/tmp/sg",
"bucket":"channel_index"
},
"databases":{
"db":{
"feed_type":"DCPSHARD",
"feed_params":{
"num_shards":64,
"num_replicas":0
},
"server":"http://localhost:8091",
"revs_limit":300,
"users":{
"GUEST":{
"disabled":true,
"admin_channels":[
"*"
]
}
},
"bucket":"default",
"channel_index":{
"server":"http://channel_index@localhost:8091",
"bucket":"channel_index",
"writer":true
}
}
}
}