Skip to content
The Membase Server Superdupervisor.
Erlang JavaScript HTML CSS Ruby Python Other
Latest commit efd185a May 24, 2016 @aartamonau aartamonau committed with vzasade Add a script to convert timestamps to human readable datetimes.
Change-Id: I251299132e6ac07ba30744be36b795bfa991eb2d
Tested-by: Aliaksey Artamonau <>
Reviewed-by: Artem Stemkovski <>
Failed to load latest commit information.
cmake_modules [dialyzer] Remove commented out path to ibrowse. Apr 20, 2016
deps dump ns_couchdb processes on timeout May 23, 2016
doc Allow modifications to connection_idle_time in memcached Mar 4, 2016
etc MB-17811 audit add/update/delete of external users Mar 22, 2016
include Improve ns_config:merge_kv_pairs (and related) types. May 13, 2016
priv MB-16821: support enabling of password autocomplete in UI May 24, 2016
scripts Add a script to convert timestamps to human readable datetimes. May 25, 2016
src Die on extra data on socket after memcached call. May 25, 2016
test MB-19037 merge_kv_pairs to return a set of keys to rereplicate. May 13, 2016
.gitignore MB-18289: concatenate UI app javascripts Mar 21, 2016
CHANGES MB-8663 Mention where to find replication id. Aug 26, 2013
CMakeLists.txt MB-18289: concatenate UI app javascripts Mar 21, 2016
GNUmakefile MB-18289: concatenate UI app javascripts Mar 21, 2016
LICENSE bug 1626 - apache license headers on files Jun 29, 2010
README.markdown MB-14932: update README.txt Apr 13, 2016
cbbrowse_logs MB-8101: allow overriding of logs reports dir Apr 16, 2013
cbcollect_info MB-19552 Include only base name into upload url. May 9, 2016
cbreset_password MB-18982: cbreset_password to accept "y" as valid response May 20, 2016
cluster_connect [cluster_connect] Allow skipping rebalance. Mar 30, 2016
cluster_run MB-16821: support enabling of password autocomplete in UI May 24, 2016
configure MB-10807 Fix make test and make dialyzer. Apr 9, 2014 Untabify May 24, 2016 Compile supervisor2 before everything else. Jun 25, 2015


The Couchbase Server

This application represents the top of the hierarchy of all memcached smart services. It is an application in the Erlang OTP sense.


Build dependencies include:

  • erlang R16B03


You should use top level make file and repo manifest as explained here:

Runtime dependencies

Before you start the server, you may need to do the following

  • Make sure the needed ports are not being used (these include 8091, 11211, 11212, etc).


After building everything via top level makefile you'll have couchbase-server script in your $REPO/install/bin (or other prefix if you specified so). You can run this script for normal single node startup.

During development it's convenient to have several 'nodes' on your machine. There's ./cluster_run script in root directory for achieving that. Feel free to ask --help. You normally need something like -n2 where 2 is number of nodes you want.

It'll start REST API on ports 9000...9000+n. memcached on ports 12000+2i and 11999-i and moxi ports on 12001+2i ports. CAPI (which was originally expected to be couch-compatible http API implementation) is 9500...9500+n

Note that blank nodes are not configured and need to be setup. I suggest trying web UI first to get the feeling of what's possible. Just visit REST API port(s) via browser. For development mode clusters it's port 9000 and higher. For production mode it's port 8091.

Other alternative is setting up and clustering nodes via REST API. couchbase-cli allows that. And you can easily write your own script(s).

There's ./cluster_connect script that eases cluster configuration for development clusters. Again, ask --help.

Sometimes during debugging/development you want smaller number of vbuckets. You can change vbuckets number by setting COUCHBASE_NUM_VBUCKETS environment variable to desired number of vbuckets before creating new couchbase bucket.

Other tools

Couchbase ships with a bunch of nice tools. Feel free to check $REPO/install/bin (or $PREFIX/bin). One of notable tools is mbstats. It allows you to query buckets for all kinds of internal stats.

Another notable tool is couchbase-cli.

Copyright (c) 2016, Couchbase, Inc.

Something went wrong with that request. Please try again.