test move apps to memcached02

This commit is contained in:
Seddik Alaoui Ismaili 2024-11-19 22:00:30 +01:00 committed by zlopez
parent 2cf38c1f17
commit c88ab2cb08
7 changed files with 30 additions and 2 deletions

View file

@ -392,7 +392,11 @@ LOGGING = {
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
{% if env == 'staging' %}
'LOCATION': 'memcached02:11211',
{% else %}
'LOCATION': 'memcached01:11211',
{% endif %}
}
}

View file

@ -158,7 +158,11 @@ $wgParserCacheType = CACHE_MEMCACHED;
$wgMessageCacheType = CACHE_MEMCACHED;
$wgSessionsInMemcached = true;
$wgMemCachedServers = array (
0 => 'memcached01:11211',
{% if env == 'staging' %}
0 => 'memcached02:11211',
{% else %}
0 => 'memcached01:11211',
{% endif %}
);
## To enable image uploads, make sure the 'images' directory

View file

@ -51,7 +51,11 @@ CACHE = {
"backend": "dogpile.cache.null",
"expiration_time": 100,
"arguments": {
{% if env == 'staging' %}
"url": "memcached02{{env_suffix}}:11211",
{% else %}
"url": "memcached01{{env_suffix}}:11211",
{% endif %}
"distributed_lock": True,
"lock_timeout": 5,
},

View file

@ -50,7 +50,11 @@ SESSION_COOKIE_NAME = 'elections'
DOGPILE_CACHE = {
'backend': 'dogpile.cache.memcached',
'arguments': {
{% if env == 'staging' %}
'url': ["memcached02:11211"],
{% else %}
'url': ["memcached01:11211"],
{% endif %}
'distributed_lock': True,
},
}

View file

@ -159,7 +159,11 @@ config = {
"backend": "dogpile.cache.memcached",
"expiration_time": None,
"arguments": {
{% if env == 'staging' %}
"url": "memcached02",
{% else %}
"url": "memcached01",
{% endif %}
},
},
},

View file

@ -54,7 +54,11 @@ config = {
"backend": "dogpile.cache.memcached",
"expiration_time": 3600, # 1 hour
"arguments": {
{% if env == 'staging' %}
"url": "memcached02:11211",
{% else %}
"url": "memcached01:11211",
{% endif %}
},
},
},

View file

@ -43,7 +43,7 @@ git_repo_path = /var/cache/fedoracommunity/git.fedoraproject.org
# and fill in the user info here. Never check this file into git with
# this information filled in
fedoracommunity.connector.fas.minimal_user_name={{ fcommFasUser }}
fedoracommunity.connector.fas.minimal_user_password={{ fcommFasPassword }}
fedoracommunity.connector.fas.minimal_user_password={{ fcommFasPassword }}
# This is insecure, use only for testing
fedora.clients.check_certs = True
@ -146,7 +146,11 @@ beaker.session.key = fedoracommunity
beaker.session.secret = {{ fcommBeakerSessionSecret }}
beaker.cache.type = ext:memcached
{% if env == 'staging' %}
beaker.cache.url = memcached02:11211
{% else %}
beaker.cache.url = memcached01:11211
{% endif %}
beaker.cache.lock_dir = /var/cache/fedoracommunity/beaker
# If you'd like to fine-tune the individual locations of the cache data dirs