aff65242ff
Previously these were all hardcoded; let operators tweak them as needed. Significantly, this also allows operators to disable error-limiting entirely, which may be a useful protection in case proxies are configured with a single memcached server. Use error_suppression_limit and error_suppression_interval to mirror the option names used by the proxy-server to ratelimit backend Swift servers. Co-Authored-By: Alistair Coles <alistairncoles@gmail.com> Change-Id: Ife005cb8545dd966d7b0e34e5496a0354c003881
37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
[memcache]
|
|
# You can use this single conf file instead of having memcache_servers set in
|
|
# several other conf files under [filter:cache] for example. You can specify
|
|
# multiple servers separated with commas, as in: 10.1.2.3:11211,10.1.2.4:11211
|
|
# (IPv6 addresses must follow rfc3986 section-3.2.2, i.e. [::1]:11211)
|
|
# memcache_servers = 127.0.0.1:11211
|
|
#
|
|
# Sets how memcache values are serialized and deserialized:
|
|
# 0 = older, insecure pickle serialization
|
|
# 1 = json serialization but pickles can still be read (still insecure)
|
|
# 2 = json serialization only (secure and the default)
|
|
# To avoid an instant full cache flush, existing installations should
|
|
# upgrade with 0, then set to 1 and reload, then after some time (24 hours)
|
|
# set to 2 and reload.
|
|
# In the future, the ability to use pickle serialization will be removed.
|
|
# memcache_serialization_support = 2
|
|
#
|
|
# Sets the maximum number of connections to each memcached server per worker
|
|
# memcache_max_connections = 2
|
|
#
|
|
# Timeout for connection
|
|
# connect_timeout = 0.3
|
|
# Timeout for pooled connection
|
|
# pool_timeout = 1.0
|
|
# number of servers to retry on failures getting a pooled connection
|
|
# tries = 3
|
|
# Timeout for read and writes
|
|
# io_timeout = 2.0
|
|
#
|
|
# How long without an error before a server's error count is reset. This will
|
|
# also be how long before a server is reenabled after suppression is triggered.
|
|
# Set to 0 to disable error-limiting.
|
|
# error_suppression_interval = 60.0
|
|
#
|
|
# How many errors can accumulate before a server is temporarily ignored.
|
|
# error_suppression_limit = 10
|