Skip to content

Instantly share code, notes, and snippets.

@steveyen
Created April 8, 2015 18:58
Show Gist options
  • Save steveyen/2d23156a0b0947f02588 to your computer and use it in GitHub Desktop.
Save steveyen/2d23156a0b0947f02588 to your computer and use it in GitHub Desktop.
cbft -h
$ ./cbft -h
cbft: couchbase full-text server
Usage: cbft [flags]
Flags:
-bindAddr ADDR:PORT
optional HTTP/REST listen addr:port;
default is 'localhost:8095'.
-c, -cfg, -cfgConnect CFG_CONNECT
optional connection string/info to a configuration server
for clustering multiple cbft nodes:
* couchbase:http://BUCKET_USER:BUCKET_PSWD@CB_HOST:CB_PORT
- manages a cbft cluster configuration in a couchbase
bucket; for example:
'couchbase:http://[email protected]:8091';
* simple
- intended for development usage, the 'simple'
configuration provider manages a configuration
for a single, unclustered cbft node in a local,
simple file that's stored in the dataDir;
default is 'simple'.
-container PATH
optional slash separated path of logical parent containers
for this node, for shelf/rack/row/zone awareness.
-data, -dataDir DIR
optional directory path where local index data and local
configuration files will be stored on this node;
default is 'data'.
-h, -H, -?, -help
print this usage message and exit.
-register STATE
optional flag to register this node in the cluster as:
* wanted - make node wanted in the cluster,
if not already, so that it will participate
fully in data operations;
* wantedForce - same as wanted, but forces a cfg update;
* known - make node known to the cluster,
if not already, so it will be admin'able
but won't yet participate in data operations;
this is useful for staging several nodes into
the cluster before making them fully wanted;
* knownForce - same as known, but forces a cfg update;
* unwanted - make node unwanted, but still known to the cluster;
* unknown - make node unwanted and unknown to the cluster;
* unchanged - don't change the node's registration state;
default is 'wanted'.
-s, -server URL
required URL to datasource server;
example for couchbase: 'http://localhost:8091';
use '.' when there is no datasource server.
-staticDir DIR
optional directory for web UI static content;
default is using the static resources embedded
in the program binary.
-staticETag ETAG
optional ETag for web UI static content.
-tags TAGS
optional comma-separated list of tags or enabled roles
for this node, such as:
* feed - node can connect feeds to datasources;
* janitor - node can run a local janitor;
* pindex - node can maintain local index partitions;
* planner - node can replan cluster-wide resource allocations;
* queryer - node can execute queries;
default is ("") which means all roles are enabled.
-v, -version
print version string and exit.
-weight INTEGER
optional weight of this node, where a more capable
node should have higher weight; default is 1.
Example:
./cbft -bindAddr=localhost:9090 \
-cfg=couchbase:http://my-cfg-bucket@localhost:8091 \
-data=/var/data/cbft-node-9090 \
-server=http://localhost:8091
See also: http://github.com/couchbaselabs/cbft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment