[ale] Reimplement disk sink without using disk_log.

Rotation is currently not supported. And sync can still block callers.

Change-Id: Ifa894debf30650a7daf95cdd4e963bf69b2f7b49
Reviewed-on: http://review.couchbase.org/37746
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[ale] Add size based rotation support to disk sink.

Change-Id: Ia8458611926ec5bf4b35ae002ef1549153fb6674
Reviewed-on: http://review.couchbase.org/37747
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[ale] Add optional log compression support.

Change-Id: Iba12f78fbf4a1331820a2cc69daa2ac234fd47bc
Reviewed-on: http://review.couchbase.org/37748
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[ale] Periodically check that we're writing to the same file.

This can be used to have external tools like logrotate handle log
rotation.

Change-Id: Ida82eac625b86b7fb09a28391234ea4290f46f12
Reviewed-on: http://review.couchbase.org/37749
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Add .log suffix to log files.

Change-Id: Ia43f471a9c2c23afc0cc46aedf14236da7d5be10
Reviewed-on: http://review.couchbase.org/37750
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Get disk sink options from disk_sink_opts environment variable.

Change-Id: I8428a0c1db4678fbb0bb367de63756c6683d765d
Reviewed-on: http://review.couchbase.org/37751
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Pass logging-related environment variables to ssl proxy.

Change-Id: I4a6a5e2dfe57a1dc692a14e224d9ea7b2ac1519f
Reviewed-on: http://review.couchbase.org/37752
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Don't redirect ssl_proxy's stderr to stdout.

So that we get cleaner messages from it when running under
cluster_run.

Change-Id: I657f7efce70762dc083b5653c53e8037a8a794af
Reviewed-on: http://review.couchbase.org/37753
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Adapt ns_log_browser to new log format.

Change-Id: I7a9ba554d198296220741b37d0071aa26a29d64f
Reviewed-on: http://review.couchbase.org/37754
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[ale] Perform blocking operations on a separate process.

Change-Id: I7bc05c81f726d5b8cf7a476f53e5bf5976552aa2
Reviewed-on: http://review.couchbase.org/37805
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[ale] Limit the amount of data that's being processed by worker.

And drop incoming messages on the floor if it's exceeded.

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