Set default TTL for memcache item expiration
Fixes: PROD-26960
Change-Id: I730c1e7248bfb81da36ec2fed924701490246db4
diff --git a/metadata/service/server/cluster.yml b/metadata/service/server/cluster.yml
index cfb1cbc..9407cb6 100644
--- a/metadata/service/server/cluster.yml
+++ b/metadata/service/server/cluster.yml
@@ -58,6 +58,13 @@
ha_queues: true
cache:
engine: memcached
+ # NOTE (dukov) Do not change this unless you 100% sure what you are doing
+ expiration_time: 600
+ backend_argument:
+ # NOTE (dukov) WARNING! This parameter depends on expiration_time.
+ # Value of 'memcached_expire_time' must be bigger than 'expiration_time'
+ memcached_expire_time:
+ value: 660
members:
- host: ${_param:cluster_node01_address}
port: 11211
diff --git a/metadata/service/server/single.yml b/metadata/service/server/single.yml
index 5fad734..e639b00 100644
--- a/metadata/service/server/single.yml
+++ b/metadata/service/server/single.yml
@@ -58,6 +58,13 @@
ha_queues: true
cache:
engine: memcached
+ # NOTE (dukov) Do not change this unless you 100% sure what you are doing
+ expiration_time: 600
+ backend_argument:
+ # NOTE (dukov) WARNING! This parameter depends on expiration_time.
+ # Value of 'memcached_expire_time' must be bigger than 'expiration_time'
+ memcached_expire_time:
+ value: 660
members:
- host: localhost
port: 11211
diff --git a/tests/pillar/cluster.sls b/tests/pillar/cluster.sls
index 1290fc0..9d76228 100644
--- a/tests/pillar/cluster.sls
+++ b/tests/pillar/cluster.sls
@@ -46,6 +46,10 @@
ha_queues: true
cache:
engine: memcached
+ expiration_time: 600
+ backend_argument:
+ memcached_expire_time:
+ value: 660
members:
- host: 127.0.0.1
port: 11211