The Membase Server Superdupervisor.
JavaScript Erlang HTML CSS Python Ruby Other
Latest commit 7be2782 May 23, 2017 @mendepie mendepie committed with dave-finlay MB-22827: Limit new usernames to 128 characters
Length check does not currently work on erlang16 compiled files,
but this is fixed in later versions of erlang.  This means utf8
codepoints with values > 256 will be represented as 2+ bytes.

Unit tests added to validate this behavior which was noted during
manual testing.

Change-Id: I5cec154a6f65449b5b2a763c1a7a3e4bd6ac8f56
Reviewed-on: http://review.couchbase.org/78545
Tested-by: Bob Mende <bob.mende@couchbase.com>
Reviewed-by: Dave Finlay <dave.finlay@couchbase.com>
Permalink
Failed to load latest commit information.
cmake_modules add couch_index_merger/ebin to test ebin path, so couch_skew can May 23, 2017
deps add vbucket number to capi service log May 24, 2017
doc MB-19339: Add support for privilege_debug for memcached Mar 15, 2017
etc MB-19769 REST API for security settings Apr 13, 2017
include MB-22681 store bucket uuid's in bucket related roles May 2, 2017
priv MB-23988: correction in warnings on views page May 26, 2017
scripts MB-23364 cbcollect users.dets file May 11, 2017
src MB-22827: Limit new usernames to 128 characters May 26, 2017
test [supervisor2] Don't delete pid from state when delaying restart. May 25, 2017
.gitignore MB-21254: erl: minify classic-ui Jan 24, 2017
CHANGES MB-8663 Mention where to find replication id. Aug 26, 2013
CMakeLists.txt [cmake] Add a target to build both dependencies and ns_server. Mar 7, 2017
GNUmakefile [test] Have make test run triq tests too. Jan 10, 2017
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-23364 cbcollect users.dets file May 11, 2017
cluster_connect cluster_connect: Add support for 'ephemeral' bucketType Feb 9, 2017
cluster_run MB-18284: Tell indexer to open TLS managment connection Apr 13, 2017
configure MB-10807 Fix make test and make dialyzer. Apr 9, 2014
couchbase-server.sh.in Remove the backslash that used to precede the mlockall flag. Jan 10, 2017
rebar.config.in re-factor xdc_rdoc_manager and capi_ddoc_manager Feb 14, 2017

README.markdown

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.

Building

Build dependencies include:

  • erlang R16B03

Building:

You should use top level make file and repo manifest as explained here: https://github.com/membase/manifest/blob/master/README.markdown

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).

Running

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.