Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
5.1 Handling Server Warmup
Chapter Sections
Chapters

5.1.1. Getting Warmup Information

You can use cbstats to get information about server warmup, including the status of warmup and whether warmup is enabled. The following are two alternates to filter for the information:

shell> cbstats localhost:11210 -b beer_sample -p bucket_password all | grep 'warmup'
shell> cbstats hostname:11210 -b my_bucket -p bucket_password raw warmup

Here the localhost:11210 is the host name and default memcached port for a given node and beer_sample is a named bucket for the node. If you do not specify a bucket name, the command will apply to any existing default bucket for the node.

ep_warmup_threadIndicates if the warmup has completed. Returns "running" or "complete".
ep_warmup_stateIndicates the current progress of the warmup:
  • Initial. Start warmup processes.

  • EstimateDatabaseItemCount. Estimating database item count.

  • KeyDump. Begin loading keys and metadata based, but not documents, into RAM.

  • CheckForAccessLog. Determine if an access log is available. This log indicates which keys have been frequently read or written.

  • LoadingAccessLog. Load information from access log.

  • LoadingData. This indicates the server is loading data first for keys listed in the access log, or if no log available, based on keys found during the 'Key Dump' phase.

  • Done. Server is ready to handle read and write requests.

Be aware that this tool is a per-node, per-bucket operation. That means that if you want to perform this operation, you must specify the IP address of a node in the cluster and a named bucket. If you do not provided a named bucket, the server will apply the setting to any default bucket that exists at the specified node. If you want to perform this operation for an entire cluster, you will need to perform the command for every node/bucket combination that exists for that cluster.

There are more detailed statistics available on the warmup process. For more information, see Section 7.5.2, “Getting Warmup Information”.