Skip to content

CBGT Configuration Values

Traun Leyden edited this page Sep 3, 2015 · 15 revisions

Configuration Values

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.
databases/db/feed_params/num_replicas 0 This feature is not currently supported, however it was left in for possible future testing. Please ignore it for now and leave it set to 0.
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.

Example config:

{
    "interface":":4984",
    "adminInterface":":4985",
    "log":[
        "*"
    ],
    "verbose":"true",
    "cluster_config":{
        "server":"http://localhost:8091",
        "data_dir":"/tmp/sg",
        "bucket":"default"
    },
    "databases":{
        "db":{
            "feed_type":"DCPSHARD",
            "feed_params":{
                "max_partitions_per_pindex":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
            }
        }
    }
}
Clone this wiki locally