CBQE-354: viewquerytests - changes in rebalance tests

Change-Id: I8a1e7235c5a206d6f760eebf36dc4dcb1b0aa8ad
Reviewed-on: http://review.couchbase.org/18555
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
CBQE-355: new-rebalance-inout tests hangs

Change-Id: I00241c427e83f14511794d2ef29e566e0ae7ff8a
Reviewed-on: http://review.couchbase.org/18570
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Andrei Baranouski <andrei.baranouski@gmail.com>
MB-100: reb conf 2

Change-Id: I77d600a7d9da92f176343dea2baeb3e5f6171b63
Reviewed-on: http://review.couchbase.org/18580
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>
MB-100: sleep after stop rebalance to check status

Change-Id: I309e85577919820ca6681369cd1f53076c52d505
Reviewed-on: http://review.couchbase.org/18586
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Tested-by: Andrei Baranouski <andrei.baranouski@gmail.com>
MB-100: mixed large 2 high compact con

Change-Id: Ic549f31b56cf4fe86765b936738e39c80be5d910
Reviewed-on: http://review.couchbase.org/18595
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>
Fix for wait_for_memcached

wait_for_memcached earlier threw an error,
when a bucket is created for a cluster after rebalancing.
The Fix: Removed redundant code from wait_for_memcached,
and added functionality in wait_for_vbuckets_ready_state()
that will cover both scenarios of when executed using
cluster_run or on a set of vms.
Replaced the call to MemcachedClientHelper with a call
to MemcachedClient itself.
Patch 18: Incorporated all the changes pointed out in
patch16 and patch17.

Change-Id: I4048c58cd8d1ee6a58845f2fda17b57929bc9981
Reviewed-on: http://review.couchbase.org/18228
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
MB-100: NameError: global name 'time' is not defined

import time is missed in task.py

Change-Id: I9a006299fa16f96be7783160dc95caa1e52de0a7
Reviewed-on: http://review.couchbase.org/18593
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: buildbot <build@couchbase.com>
CBD-155: unparameterized key_state

for replication use

Change-Id: Iac6d9e5fecaf25d77bd6ca225fbc11e7f99ff4b9
Reviewed-on: http://review.couchbase.org/18558
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: kept track of persist and repl in Observables

Change-Id: Ib30342b8c255634aeb8b88f73b4a7e05c2884632
Reviewed-on: http://review.couchbase.org/18559
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: tracked server name in responses

Change-Id: If738f4eb9eaa49d78ff6acd06c49076373ac855c
Reviewed-on: http://review.couchbase.org/18560
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>
CBD-155: additional key for obs error

Change-Id: I123c4bbf8c1c50d024e86e8e55e14c7a8588ef05
Reviewed-on: http://review.couchbase.org/18561
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: use rlock

Change-Id: Icdce99eb000d29592c702fa3f312089ee8818096
Reviewed-on: http://review.couchbase.org/18562
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: update logic to accomodate replicas

Change-Id: I0cffb820f799df92b560174dcec8a2c5258ade1a
Reviewed-on: http://review.couchbase.org/18564
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: sender logic to observe replicatoins.

Change-Id: I296cd4e71a08b8bb86453eb4f47d52093bac80fa
Reviewed-on: http://review.couchbase.org/18565
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: revised stats collection for replications

Change-Id: I45536abfa4bb369c6a19c8d9a37b61763c554964
Reviewed-on: http://review.couchbase.org/18566
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
CBD-155: decimal printout for server observe stats

Change-Id: I6de7af8bafde3db23c7238caa85bfd4f0a0e7b2d
Reviewed-on: http://review.couchbase.org/18567
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
MB-100: mixed large conf

Change-Id: I2f9d739c3018162c697db2b2456427b5d92f50d6
Reviewed-on: http://review.couchbase.org/18608
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>
Add code to prevent the situation that when extra items are deleted, there is no extra item to be expired.
No side effects

Change-Id: I95d27b07f429d3ba87f7f45afc441401b386d022
Reviewed-on: http://review.couchbase.org/18617
Tested-by: Chisheng Hong <chisheng@couchbase.com>
Reviewed-by: Chisheng Hong <chisheng@couchbase.com>
CBD-155: graph replica observe stats

> Modified variable names to accomodate liboberve changes
> Added graphing support for client side replica observe stats

Change-Id: If0d006ac6697fa21dbf78e024be4d6f9cd689099
Reviewed-on: http://review.couchbase.org/18609
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>
CBQE-331 Active resident ratio threshold parametrization

Change-Id: Iea62928de002408172330b3043b68e6106ac6f66
Reviewed-on: http://review.couchbase.org/18405
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Rohit Sinha1 <rohit.sinha1@globallogic.com>