Search:

Search all manuals
Search this manual
Manual
Moxi Server 1.7
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
3 Standalone Moxi Component
Chapter Sections
Chapters

3.8. Timeouts

You can configure a wait queue timeout in moxi, so that moxi will return a SERVER_ERROR if a client request has been waiting too long in the

wait queue. You can also specify a timeout for any active, inflight requests (in the previous section example, for example, this would be one of the 32 active requests).

By default, these timeouts are 0 or off, so moxi will not time out long requests. These timeouts are -Z wait_queue_time and downstream_timeout configuration values, specified in milliseconds. In addition, to use timeouts, you must specify a clock cycle or quantum, in milliseconds, via the "cycle" -Z flag. This is off by default (so that moxi doesn't waste any effort making timing system calls). For example:

./moxi -Z port_listen=11311,concurrency=8,cycle=100,wait_queue_timeout=5000,downstream_timeout=5000 \
     http://membase1:8091/pools/default/bucketsStreaming/shoppingCarts

Please see Chapter 2, Following A Request Through Moxi for more information on timeouts.