oslo.cache uses oslo.config to define and manage configuration options to allow the deployer to control how an application uses this library.
string
cache.oslo
Prefix for building the configuration dictionary for the cache region. This should not need to be changed unless there is another dogpile.cache region with the same configuration name.
integer
600
Default TTL, in seconds, for any cached item in the dogpile.cache region. This applies to any cached method that doesn’t have an explicit cache expiration time defined for it.
string
dogpile.cache.null
oslo_cache.memcache_pool, oslo_cache.dict, oslo_cache.mongo, oslo_cache.etcd3gw, dogpile.cache.pymemcache, dogpile.cache.memcached, dogpile.cache.pylibmc, dogpile.cache.bmemcached, dogpile.cache.dbm, dogpile.cache.redis, dogpile.cache.memory, dogpile.cache.memory_pickle, dogpile.cache.null
Cache backend module. For eventlet-based or environments with hundreds of threaded servers, Memcache with pooling (oslo_cache.memcache_pool) is recommended. For environments with less than 100 threaded servers, Memcached (dogpile.cache.memcached) or Redis (dogpile.cache.redis) is recommended. Test environments with a single instance of the server can use the dogpile.cache.memory backend.
multi-valued
''
Arguments supplied to the backend module. Specify this option once per argument to be passed to the dogpile.cache backend. Example format: “<argname>:<value>”.
list
[]
Proxy classes to import that will affect the way the dogpile.cache backend functions. See the dogpile.cache documentation on changing-backend-behavior.
boolean
False
Global toggle for caching.
boolean
False
Extra debugging from the cache backend (cache keys, get/set/delete/etc calls). This is only really useful if you need to see the specific cache-backend get/set/delete calls with the keys/values. Typically this should be left set to false.
list
['localhost:11211']
Memcache servers in the format of “host:port”. This is used by backends dependent on Memcached.If dogpile.cache.memcached
or oslo_cache.memcache_pool
is used and a given host refer to an IPv6 or a given domain refer to IPv6 then you should prefix the given address withthe address family (inet6
) (e.g inet6[::1]:11211
, inet6:[fd12:3456:789a:1::1]:11211
, inet6:[controller-0.internalapi]:11211
). If the address family is not given then these backends will use the default inet
address family which corresponds to IPv4
integer
300
Number of seconds memcached server is considered dead before it is tried again. (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
floating point
1.0
Timeout in seconds for every call to a server. (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
integer
10
Max total number of open connections to every memcached server. (oslo_cache.memcache_pool backend only).
integer
60
Number of seconds a connection to memcached is held unused in the pool before it is closed. (oslo_cache.memcache_pool backend only).
integer
10
Number of seconds that an operation will wait to get a memcache client connection.
boolean
False
Global toggle if memcache will be flushed on reconnect. (oslo_cache.memcache_pool backend only).
boolean
False
Enable the SASL(Simple Authentication and SecurityLayer) if the SASL_enable is true, else disable.
string
''
the user name for the memcached which SASL enabled
string
''
the password for the memcached which SASL enabled
boolean
False
Global toggle for TLS usage when comunicating with the caching servers.
string
<None>
Path to a file of concatenated CA certificates in PEM format necessary to establish the caching servers’ authenticity. If tls_enabled is False, this option is ignored.
string
<None>
Path to a single file in PEM format containing the client’s certificate as well as any number of CA certificates needed to establish the certificate’s authenticity. This file is only required when client side authentication is necessary. If tls_enabled is False, this option is ignored.
string
<None>
Path to a single file containing the client’s private key in. Otherwise the private key will be taken from the file specified in tls_certfile. If tls_enabled is False, this option is ignored.
string
<None>
Set the available ciphers for sockets created with the TLS context. It should be a string in the OpenSSL cipher list format. If not specified, all OpenSSL enabled ciphers will be available.
boolean
False
Global toggle for the socket keepalive of dogpile’s pymemcache backend
integer
1
0
The time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes. Should be a positive integer most greater than zero.
integer
1
0
The time (in seconds) between individual keepalive probes. Should be a positive integer greater than zero.
integer
1
0
The maximum number of keepalive probes TCP should send before dropping the connection. Should be a positive integer greater than zero.
boolean
False
Enable retry client mechanisms to handle failure. Those mechanisms can be used to wrap all kind of pymemcache clients. The wrapper allows you to define how many attempts to make and how long to wait between attemots.
integer
2
1
Number of times to attempt an action before failing.
floating point
0
Number of seconds to sleep between each attempt.
integer
2
1
Amount of times a client should be tried before it is marked dead and removed from the pool in the HashClient’s internal mechanisms.
floating point
1
Time in seconds that should pass between retry attempts in the HashClient’s internal mechanisms.
floating point
60
Time in seconds before attempting to add a node back in the pool in the HashClient’s internal mechanisms.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.