Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database. Try it now! Brought to you in partnership with MongoDB.

As a developer, if you’ve installed Couchbase Server 2.0 and seen its new features,
you might want to hit the server with some load to do some basic
testing of your Couchbase cluster. I’ve personally had a number of
reasons to need to run a random workload against Couchbase to be able to
demonstrate how it works and the different statistics shown in the
Couchbase admin UI.

Using cbworkloadgen, a sample workload generator tool for Couchbase, you can try a different operations and monitor the activity of your cluster. cbworkloadgen provides basic testing functionality but is not designed for performance or stress testing.
It has options for tuning the ratio of set:get operations, the number
and size of the documents inserted and the number of concurrent worker
threads.

If
you want to quickly test your Couchbase Server installation using
cbworkloadgen, you can execute the cbworkloadgen tool supplying the IP
address of the running node with the -n option.

If
you want to do a longer test, you can insert more items and control the
item size, number of threads and the ratio of sets:gets. In the example
below we insert 500K items with a minimum size of 10 and 20% set:get
ratio.

Finally, don’t forget to look at how the different metrics change in the Couchbase admin UI as shown below:

A workload in progress shown using the admin UI

Summary stats

Stats for data partitions (vBuckets)

Disk queue stats

As you can see, cbworkloadgen is a quick way to generate a load against Couchbase Server without a lot of effort.

Good luck with your Couchbase Applications!

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.