killed old concurrency throttle

Change-Id: Ia753168cf234832281fe1c93d02fec9debfad429
Reviewed-on: http://review.couchbase.org/40359
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-10204: updated Auto Compaction settings UI

Change-Id: Ia7b896d6eb85cd6972da0cfacac46f8778c6e4f7
Reviewed-on: http://review.couchbase.org/39537
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
make settings styles similar to wizard styles

Change-Id: Id0a8865bc0379dab98d5e66fbf16fcaeb30ab0de
Reviewed-on: http://review.couchbase.org/40177
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
fixed spinner for wizard secure dialog

currently on the last wizard step after form
submitted we may see just a spinner without
background. This change is fixing it.

Change-Id: Ia93b71eb38f4105d32bf7a2cee97110ca765a6e4
Reviewed-on: http://review.couchbase.org/40382
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Kill rebalance subprocesses before the replicators.

Because some of them expect replicators to be running and hence might
crash and cause entire janitor_agent to crash.

Seen in MB-11890.

Change-Id: I142cbc685d74197b9209264e1bbe5f0d4554dc3d
Reviewed-on: http://review.couchbase.org/40386
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10179: implemented CAPI _mass_vbopaque_check

Which is going to be used for periodic vbopaque checks. It's more or
less same as _pre_replicate but doing it for a bunch of vbuckets at
once for efficiency.

Change-Id: Idb9ea4509f02a07f91fc9eb1690acb530739eb24
Reviewed-on: http://review.couchbase.org/40360
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-10179: [xdcr] publish more per-vbucket details with vb stats

Change-Id: Ib10d6e8fd9387ea757252f9f390a89f0e8f86e74
Reviewed-on: http://review.couchbase.org/40361
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
added misc:sort_and_keygroup

Change-Id: I6d21546b08b39af5962692976f607cd276e8166b
Reviewed-on: http://review.couchbase.org/40362
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
export xdc_rep_utils:sanitize_url/1

Change-Id: I36a4e63106223efcff268d88d944101e80f315f9
Reviewed-on: http://review.couchbase.org/40363
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Don't crash on apply_vbucket_state_reply from stale worker.

When rebalance stops and we terminate the apply_vbucket_state_worker,
the latter might have already sent us some reply. This would cause a
badmatch on queue:out and hence janitor_agent would crash. We fix it by
including worker pid in a reply message. So we can just ignore old
replies.

Seen in MB-11890.

Change-Id: I5eb8fc13fa94179229fad4381059dd77247f4ee3
Reviewed-on: http://review.couchbase.org/40387
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10179: check for vbopaque mismatch periodically

Change-Id: I3b2a0ffd145b55885bb4730c6746fcb8600f15b9
Reviewed-on: http://review.couchbase.org/40364
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
[xdcr] refactored capi_replication checkpointing params parsing

Particularly extracted common code between extract_ck_params and
handle_mass_vbopaque_check. And also made it respond with 400 on
missing params rather then 404 which we used to do.

Change-Id: Iac11952590e7e8df0c4a1b1cf18a6f5ea9ffa729
Reviewed-on: http://review.couchbase.org/40384
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
collect workload and scheduler stats

Change-Id: Ie09c5d4095d0f393e479f0f0e73ac8c66bfbc6a8
Reviewed-on: http://review.couchbase.org/40441
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
Expect shutdown exit msgs in single vbucket mover subprocesses.

So that there's less CRASH REPORT noise in the logs when rebalance
gets stopped.

Change-Id: I624060ca4e80ab7c46bb4050126fb83d675f83ae
Reviewed-on: http://review.couchbase.org/40439
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Make nuke less crying.

Change-Id: I4e0bb87ad563eba67472973971cb70b46dd9ec19
Reviewed-on: http://review.couchbase.org/40440
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Improve delta recovery error message.

Change-Id: Ib20861bc4326e2ec66099ce3e3c46a77e91ebf2d
Reviewed-on: http://review.couchbase.org/40443
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
refresh bucket info cache on all http(s) port changes

Change-Id: I7f7c3416df6525399d29b4f295ed0f7ef7052efd
Reviewed-on: http://review.couchbase.org/40446
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
don't pass undefined port to ns_bucket:is_port_free

Change-Id: I453668fcac8951fe4dd66fb1771ac987e44a9741
Reviewed-on: http://review.couchbase.org/40447
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-11888: handle lack of https ports in config

Change-Id: I65aad8952c895dc2dfdfe9fd7e3a2cb2b8e9b27d
Reviewed-on: http://review.couchbase.org/40448
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-11888: handle lack of ssl proxy ports in config

Change-Id: I8320fd5b9fef1ceeba19901fc28d45481e71284f
Reviewed-on: http://review.couchbase.org/40449
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>