MB-100 Include stats in per node diagnostics.

Change-Id: I30518cf5c2969cbb3c329ff8308d35618769b89e
Reviewed-on: http://review.couchbase.org/26436
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100 Lower the severity of tap_estimate related error messages.

We send all the rebalance errors to the user visible log. Particularly
these error conditions don't really prevent rebalance from completing
successfully. Moreover, they are normal when mixed versions cluster is
being rebalanced. So to prevent spamming the user log we just lower
the severity of these messages.

Change-Id: Iaeb22470200b7a2cf6f96bba1428af30a43da8b4
Reviewed-on: http://review.couchbase.org/26437
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-100 Lower the severity of tap_estimate related error messages.
  MB-100 Include stats in per node diagnostics.
  MB-8325 Send processes' stats with heartbeat.
  MB-8325 Adapt system_stats_collector to latest portsigar changes.
  MB-100: added dev docs for ns_server's usage of checkpoints

trivial merge

Change-Id: Ia1a28a4a9afe35bede5af1078513b2ede0715cc2
MB-8295: Make it work with the Set View ETS refactoring

This commit needs get merged at the same time as:
http://review.couchbase.org/26344

Change-Id: Icf4f629c3247ab824f4e3f56227998ae8d050bd3
Reviewed-on: http://review.couchbase.org/26383
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8295: change according to couchdb refactoring

This commit needs to get merged at the same time as:
http://review.couchbase.org/26386

Change-Id: I8d279f07a0de93bf0dd8eec7c8646c15b4a3d70f
Reviewed-on: http://review.couchbase.org/26384
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8328 Don't set ERL_MAX_PORTS.

The difference in babysitter memory consumption with lowered and
default values is negligible. And our attempt to unset it for child VM
was incorrect. It would cause the VM (at least on r14b04 release) to
set the port limit to 1024. And the latter is much less than what we
really want.

Change-Id: Ia29aee37711f5c2c59a4ca1932746fc41c94b8ed
Reviewed-on: http://review.couchbase.org/26501
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100 Don't add version to ns_server install directory.

Change-Id: I9b24cf6fe6a89fc9096a59796a54622796980188
Reviewed-on: http://review.couchbase.org/26502
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'couchbase/2.0.2'

* couchbase/2.0.2:
  MB-100 Don't add version to ns_server install directory.
  MB-8328 Don't set ERL_MAX_PORTS.

Change-Id: I2e0f4c0cf87cf552f89058bde484636fc6713e2a
MB-8347: advertise cancel XDCR endpoint without typo

We still support old call so that if somebody have hardcoded wrong
path they still have some time to migrate.

Change-Id: Ib6a21e2352f59fd18b6318da6e232726c2df1ccd
Reviewed-on: http://review.couchbase.org/26505
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-8347: advertise cancel XDCR endpoint without typo

trivial merge

Change-Id: If60dd8acf28a7c3c0ac99b6c7ddc2d9130e5fab4
MB-100: added more documentation for babysitting VM feature

Change-Id: Iba1acae37128eb059f7733beba73057b493e476c
Reviewed-on: http://review.couchbase.org/26509
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8239  Fixed cbcollect_info for OSX.

Setting COUCHBASE_TOP env variable here so that erl shell
script can find erlang install path.

Change-Id: Id666f0658351b7767993a5cad66c10eee12cd6b4
Reviewed-on: http://review.couchbase.org/26511
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-8239  Fixed cbcollect_info for OSX.
  MB-100: added more documentation for babysitting VM feature

trivial merge

Change-Id: I9d515750e3333290a6a754f680a3d3c6e8261ae3
MB-8348:added internal setting for use of fadvise in db compactor

Change-Id: I550dfb0b6dd65471437daf40ff4307051f63d8cd
Reviewed-on: http://review.couchbase.org/26527
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100: removed : after internal settings descriptions

Change-Id: Ia5b984acf8f7d73885ea54ccddd9173d185571f6
Reviewed-on: http://review.couchbase.org/26530
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-100: removed : after internal settings descriptions
  MB-8348:added internal setting for use of fadvise in db compactor

trivial

Change-Id: I1b2566d9824e82496865ed2b1ea84a188a5f2366
MB-100 Use infinity gen_server timeout in request_throttler.

Change-Id: I1739838756a27f5a921b50f0dc25d602204deaab
Reviewed-on: http://review.couchbase.org/26561
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[bp] MB-100 Use infinity gen_server timeout in request_throttler.

Change-Id: I9815987273cbff6e557dbd29e98f8d407b1f5d43
Original-Reviewed-on: http://review.couchbase.org/26561
Original-Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Original-Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-on: http://review.couchbase.org/26563
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8341 Use binary names for all lazily computed stats.

Previously we assumed these stats' names to be atoms. That prevented
XDCR stats from being displayed correctly in 'by server' mode. This
happened because XDCR stats used binary names. From now all the lazily
computed stats must use binary names.

Change-Id: I5cf1022314c9e025ff1fa3f9d3143dc9a04a4156
Reviewed-on: http://review.couchbase.org/26564
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-8341 Use binary names for all lazily computed stats.
  [bp] MB-100 Use infinity gen_server timeout in request_throttler.

trivial merge

Change-Id: I3759c8141c5d71cc30bbe507f5917ac2a6e2a920