Skip to content

CBGT Configuration Values

Traun Leyden edited this page Nov 16, 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.
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

Example config:

{
    "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",
            "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