Search:

Search all manuals
Search this manual
Manual
Moxi Server 1.8
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).

These timeouts are -Z wait_queue_time and downstream_timeout configuration values, specified in milliseconds. To use timeouts, you must specify a clock cycle or quantum, in milliseconds, via the "cycle" -Z flag. The -Z flag is 200 milliseconds by default so that moxi doesn't waste any effort making timing system calls. In other words, moxi only checks the system time by default every 200 milliseconds. Other threads use the cached value for the system time. This means that other timeout values should be a multiple of the cycle value. For example:

shell> 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.