History log of /5.5.2/kv_engine/engines/ep/management/cbstats (Results 1 - 25 of 114)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5, v5.5.6, v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2, v5.1.1
# f789fb42 12-Apr-2018 Daniel Owen <owend@couchbase.com>

Add eviction category of stats

To aid with debugging potential performance issues a new category of
eviction stats is created.

In this category we maintain a histogram to record

Add eviction category of stats

To aid with debugging potential performance issues a new category of
eviction stats is created.

In this category we maintain a histogram to record the execution
frequency of items evicted from the hash table (a separate histogram is
used for active/pending vbuckets and replica vbuckets.)

We also maintain a snapshot of the last contents of the frequency
histogram (again, a separate histogram is maintained for active/pending
vbuckets and replica vbuckets.)

The stats can be retrieved using cbstats. e.g.

./cbstats default:11210 -u xxx -p xxx eviction

The "evicted" histogram stats provide an aggregated view of what the
execution frequencies are for all the items that evicted when running
the hifi_mfu algorithm.

The "snapshot" histogram stats provide a view of what the contents of
the frequency histogram is like during the running of the hifi_mfu
algorithm.

Example output:

ep_active_or_pending_eviction_values_evicted (102362 total)
0 - 0 : ( 3.78%) 3865 █▊
1 - 1 : ( 12.99%) 9436 ████▌
2 - 2 : ( 29.52%) 16913 ████████
3 - 3 : ( 50.85%) 21832 ██████████▍
4 - 4 : ( 97.23%) 47477 ██████████████████████▋
5 - 5 : ( 99.77%) 2602 █▏
6 - 6 : ( 99.96%) 199
7 - 7 : (100.00%) 34
8 - 8 : (100.00%) 3
10 - 10 : (100.00%) 1
Avg : ( 3)
ep_active_or_pending_eviction_values_snapshot (40 total)
2 - 2 : ( 2.50%) 1 █▎
3 - 3 : ( 22.50%) 8 ██████████
4 - 4 : ( 47.50%) 10 ████████████▌
5 - 5 : ( 65.00%) 7 ████████▊
6 - 6 : ( 72.50%) 3 ███▊
255 - 255 : (100.00%) 11 █████████████▊
Avg : ( 73)
ep_replica_eviction_values_evicted (68829 total)
0 - 0 : ( 1.37%) 945 ▋
1 - 1 : ( 2.01%) 441 ▎
2 - 2 : ( 2.92%) 621 ▍
3 - 3 : ( 6.39%) 2392 █▊
4 - 4 : (100.00%) 64430 ███████████████████████████████████████████████▋
Avg : ( 3)
ep_replica_eviction_values_snapshot (36 total)
4 - 4 : ( 25.00%) 9 ████████████▌
255 - 255 : (100.00%) 27 █████████████████████████████████████▌
Avg : ( 192)

Change-Id: I989efa9624cbbc9aa354c8cefbfef44be4ed258d
Reviewed-on: http://review.couchbase.org/92904
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


# 927920a8 07-Feb-2018 Dave Rigby <daver@couchbase.com>

MB-27769: Include object address in 'cbstats tasks'

In the 'tasks' stat group; include the address of the tasks'
object. This aids in debugging; for example when attaching to a live

MB-27769: Include object address in 'cbstats tasks'

In the 'tasks' stat group; include the address of the tasks'
object. This aids in debugging; for example when attaching to a live
process or core file.

Change-Id: I4b0788c788ec2dfe6a1e4cd814db162bfca3614c
Reviewed-on: http://review.couchbase.org/89010
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com>

show more ...


Revision tags: v5.0.1, v5.1.0, v5.0.0
# 2976a361 15-Aug-2017 Dave Rigby <daver@couchbase.com>

cbstats: Print histograms in sorted order

When printing histograms (e.g. timings, kvtimings), sort by their name.

Change-Id: I166fd0c7619fd8f0f00b077434e15912fcce670d
Reviewed-o

cbstats: Print histograms in sorted order

When printing histograms (e.g. timings, kvtimings), sort by their name.

Change-Id: I166fd0c7619fd8f0f00b077434e15912fcce670d
Reviewed-on: http://review.couchbase.org/82406
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# b298b60f 15-Aug-2017 Dave Rigby <daver@couchbase.com>

Histogram stats: Don't omit empty bins with printing

When printing Histogram objects as stats (for display via cbstats),
don't omit histograms bins which contain zero samples.

W

Histogram stats: Don't omit empty bins with printing

When printing Histogram objects as stats (for display via cbstats),
don't omit histograms bins which contain zero samples.

While it initially seems sensible to ignore empty bins, when printing
histograms from such data it can be difficult to get a representative
view of the underlying distribution if empty bins are not printed in
the middle of a range.

For example, consider the following histogram which is from before
this patch:

rw_0:snapshot (1296 total)
2us - 4us : ( 0.08%) 1
4us - 8us : ( 3.32%) 42 █▎
8us - 16us : ( 57.18%) 698 ██████████████████████▌
16us - 32us : ( 78.55%) 277 ████████▉
32us - 64us : ( 80.25%) 22 ▋
1ms - 2ms : ( 89.20%) 116 ███▊
2ms - 4ms : (100.00%) 140 ████▌
Avg : ( 321us)

Note this is a bimodal distribution, with peaks at 8-16us and
2-4ms. However, from looking at the cbstats rendering of this it's not
obvious that there's actually a significant distance between the two
peak - approximately 3ms.

If we include empty (zero count) bins, we get a very different impression:
view:

rw_0:snapshot (1296 total)
2us - 4us : ( 0.08%) 1
4us - 8us : ( 3.32%) 42 █▎
8us - 16us : ( 57.18%) 698 ██████████████████████▌
16us - 32us : ( 78.55%) 277 ████████▉
32us - 64us : ( 80.25%) 22 ▋
64us - 128us : ( 80.25%) 0
128us - 256us : ( 80.25%) 0
256us - 512us : ( 80.25%) 0
512us - 1ms : ( 80.25%) 0
1ms - 2ms : ( 89.20%) 116 ███▊
2ms - 4ms : (100.00%) 140 ████▌
Avg : ( 321us)

Here the two discrete peaks are much clearer - we get an actual
quantatative representation of the data.

Implementation note: This increases the set of statistics seen by
ep_testsuite tests which verify that (a) all expected stats are output
and (b) no extra, unexpected stats are printed. Thus far we have
implemented these tests using an explicit whitelist of expected stat
names. However, with this change we now emit a much larger set of stat
names for each of the zero-count histogram buckets - e.g.

rw_3:readSize_1048576,2097152
rw_3:readSize_128,256
rw_3:readSize_131072,262144

To avoid having to hardcode a large list of these kinds of stats -
whose keys will change if we adjust the histogram binning - this patch
adds support for specifying stat names using a regex pattern.

Given that these regexes cannot guard against extra stats being added
which happen to match the regex, this is only intended for
internal/auto-generated stat names which are *not* expected to be
exposed to end-users directly - we still want to maintain an explicit
set of user-visible stats.

Additionally, now that the full set of Histogram start/end ranges are
actually being emitted, ep_test_apis needs to be updated to handles
values up to uint64_t.

Change-Id: If2e9e420460fa185aff6c8e021800975d470b1d7
Reviewed-on: http://review.couchbase.org/82405
Reviewed-by: Oliver Downard <oliver.downard@couchbase.com>
Reviewed-by: Will Gardner <willg@rdner.io>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# a4e99b8a 11-Aug-2017 Dave Rigby <daver@couchbase.com>

cbstats: Increase resolution of histogram bars with UTF-8

If stdout is using a UTF-8 encoding, then use the 1-8 eighths UTF
symbols to render the bar charts increasing the resolution of

cbstats: Increase resolution of histogram bars with UTF-8

If stdout is using a UTF-8 encoding, then use the 1-8 eighths UTF
symbols to render the bar charts increasing the resolution of the bars
by 8x.

For example, when running on macOS Terminal (or most other *ix
terminals):

ro_3:fsReadSeek (74836 total)
4KB - 8KB : ( 18.39%) 13766 ███████▉
8KB - 16KB : ( 20.85%) 1840 █
16KB - 32KB : ( 28.24%) 5531 ███▏
32KB - 64KB : ( 29.56%) 985 ▌
64KB - 128KB : ( 30.13%) 429 ▏
128KB - 256KB : ( 32.18%) 1528 ▉
256KB - 512KB : ( 34.20%) 1513 ▊
512KB - 1MB : ( 37.52%) 2486 █▍
1MB - 2MB : ( 42.12%) 3443 █▉
2MB - 4MB : ( 47.16%) 3774 ██▏
4MB - 8MB : ( 52.08%) 3683 ██
8MB - 16MB : ( 56.81%) 3538 ██
16MB - 32MB : ( 61.80%) 3731 ██▏
32MB - 64MB : ( 68.07%) 4691 ██▋
64MB - 128MB : ( 74.24%) 4620 ██▋

Compared to the previous output (which is still printed if stdout
isn't using UTF-8:

ro_3:fsReadSeek (74706 total)
4KB - 8KB : ( 18.39%) 13742 #######
8KB - 16KB : ( 20.85%) 1835 #
16KB - 32KB : ( 28.25%) 5524 ###
32KB - 64KB : ( 29.56%) 982
64KB - 128KB : ( 30.13%) 429
128KB - 256KB : ( 32.18%) 1526
256KB - 512KB : ( 34.20%) 1508
512KB - 1MB : ( 37.52%) 2484 #
1MB - 2MB : ( 42.13%) 3441 #
2MB - 4MB : ( 47.17%) 3767 ##
4MB - 8MB : ( 52.09%) 3678 ##
8MB - 16MB : ( 56.81%) 3527 ##
16MB - 32MB : ( 61.80%) 3726 ##
32MB - 64MB : ( 68.07%) 4680 ##
64MB - 128MB : ( 74.24%) 4611 ##

This will be the default output if cbstats is piped to say grep or
less; as Python cannot detect the encoding. However the UTF-8 output
can be forced on by specifying `-8` as an option to cbstats:

cbstats kvtimings -8 | grep -A 3 ro_3:fsReadSeek
ro_3:fsReadSeek (85208 total)
4KB - 8KB : ( 18.39%) 15669 ███████████████████████████▊
8KB - 16KB : ( 20.95%) 2178 ███▊
16KB - 32KB : ( 28.15%) 6140 ██████████▉

Change-Id: Id8b5c2dd41109a17d950b0f6df85672bed95d282
Reviewed-on: http://review.couchbase.org/82215
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 45d945a9 11-Aug-2017 Dave Rigby <daver@couchbase.com>

MB-25660: cbstats: More accurately calculate average for Histograms

The average calculation when printing histograms in cbstats is
incorrect - it under-accounts; sometimes significantly.

MB-25660: cbstats: More accurately calculate average for Histograms

The average calculation when printing histograms in cbstats is
incorrect - it under-accounts; sometimes significantly.

The problem is in the calculation of a representative value for each
datapoints range - the bin's count is multiplied by a representative
"value" for this data point, calculated as (end - start). This is
probably ok if the histogram bins grow exponentially - for example
with a power of 2:

Start End Representative Value
2 4 2
4 8 4
8 16 8

However, if the histogram bins grow slower, we end up with an
inaccurate representative value - for example a growth factor of 1.2:

Start End Representative Value
2 3 1
3 4 1
4 5 1

As a result the average calculated here will be incorrect - ~1 instead
of 3.5 (assuming 1 sample in each bin).

The solution is to just use the `start` value of the bin as the
representative value. I initially used the midpoint of start & end;
however that results in a massively inflated rep. value when we have
samples in the last histogram bucket; which has an end value of
max<TYPE> - for example:

ro_1:fsReadCount (289135 total)
...
8 - 10 : ( 28.20%) 77346 ########
10 - 12 : ( 90.40%) 179835 #######################
12 - 15 : ( 99.92%) 27536 ###
...
22 - 26 : ( 99.99%) 10
27173 - 4294967295 : (100.00%) 22
Avg : ( 163411)
rw_1:fsReadSize (241768 total)

Clearly an Avg of 163411 is incorrect here!

An approximate set of affected histograms are:

‡ git grep Histo|grep Generator| grep -v ", 2)"
engines/ep/src/hash_table.h: : depthHisto(GrowingWidthGenerator<unsigned int>(1, 1, 1.3), 10),
engines/ep/src/mutation_log.cc: : paddingHisto(GrowingWidthGenerator<uint32_t>(0, 8, 1.5), 32),
engines/ep/src/stats.h: dirtyAgeHisto(GrowingWidthGenerator<hrtime_t>(0, ONE_SECOND, 1.4), 25),
engines/ep/src/stats.h: diskCommitHisto(GrowingWidthGenerator<hrtime_t>(0, ONE_SECOND, 1.4), 25),
engines/ep/src/stats.h: mlogCompactorHisto(GrowingWidthGenerator<hrtime_t>(0, ONE_SECOND, 1.4), 25),

Change-Id: Iecf9e75f77b13e68d9ab474864106251e75a1126
Reviewed-on: http://review.couchbase.org/82308
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# a5397697 11-Aug-2017 Dave Rigby <daver@couchbase.com>

cbstats: Use no label for 'Count' histograms

Change-Id: Id2ccc3f147e269a99b2dafa119cb427ff2490382
Reviewed-on: http://review.couchbase.org/82307
Tested-by: Build Bot <build@couchbase

cbstats: Use no label for 'Count' histograms

Change-Id: Id2ccc3f147e269a99b2dafa119cb427ff2490382
Reviewed-on: http://review.couchbase.org/82307
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...


# 39f5d686 31-Jul-2017 James Harrison <00jamesh@gmail.com>

MB-25464: Do not exit cbstats if stats_perform fails

Exiting early will prevent cbstats collecting stats from other buckets
when running with `-a`.

Change-Id: I36641b06c5c22ea0a

MB-25464: Do not exit cbstats if stats_perform fails

Exiting early will prevent cbstats collecting stats from other buckets
when running with `-a`.

Change-Id: I36641b06c5c22ea0add46b3bbe91332ec0fc498a
Reviewed-on: http://review.couchbase.org/81622
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 24484d5a 07-Jul-2017 Sriram Ganesan <sriram@couchbase.com>

MB-24692: Display the bg_batch_size histogram with no labels

The bg_batch_size is just a histogram of batch sizes for
different bg fetch jobs. So, it should be displayed with
no labe

MB-24692: Display the bg_batch_size histogram with no labels

The bg_batch_size is just a histogram of batch sizes for
different bg fetch jobs. So, it should be displayed with
no labels

Change-Id: I96538acf792f2e030ef62591a8b24f437bf2792a
Reviewed-on: http://review.couchbase.org/80358
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 1bf5c7a4 21-Jun-2017 James Harrison <00jamesh@gmail.com>

Improve cbstats tasks sorting by column name

Previously to sort the data by a column we needed either the column
index or the exact (but case-insensitive) name of the column.

No

Improve cbstats tasks sorting by column name

Previously to sort the data by a column we needed either the column
index or the exact (but case-insensitive) name of the column.

Now we are a little bit smarter, and try to find the column with the
"closest" name.

While this is of little real benefit, it is useful for columns which
contain characters which are annoying to type at a shell (#, !, & etc.)
as they can be omitted and the closest name will be selected.

Change-Id: Ie230b8d5dd87e173c53c0ac6c8850f5c427b5d09
Reviewed-on: http://review.couchbase.org/79825
Reviewed-by: Oliver Downard <oliver.downard@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 02d243e0 21-Jun-2017 James Harrison <00jamesh@gmail.com>

Add #runs to cbstats tasks

While the number of times a task has run is available from other
locations such as the histograms in stats.log, this patch brings it into
cbstats along sid

Add #runs to cbstats tasks

While the number of times a task has run is available from other
locations such as the histograms in stats.log, this patch brings it into
cbstats along side the other information.

Change-Id: Ida804aeeaebf40986e72b7ce5812c8aefe05962a
Reviewed-on: http://review.couchbase.org/79824
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 45a7a9fe 19-Jun-2017 James Harrison <00jamesh@gmail.com>

Add server uptime to cbstats tasks

Without some idea of the total server uptime, total task runtime lacked
a reference to provide scale.

This is displayed in the "header" area o

Add server uptime to cbstats tasks

Without some idea of the total server uptime, total task runtime lacked
a reference to provide scale.

This is displayed in the "header" area of cbstats tasks:

Tasks Writer Reader AuxIO NonIO Total Uptime: 0:02:20
Running 0 0 0 0 0
All 1 0 0 12 13

For larger uptimes, days are used e.g.,

Uptime: 143 days, 15:52:25

Change-Id: Ifb6afc0323eadde99de8a1d00f623a3160423f18
Reviewed-on: http://review.couchbase.org/79786
Reviewed-by: Oliver Downard <oliver.downard@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# da1ddf1e 19-Jun-2017 James Harrison <00jamesh@gmail.com>

Add last runtime to cbstats tasks

When tasks are sleeping, the runtime field was somewhat wasted. We now
reuse it to show the last runtime, marking currently running tasks with
an "*

Add last runtime to cbstats tasks

When tasks are sleeping, the runtime field was somewhat wasted. We now
reuse it to show the last runtime, marking currently running tasks with
an "*".

Change-Id: I639b8da9e03f83584eda48e8496c5d459c44ba87
Reviewed-on: http://review.couchbase.org/79785
Reviewed-by: Oliver Downard <oliver.downard@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# ef22f9b0 25-May-2017 Dave Rigby <daver@couchbase.com>

Move ep-engine to engines/ep


# d754de36 03-May-2017 James Harrison <00jamesh@gmail.com>

Fix cbstats tasks incorrect key

Change-Id: I4c2d3551a2b2a3f1ca213bf3cd9b067140f6e67a
Reviewed-on: http://review.couchbase.org/77657
Tested-by: Build Bot <build@couchbase.com>
Rev

Fix cbstats tasks incorrect key

Change-Id: I4c2d3551a2b2a3f1ca213bf3cd9b067140f6e67a
Reviewed-on: http://review.couchbase.org/77657
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 28e73aeb 13-Apr-2017 James Harrison <00jamesh@gmail.com>

Generalise cli_auth_utils

Some minor modifications to allow arbitrary kwargs to be passed through
the cmd decorator - permits use in cbcompact

Change-Id: Ib506b29d1aa8b8cabc28dd

Generalise cli_auth_utils

Some minor modifications to allow arbitrary kwargs to be passed through
the cmd decorator - permits use in cbcompact

Change-Id: Ib506b29d1aa8b8cabc28ddad91024294632c0a63
Reviewed-on: http://review.couchbase.org/76779
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# e23a2aca 13-Apr-2017 James Harrison <00jamesh@gmail.com>

Fix cbstats timings

histograms was unexpectedly decorated with @cmd - despite not being a
top level cmd called by clitool.

This lead to an erroneous auth failure, no matter what

Fix cbstats timings

histograms was unexpectedly decorated with @cmd - despite not being a
top level cmd called by clitool.

This lead to an erroneous auth failure, no matter what.

Change-Id: I367d8869db8b151376916e726694fa8758b636d9
Reviewed-on: http://review.couchbase.org/76778
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# f8d97a05 11-Apr-2017 James Harrison <00jamesh@gmail.com>

Minor cbstats tasks improvements

Altered sort order to by default sort durations in descending order.

Small preparations for adding a "-r" flag to reverse.

Change-Id: I6a32

Minor cbstats tasks improvements

Altered sort order to by default sort durations in descending order.

Small preparations for adding a "-r" flag to reverse.

Change-Id: I6a32d064c8bf38f677b512137bed0b0724fc8e67
Reviewed-on: http://review.couchbase.org/76634
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 2d836d23 10-Apr-2017 olivermd <oliver.downard@couchbase.com>

MB-23556: Add response stats to cbstats

Example output:

$ ./management/cbstats localhost:12000 responses
SUCCESS: 14410

$ ./ep-engine/management/cbstats localhost:1200

MB-23556: Add response stats to cbstats

Example output:

$ ./management/cbstats localhost:12000 responses
SUCCESS: 14410

$ ./ep-engine/management/cbstats localhost:12000 responses all
AUTH_CONTINUE: 0
AUTH_ERROR: 0
AUTH_STALE: 0
DELTA_BADVAL: 0
E2BIG: 0
EACCESS: 0
EBUSY: 0
EINTERNAL: 0
EINVAL: 0
ENOMEM: 0
ERANGE: 0
ETMPFAIL: 0
KEY_EEXISTS: 0
KEY_ENOENT: 0
LOCKED: 0
NOT_INITIALIZED: 0
NOT_MY_VBUCKET: 0
NOT_STORED: 0
NOT_SUPPORTED: 0
NO_BUCKET: 0
ROLLBACK: 0
SUBDOC_DELTA_EINVAL: 0
SUBDOC_DOC_NOTJSON: 0
SUBDOC_INVALID_COMBO: 0
SUBDOC_MULTI_PATH_FAILURE: 0
SUBDOC_NUM_ERANGE: 0
SUBDOC_PATH_E2BIG: 0
SUBDOC_PATH_E2DEEP: 0
SUBDOC_PATH_EEXISTS: 0
SUBDOC_PATH_EINVAL: 0
SUBDOC_PATH_ENOENT: 0
SUBDOC_PATH_MISMATCH: 0
SUBDOC_SUCCESS_DELETED: 0
SUBDOC_VALUE_CANTINSERT: 0
SUBDOC_VALUE_ETOODEEP: 0
SUBDOC_XATTR_INVALID_FLAG_COMBO: 0
SUBDOC_XATTR_INVALID_KEY_COMBO: 0
SUBDOC_XATTR_UNKNOWN_MACRO: 0
SUCCESS: 24909
UNKNOWN_COLLECTION: 0
UNKNOWN_COMMAND: 0
XATTR_EINVAL: 0

Change-Id: Id75d6f19d4302a62c4c4d13274ba09a6bf8a0743
Reviewed-on: http://review.couchbase.org/76555
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 1c7c44d0 04-Apr-2017 James Harrison <00jamesh@gmail.com>

MB-23704: Fix Python2.6 incompatibilities

cbepctl used dictionary comprehension which requires Python>=2.7. In 2.6
it is not valid syntax. Replaced with equivalent 2.6 code.

cbs

MB-23704: Fix Python2.6 incompatibilities

cbepctl used dictionary comprehension which requires Python>=2.7. In 2.6
it is not valid syntax. Replaced with equivalent 2.6 code.

cbstats used an OrderedDict, and formatting without field names/indexes
i.e., `"{}".format(foo)`.

Change-Id: Icf3362db4fd8095c6a9b5e1b6fa2bacae01f0dca
Reviewed-on: http://review.couchbase.org/76240
Tested-by: James Harrison <james.harrison@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.6.2_ep, v4.6.2_mc, v4.6.1_ep
# 7dfe4a57 24-Feb-2017 James Harrison <00jamesh@gmail.com>

MB-22018: Add tasks stats to cbstats

Initial work on adding a "top" like tool showing tasks running and
sleeping in a cluster.

This can be viewed by running

cbstats

MB-22018: Add tasks stats to cbstats

Initial work on adding a "top" like tool showing tasks running and
sleeping in a cluster.

This can be viewed by running

cbstats host:port tasks

This shows the information about the tasks such as the state, next
runtime, description, type etc.

Future additions to the tool are intended to add features such as load
averages for task types (of the style shown by `uptime`) and percentage
utilisation over a period of time per thread.

Change-Id: I005a2589a35b4c4364ba46cf2b44b71061ba06b3
Reviewed-on: http://review.couchbase.org/74510
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 6fd994b7 22-Mar-2017 James Harrison <00jamesh@gmail.com>

Refactor: Move shared logic out of cbstats and cbepctl

Change-Id: Ibd3fb6b8b294e394fbd06a3eb58abc1c7ae1c590
Reviewed-on: http://review.couchbase.org/75605
Reviewed-by: Dave Rigby <da

Refactor: Move shared logic out of cbstats and cbepctl

Change-Id: Ibd3fb6b8b294e394fbd06a3eb58abc1c7ae1c590
Reviewed-on: http://review.couchbase.org/75605
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: James Harrison <james.harrison@couchbase.com>

show more ...


# f4ff46ca 22-Mar-2017 James Harrison <00jamesh@gmail.com>

Add RBAC support to cbstats and cbepctl

Change-Id: I40ba8afaf68f3b6db2024fdcb9aab424a5dff3de
Reviewed-on: http://review.couchbase.org/75604
Tested-by: James Harrison <james.harrison@

Add RBAC support to cbstats and cbepctl

Change-Id: I40ba8afaf68f3b6db2024fdcb9aab424a5dff3de
Reviewed-on: http://review.couchbase.org/75604
Tested-by: James Harrison <james.harrison@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# f049610d 03-Mar-2017 James Harrison <00jamesh@gmail.com>

MB-22018: Allowing varargs in cbstats commands

We used func.func_code.co_argcount (which may be considered peeking at
"internals") to check the number of arguments a function takes, to a

MB-22018: Allowing varargs in cbstats commands

We used func.func_code.co_argcount (which may be considered peeking at
"internals") to check the number of arguments a function takes, to allow
us to print a nice exception rather than simply attempting to call it
with incorrect arguments and exiting from a TypeError.

Moving to using the `inspect` module, and checking if varargs are
accepted - allowing any number of arguments if so.

This may be used going forwards to delegate parsing of additional
options to a given command. This could be done currently but wouldn't be
very clean.

Change-Id: I8100f3e49c6b6143617493d267497c4b1ed6397b
Reviewed-on: http://review.couchbase.org/75427
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v4.6.0_ep, v4.5.1-MP1_mc, v4.6.0-DP_mc, v4.6.0-DP_ep, v4.5.1-MP1_ep, v4.1.2-MP2_mc, v4.5.1_mc, v4.6.0_mc, v4.1.2-MP1_ep, v3.1.6_ep, v4.5.0_mc, v4.5.0_ep, v4.1.1_ep, v3.1.5_ep, v4.1.1_mc, v3.1.4_ep, v3.1.4_mc, v3.1.5_mc
# a6282644 11-Dec-2015 Dave Rigby <daver@couchbase.com>

MB-12934: cbstats: Improve error message when too many arguments given

Change-Id: Ic8b6d01285d2aef61f79a873c52f058da8517aa1
Reviewed-on: http://review.couchbase.org/57730
Well-Formed

MB-12934: cbstats: Improve error message when too many arguments given

Change-Id: Ic8b6d01285d2aef61f79a873c52f058da8517aa1
Reviewed-on: http://review.couchbase.org/57730
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


12345