memcached_next_upstream_timeout
The memcached_next_upstream_timeout directive sets the timeout for retrying a failed request to a memcached server.
Description
The memcached_next_upstream_timeout directive is utilized within the context of handling requests to a memcached server in NGINX. It enables configuring the duration the server will wait before attempting to retry a failed request to an upstream memcached server. This is particularly useful for applications that use memcached for caching data, as it helps manage request failures and provides a mechanism to avoid overloading the backend servers by reattempting failed requests too quickly.
Config Example
memcached_next_upstream_timeout 30s;
If set too low, it may lead to frequent failed request retries, increasing load on the memcached server.
Setting this directive without properly configuring an upstream memcached server may not produce expected outcomes.