MB-18452: Force DcpConsumer processor task to yield 18/64718/4
authorJim Walker <jim@couchbase.com>
Fri, 3 Jun 2016 10:49:55 +0000 (11:49 +0100)
committerDave Rigby <daver@couchbase.com>
Thu, 9 Jun 2016 17:35:36 +0000 (17:35 +0000)
commit7c65b732c0099c0ad84e7d70506625e694051495
tree056be726921d6ae89cd0f5c02d60e6bc12f18ffb
parent0db70ed0825538f31f1c14fb5c5ecde674a0d5f3
MB-18452: Force DcpConsumer processor task to yield

Introduce two config tunable values that limit the DCP processor from
running 'forever'.

* dcp_consumer_process_buffered_messages_yield_limit
* dcp_consumer_process_buffered_messages_batch_size

The yield parameter forces the NONIO task to yield when the
limit is reached.

Change-Id: Ifce5a18fc807285471b08e9737cedb5db2b7923f
Reviewed-on: http://review.couchbase.org/64718
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
configuration.json
management/cbepctl
management/memcacheConstants.py
src/connmap.cc
src/connmap.h
src/dcp-consumer.cc
src/dcp-consumer.h
src/dcp-stream.cc
src/dcp-stream.h
src/ep_engine.cc
tests/ep_testsuite.cc