Add caching in toddlers
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
82a3175c48
commit
f4439d42c1
2 changed files with 10 additions and 0 deletions
|
@ -10,6 +10,7 @@ RUN dnf install -y \
|
||||||
cairo-gobject-devel \
|
cairo-gobject-devel \
|
||||||
gobject-introspection-devel \
|
gobject-introspection-devel \
|
||||||
libmodulemd \
|
libmodulemd \
|
||||||
|
libmemcached-devel \
|
||||||
&& dnf clean all
|
&& dnf clean all
|
||||||
|
|
||||||
USER 1001
|
USER 1001
|
||||||
|
|
|
@ -51,6 +51,15 @@ blocked_toddlers = [
|
||||||
"pdc_update_critpath",
|
"pdc_update_critpath",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Caching. The default is in-memory caching, here is an example for memcached.
|
||||||
|
[consumer_config.cache]
|
||||||
|
backend = "dogpile.cache.pylibmc"
|
||||||
|
expiration_time = 3600
|
||||||
|
[consumer_config.cache.arguments]
|
||||||
|
url = ["memcached02{{ env_suffix }}", "memcached01{{ env_suffix }}"]
|
||||||
|
binary = true
|
||||||
|
behaviors = {"tcp_nodelay": true, "ketama": true}
|
||||||
|
|
||||||
[consumer_config.default]
|
[consumer_config.default]
|
||||||
# Configuration common to all toddlers.
|
# Configuration common to all toddlers.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue